Sunday, 5 May 2013

Map Kung fu India

www.shaolinsindia.com


<script type="text/javascript"> function initializeMap() { var address = '2nd Floor,beside Basota Hotel,near Bosubomma centre,Nellore,A P,,India.';var name = 'Shaolin Traditional Kung fu Monk Training India Martial arts Fitness Gym';var phone = '919849465401';if( address != null && address.length > 0){ var geocoder = new google.maps.Geocoder(); geocoder.geocode({ 'address': address }, function (results, status) { if (status != google.maps.GeocoderStatus.OK){ document.getElementById("map_canvas").style.display = "none"; } else { var mylatLong = results[0].geometry.location; var myOptions = { streetViewControl: true, zoom: 15, center: mylatLong,mapTypeId: google.maps.MapTypeId.ROADMAP}; var myMap = new google.maps.Map(document.getElementById("map_canvas"), myOptions); var myMarkerOptions = { map: myMap, position: mylatLong,title: name }; var marker = new google.maps.Marker(myMarkerOptions); var contentStr = "<div style='font-size: 12px; font-family: \"Trebuchet MS\", Arial, Helvetica, Sans-Serif'><strong>" + name + "</strong><br/>" + address + "<br/>" + phone + "</div>"; var infowindow = new google.maps.InfoWindow({ content: contentStr }); google.maps.event.addListener(marker, 'click', function () { infowindow.open(myMap, marker); }); infowindow.open(myMap, marker); } }); } }function loadMapScript() { var script = document.createElement("script");script.type = "text/javascript";script.src = "http://maps.google.com/maps/api/js?sensor=false&callback=initializeMap"; document.body.appendChild(script); } window.onload = loadMapScript; </script> <div style="width: 450px; height: 320px;"><div id="map_canvas" style="width: 450px; height: 300px;"></div><div style='font-size: 12px; font-family: "Trebuchet MS", Arial, Helvetica, Sans-Serif'>Map Code Generated by <a href='http://www.boostability.com/'>Boostability.com</a></div></div>

No comments:

Post a Comment

Note: only a member of this blog may post a comment.