labs.google.com提供・Google謹製のマーカー画像
Google Maps APIなど向けにGoogleがあらかじめ用意してある画像アイコンから、
labs.google.comにて提供されている画像のURL指定し、
Google Maps APIで表示を行う例をご紹介します。
地図の表示
labs.google.com提供のマーカーアイコンを配置しています。
なお、ここでは影アイコンを別で表示していますが、
本来影アイコンは同じマーカーに対して設定して利用します。
以下で、影アイコンの利用方法をご紹介しています。
labs.google.com提供・Google謹製のマーカー画像
以下のアイコンが利用できます。
http://labs.google.com/ridefinder/images/mm_20_gray.png
http://labs.google.com/ridefinder/images/mm_20_green.png
http://labs.google.com/ridefinder/images/mm_20_orange.png
http://labs.google.com/ridefinder/images/mm_20_purple.png
http://labs.google.com/ridefinder/images/mm_20_red.png
http://labs.google.com/ridefinder/images/mm_20_white.png
http://labs.google.com/ridefinder/images/mm_20_yellow.png
http://labs.google.com/ridefinder/images/mm_20_black.png
http://labs.google.com/ridefinder/images/mm_20_blue.png
http://labs.google.com/ridefinder/images/mm_20_brown.png
http://labs.google.com/ridefinder/images/mm_20_shadow.png
JavaScript
上記で埋込表示しているソースは以下を利用しています。
URLを一括で抜きたい場合は以下の方が便利かもしれません。
エラーが発生しました。後でもう一度やり直してください。 |
参考
公開日:
最終更新日:2017/01/13