Template:Fragoria Map
From FragoriaWiki
(Difference between revisions)
Line 141: | Line 141: | ||
var dungeon = locations[i]; | var dungeon = locations[i]; | ||
var myLatLng = new google.maps.LatLng(dungeon[1], dungeon[2]); | var myLatLng = new google.maps.LatLng(dungeon[1], dungeon[2]); | ||
- | var | + | var dungeon[0] = new google.maps.Marker({ |
position: myLatLng, | position: myLatLng, | ||
map: map, | map: map, | ||
Line 176: | Line 176: | ||
}); | }); | ||
- | google.maps.event.addListener( | + | google.maps.event.addListener(dungeon[0], 'click', function() { |
- | infowindow.open(map, | + | infowindow.open(map,dungeon[0]); |
}); | }); | ||
Revision as of 22:51, 6 April 2015