マーカーの表示の切替

&googlemaps3(mapname=tgtest, width=300px, height=200px, zoomctrl=small, togglemarker=true, typectrl=none, zoom=6);
&googlemaps3_icon(default, define=menicon, image=http://reddog.s35.xrea.com/img/googlemaps/mm_udon.png, shadow=http://www.google.com/mapfiles/shadow50.png, iw=20, ih=34, sw=37, sh=34, ianchorx=10, ianchory=34, sanchorx=10, area="1 7 7 0 13 0 19 7 19 12 13 20 12 23 11 34 9 34 8 23 6 19 1 13 1 7", transparent=http://reddog.s35.xrea.com/img/googlemaps/transparent.png);
&googlemaps3_icon(うどん派, class=menicon, image=http://reddog.s35.xrea.com/img/googlemaps/mm_udon.png);
&googlemaps3_icon(そば派, class=menicon, image=http://reddog.s35.xrea.com/img/googlemaps/mm_soba.png);
&googlemaps3_icon(きしめん派, class=menicon, image=http://reddog.s35.xrea.com/img/googlemaps/mm_kisimen.png);
&googlemaps3_mark(0,0, define=tgmark, map=tgtest, nolist=1, noinfowindow=1);
&googlemaps3_mark(34.070862, 134.516601, class=tgmark, icon=うどん派);
&googlemaps3_mark(34.252676, 133.923339, class=tgmark, icon=うどん派);
&googlemaps3_mark(33.669496, 133.527832, class=tgmark, icon=うどん派);
&googlemaps3_mark(33.815666, 132.758789, class=tgmark, icon=うどん派);
&googlemaps3_mark(34.633207, 133.923339, class=tgmark, icon=うどん派);
&googlemaps3_mark(34.415973, 132.495117, class=tgmark, icon=うどん派);
&googlemaps3_mark(35.012002, 135.681152, class=tgmark, icon=うどん派);
&googlemaps3_mark(34.705493, 136.494140, class=tgmark, icon=うどん派);
&googlemaps3_mark(35.155845, 136.933593, class=tgmark, icon=きしめん派);
&googlemaps3_mark(35.442770, 136.735839, class=tgmark, icon=きしめん派);
&googlemaps3_mark(34.669358, 135.505371, class=tgmark, icon=うどん派);
&googlemaps3_mark(34.723554, 135.175781, class=tgmark, icon=そば派);
&googlemaps3_mark(34.687427, 135.791015, class=tgmark, icon=そば派);
&googlemaps3_mark(36.066862, 136.208496, class=tgmark, icon=そば派);
&googlemaps3_mark(36.650663, 138.180327, class=tgmark, icon=そば派);
&googlemaps3_mark(35.478564, 134.187011, class=tgmark, icon=そば派);
&googlemaps3_mark(35.012002, 138.427734, class=tgmark, icon=そば派);

googlemaps3でオプションにtogglemarker=trueを指定する。


PukiwikiでGoogleMaps3サンプル CategoryJavaScript CategoryPukiwiki


|New|Edit|Freeze|Diff|Backup|Attach|Copy|Rename|
Last-modified: 2012-10-27 (Sat) 17:18:42 (2606d)
HTML convert time: 0.375 sec.