102
rated 0 times
[
105]
[
3]
/ answers: 1 / hits: 71843
/ 13 Years ago, sun, november 20, 2011, 12:00:00
I want to add codes inside disable() function to disable dragging and zooming in Google maps API v3 by clicking on 'disable' button.
<script type=text/javascript>
var map;
function initialize() {
var uluru = new google.maps.LatLng(21, 57);
map = new google.maps.Map(document.getElementById(map), {
zoom: 6,
center: uluru,
mapTypeId: google.maps.MapTypeId.HYBRID
});
}
function disable(){
}
</script>
<body onload=initialize() >
<input type=button id=next value=disableZoomDrag onclick=disable()>
</body>
More From » google-maps