在谷歌地图V2一个标记为Android定制可点击区域 [英] Customizing clickable area on a Marker in Google Maps v2 for Android

查看:368
本文介绍了在谷歌地图V2一个标记为Android定制可点击区域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前使用Android的谷歌地图API V2和做一些自定义的覆盖。
对于初学者来说,我创建一个自定义位图,它比标准的标记相当大的更大。

我知道,使用较旧的地图API,你可以创建控制可点击的区域定制overlayitem,但它也必须能够在较新的地图API。我只是希望我的自定义标记的可点击的区域是一样的自定义位图的图标,我将其设置为。我已阅读过的实例和文档,但没有找到任何东西。任何帮助将是AP preciated。

感谢

(这是我读DOC)

  https://developers.google.com/maps/documentation/android/marker#customize_a_marker


解决方案

确认。在库中的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.

这篇关于在谷歌地图V2一个标记为Android定制可点击区域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆