<pre lang="text"> var Latitude = data['Latitude']; // alert(Latitude); var Longitude = data['Longitude']; //alert(Longitude); var myOptions = { center: new google.maps.LatLng(Latitude, Longitude), zoom: 12, //mapTypeId: google.maps.MapTypeId.HYBRID mapTypeId: google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById("gmap_canvas"), myOptions); marker = new google.maps.Marker({ map: map, position: new google.maps.LatLng(Latitude, Longitude) }); infowindow = new google.maps.InfoWindow({ content: "<b>" + data['UnparsedAddress'] + "" }); google.maps.event.addListener(marker, "click", function () { infowindow.open(map, marker); }); infowindow.open(map, marker); google.maps.event.addDomListener(window, 'load', init_map); </pre>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)