jquery - Disable iframe map zoom using Javascript -


I am including a third-party URL that manages Google Maps. I want to disable mouse zoom, scroll and touch pad zoom, but still want to enable + and - to zoom in and out.

There is no way to disable the zoom event for the iframe map.

What I have just done, by adding the class name to the scrolls, disabled-map $ ('# Map_iframe'). AddClass ('disable-' map '); }); $ (Window) .on ("scrollstop", function (e, a) {$ ('# map_iframe'). RemoveClass ('disabled-map');}); .disable-map {Pointer-events: none; }

Is there any other better solution?


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -