Template:Fragoria Map
From FragoriaWiki
(Difference between revisions)
Line 133: | Line 133: | ||
y: y | y: y | ||
}; | }; | ||
+ | |||
+ | //Report Coordinates | ||
+ | google.maps.event.addListener(FragotownMarker, 'dragend', function(evt){ | ||
+ | document.getElementById('current').innerHTML = '<p>Marker dropped: ( ' + evt.latLng.lat().toFixed(6) + ',' + evt.latLng.lng().toFixed(6) + ')</p>'; | ||
+ | }); | ||
+ | google.maps.event.addListener(FragotownMarker, 'dragstart', function(evt){ | ||
+ | document.getElementById('current').innerHTML = '<p>Currently dragging marker...</p>'; | ||
+ | }); | ||
} | } | ||
Revision as of 05:46, 5 April 2015
Coordinates