-
Notifications
You must be signed in to change notification settings - Fork 916
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
Marker click default behaviour #174
Comments
Google Maps Android API v2 does not provide the way. Thus, this plugIn does not. |
Use GroundOverlay with your marker image instead of marker. |
Thanks for the reply. I've had a look and it is possible to do this within Google Maps Android API v2. See the following discussion of the subject: It appears that what I have to do is to create a click event handler on the marker that does nothing but returns true to prevent the default handler from running. The plugin currently seems to have a hardcoded return from the event handler of false (GoogleMaps.java line 954). Would it be possible to change this function so that it returns the result from the javascript handler (defaulting to false). |
Ah, i forgot the return value. Cordova does not support the mechanism that returns value from javascript. |
Well, I guess that leaves me hacking it! I can manually change GoogleMaps.java line 954 to return true. This does stop the event bubbling-up and blocks the default behaviour. |
Implemented in v1.2.0 |
I added the disableAutoPan property for map.addMarker(). Please try the new version of the plugin. |
That's great! |
Works perfectly on Android (haven't tried iOS) |
There appears to be a default click behaviour on markers which centres the map on the marker location.
Is there a way to remove this?
I would essentially like to be able to make a marker non-clickable.
The text was updated successfully, but these errors were encountered: