Template:Fragoria Map
From FragoriaWiki
(Difference between revisions)
Line 40: | Line 40: | ||
map.setMapTypeId('moon'); | map.setMapTypeId('moon'); | ||
- | var | + | var FragotownMarker = new google.maps.Marker({ |
position: new google.maps.LatLng(-89.62,66.4), | position: new google.maps.LatLng(-89.62,66.4), | ||
map: map, | map: map, | ||
Line 47: | Line 47: | ||
}); | }); | ||
- | google.maps.event.addListener( | + | google.maps.event.addListener(FragotownMarker, 'dragend', function(evt){ |
document.getElementById('current').innerHTML = '<p>Marker dropped: Current Lat: ' + evt.latLng.lat().toFixed(3) + ' Current Lng: ' + evt.latLng.lng().toFixed(3) + '</p>'; | document.getElementById('current').innerHTML = '<p>Marker dropped: Current Lat: ' + evt.latLng.lat().toFixed(3) + ' Current Lng: ' + evt.latLng.lng().toFixed(3) + '</p>'; | ||
}); | }); | ||
- | google.maps.event.addListener( | + | google.maps.event.addListener(FragotownMarker, 'dragstart', function(evt){ |
document.getElementById('current').innerHTML = '<p>Currently dragging marker...</p>'; | document.getElementById('current').innerHTML = '<p>Currently dragging marker...</p>'; | ||
}); | }); |
Revision as of 03:45, 5 April 2015
Coordinates