Thursday 17 July 2014

Google Maps - Modifying Controls



Google Maps - Modifying Controls


<script src="//maps.google.com/maps/api/js?sensor=true"></script>
<script>
function initialize5()
{
 var mapProp5 = {
    center: new google.maps.LatLng(51.508742,-0.120850),
    zoom:7,
    panControl:true,
    zoomControl:true,
    mapTypeControl:true,
    scaleControl:true,
    streetViewControl:true,
    overviewMapControl:true,
    rotateControl:true,    
    mapTypeId: google.maps.MapTypeId.ROADMAP
  };
var map5=new google.maps.Map(document.getElementById("googleMapId5"),mapProp5);
}
google.maps.event.addDomListener(window, 'load', initialize5);
</script>
<div id="googleMapId5" style="height: 300px; width: 670px;">
</div>