1

Android: I need to keep a marker (static) in the center of the screen while you scroll in google map and to retrieve the location of the marker.someone can give me an idea?

1
  • I believe you have to keep track of that location; like the answer below suggested using camera position Aug 15, 2014 at 1:50

1 Answer 1

1

Just draw the marker in a different view on top of the map so that it doesn't move when you drag the map and use this to get the center of the map:

mMap.getCameraPosition().target

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.