且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在谷歌地图V2一个标记为Android定制可点击区域

更新时间:2023-01-07 19:51:57

确认。在库中的bug。

我创建了一个错误报告在这里:的 HTTP://$c$c.google.com/p/gmaps-api-issues/issues/detail ID = 5368

编辑:

本已在图书馆最近固定,现在应该正常工作。

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

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.