Customizing clickable area on a Marker in Google Maps v2 for Android

喜你入骨 提交于 2020-01-20 05:53:10

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!