Created
March 15, 2013 17:27
-
-
Save samsonasik/5171582 to your computer and use it in GitHub Desktop.
gmap input
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lat =-6.90163175029847 ; | |
longi = 107.618712186813; | |
var marker = new GMarker(new GLatLng(lat,longi),{draggable : true });var map; | |
if (GBrowserIsCompatible()) { | |
map = new GMap2(document.getElementById("map")); | |
map.setCenter(new GLatLng(lat,longi),14); | |
map.addOverlay(marker); | |
GEvent.addListener( | |
marker,"dragend",function(){ | |
var latlng = marker.getPoint(); | |
document.getElementById("lat").value = latlng.lat(); | |
document.getElementById("long").value = latlng.lng(); | |
}); | |
map.addControl(new GLargeMapControl()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment