android google MAPVIEW 的默认标记?
只是想知道我是否可以在 MAPVIEW 中使用标准/默认覆盖/标记?
我一直在网上搜索,所有教程都讨论了扩展覆盖并将您的自定义图像放在上面。
有更简单的方法吗?我只是想要一个记号笔,没什么特别的。
问候
詹姆斯
Just wondering if there is a standard/default overlay/marker that I can use in the MAPVIEW?
I have been searching on the web and all tutorials talk about extending the Overlay and put your custom image on it.
Is there a easier way? I just want to have a marker, nothing fancy.
Regards
James
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
例如,如果您使用 Eclipse 作为 IDE,则可以将 .png 添加到 /drawable-hdpi、/drawable-ldpi、/drawable-mdpi 目录中。然后,您可以放置并获取对覆盖层的引用列表,有点像这样:
我从教程中获得了大部分代码,但我无法再找到其链接。叠加层的操作非常简单。希望这有帮助。
If you are using Eclipse as your IDE, you can add a .png, for example, to your /drawable-hdpi, /drawable-ldpi, /drawable-mdpi directories. You can then place and obtain a list of references to your overlays somewhat like this:
I got most of this code from a tutorial I can no longer find the link to. The overlays are pretty simple to manipulate. Hope this helps.
如果您使用的是 Google Maps Android API v2,您可以使用以下方法。
If you are using Google Maps Android API v2, you can use following method.