2016-07-28 5 views
-1

私は1つのマップ上に複数のカスタムアイコンマーカーを取得しようとしています。私は1つのアイコン(アイコン= ...)を作る方法を知っていますが、最後のものを複数回取得します...下記の画像を参照して、「テスト1」、「テスト2」および「テスト3」のマーカーを作成しましたが、 3" あなたがこの方法を追加することができます...Google静的マップ複数のカスタムマーカーアイコン

Image

答えて

1

を示していますmarkers=icon:path_to_the_image|緯度,LNG

https://maps.googleapis.com/maps/api/staticmap 
?center=52.446925,4.815730&zoom=10&size=600x600&maptype=roadmap 
&markers=icon:http://cdn2.iconfinder.com/data/icons/integers/60/number-one-32.png|52.373670, 4.896718 
&markers=icon:http://cdn2.iconfinder.com/data/icons/integers/60/number-two-32.png|52.489908, 4.658677 
&markers=icon:http://cdn2.iconfinder.com/data/icons/integers/60/number-three-32.png|52.553214, 4.673812 
&key=API_KEY 

・ホープこのことができます!

編集:The Google Static Maps API does not support custom icon URLs that use HTTPS; the default icon will be displayed.

関連する問題