Offset auto center
Completed
When Locus is auto centring its map whilst travelling, it would be useful to offset the map centre so that more map is shown in the area ahead. To do this, offset the map centre by say 1/4 of the map width and height with the offset position traversing an ellipse according to GPS heading. In my own apps I have used code like this (when moving at say more than 2 kmph)
float theta = getGpsHeading(); theta -= 90F; theta = (theta < 0F) ? theta + 360F : theta; offsetX = (int) (-mMapView.getWidth() / 4 * Math.cos(Math.toRadians(theta))); offsetY = (int) (-mMapView.getHeight() / 4 * Math.sin(Math.toRadians(theta)));
Switch on automatic rotation. I wouldn't want to be without it. I only switch it off when I'm looking for something.
Switch on automatic rotation. I wouldn't want to be without it. I only switch it off when I'm looking for something.
Hello Bill,
this option already exists in the app. App needs to have enabled GPS and has enabled centering and rotation. Then app settings > Controlling > Map screen > Shift map cursor should work as expected.
Hello Bill,
this option already exists in the app. App needs to have enabled GPS and has enabled centering and rotation. Then app settings > Controlling > Map screen > Shift map cursor should work as expected.
Why the restriction for rotation? With a raster map, I don't want to use rotation. Thanks, Bill.
Why the restriction for rotation? With a raster map, I don't want to use rotation. Thanks, Bill.
Because what is the benefit of shifted map without rotation in the direction of travel?
Because what is the benefit of shifted map without rotation in the direction of travel?
Replies have been locked on this page!