Hi all,

I am new to this group and also to google map api.

I have some requirements as follows.

1 when user enters a city name in the text box i have to show the proper
location in the map

2.When a user moves the marker to a particular location i have to get the
longitude and latitude of the location..

Below is  my code which i have customised upto now.



 <script type="text/javascript"
src="
http://www.google.com/jsapi?key=ABQIAAAAbx6zIR-3L625H6xpl80edBSYvdzUCsumgWcL6YRFJE3GJ8JzcxRGMqBF42d4LHXdqoloG7vGbiGlXA
"></script>
<script type="text/javascript">


function mapsLoaded() {
var map = new GMap2(document.getElementById("gMap"));
map.addControl(new GLargeMapControl());
map.setMapType(G_HYBRID_MAP);
var center = new GLatLng(37.4419, -122.1419);
map.setCenter(center, 13);
var marker = new GMarker(center, {draggable: true});
GEvent.addListener(marker, "dragstart", function() {
     map.closeInfoWindow();
});
map.addOverlay(marker);
}

function loadMaps() {
     google.load("maps", "2", {"callback" : mapsLoaded});
 }

</script>
<body onLoad="loadMaps();">

  <div id="map" style=" position:absolute;width: 450px; height:
300px;top:98px;left:157px;"></div>

</body>


Can any one please help me to reach teh requirement

Thanks & regards
Veeranaraya M

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to