开发者

Android and Google Maps API - Icons

开发者 https://www.devze.com 2022-12-25 09:32 出处:网络
I want to place markers on the map. I want to use the standard Google Maps icons for markers.开发者_StackOverflow

I want to place markers on the map. I want to use the standard Google Maps icons for markers.开发者_StackOverflow how do I use them? I don't want to create my own icons. I'm developing for Android.

in the documentation they tell me to create a class that overrides ItemizedOverlay but in the constructor I'm asked to provide a drawable object.

how do I point to the standard Google Maps ones? thanks.


this sample project helps you.

how to add a itemizedOverlay and when you click on it. it will show an balloon to display what you need..


Those icons are not available from the Google Maps add-on for Android -- or, at least, they are not documented. Perhaps there is a way you can obtain them for legal download through Google Maps for the Web.


A simple solution can be found here: https://github.com/jgilfelt/android-mapviewballoons/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号