-
Notifications
You must be signed in to change notification settings - Fork 985
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to add event listener to the MyLocationOverlay? #536
Comments
i think you can override on single tap confirmed but i'm not sure if there's a clear example on doing this at the moment. I'd suggest extending the MyLocationOverlay and going from there. The other option is to just use the Marker class to plot my location, however you'll lose the gps accuracy ring and the directional locator. |
extend MyLocationNewOverlay and add this
|
sample added and pushed. |
@spyhunter99 Just as a heads up, make sure you had the hit test method thats in marker, if not the you can touch anywhere on the map and it will fire that event. public boolean hitTest(final MotionEvent event, final MapView mapView){
|
Something like this for the hit test works.... public boolean hitTest(final MotionEvent event, final MapView mapView) { |
How to show a menu or a pop window that conatains some buttons when I click the icon?So that I can do futher things.
The text was updated successfully, but these errors were encountered: