Wednesday, 6 November 2019

osmdroid overlay to center on current location

I'm using osmdroid and I have added a MyLocationNewOverlay to my map to show my current location. THis looks fine. What I want is a button that will center the map on to my current location, similar to Google Maps.

Is there a way to do this built in? If not, how do I go about creating a custom overlay to do this?

I realize that MyLocationNewOverlay has a feature for enabling following the location. I do not want this. I just want an on-demand center button.



from osmdroid overlay to center on current location

No comments:

Post a Comment