Hi i've got an overlay on the map which is a line from two points on the mapactivity, but the problem is when the user moves the map or zooms in and out the overlay doesn't stay where it is i.e. isn't still at the same points, the overlay follows the screen? can anyone help me with this problem
I would get the x, y coords for line points, and then use getProjection().fromPixels() to get the geopoints for each endpoint. Then use toPixels on every refresh to draw the line.
I don't have any documentation in front of me, but the overlay should have an onDraw method or something like that, and it is called everytime the map changes so it is the refresh essentially.