问题
I am currently using Google Maps v2 API for Android and doing some custom overlays. For starters, I create a custom bitmap that is quite a big larger than the standard "marker".
I know that using an older Maps API, you can create a custom overlayitem which controls the click-able area, but it must also be possible on the newer Maps API. I simply want my custom marker's click-able area to be the same as the custom bitmap icon I am setting it to. I have read over the examples and documentation and couldn't find anything. Any help would be appreciated.
Thanks
(Here is the doc I was reading)
https://developers.google.com/maps/documentation/android/marker#customize_a_marker
回答1:
Confirmed. A bug in the library.
I have created a bug report here: http://code.google.com/p/gmaps-api-issues/issues/detail?id=5368
Edit:
This has been fixed recently in the library and should work correctly now.
来源:https://stackoverflow.com/questions/15856677/customizing-clickable-area-on-a-marker-in-google-maps-v2-for-android