3
I implemented a iframe
with a Google Maps map, the problem is that I wanted to disable the scrool zoom and the drag. I’ve tried this code in and out of jQuery function and it doesn’t work:
HTML:
<div id="map"></div>
JS:
var mapOptions = {
zoom: 17,
draggable: false,
center: new google.maps.LatLng(-34.397, 150.644),
zoomControl: false,
scrollwheel: false,
}
map = new google.maps.Map(document.getElementById("map"), mapOptions);
I don’t have a definitive answer yet, but according to my understanding of that question in the SOEN that nay is possible if your map is using
embed
.– mgibsonbr
What would be the alternative? Obgado
– Miguel
Try this solution: http://stackoverflow.com/questions/21992498/disable-mouse-scroll-wheel-zoom-embedded-google-maps I believe this will solve your problem. []’s
– Fábio Mendonça