How to disable scroll to zoom. Google Maps Embed API -


this question has answer here:

can tell me how disable scrolling when using google maps embed api?

i building site requires embedded map in middle of page users need able scroll past without accidentally engaging zoom feature.

i tried taking necessary argument javascript api , supplying part of arguments in url string.

scrollwheel: false 

reformatted to:

&scrollwheel=false 

this did not work. instead of map, "the google maps api server rejected request. invalid request. unexpected parameter 'scrollwheel'."

if there no legit way achieve via embed api, can recommend hackier solution? still want people able interact map via onscreeen buttons can't overlay transparent div, or disable pointer events.

i asking google maps embed api. not interested in solutions require using google maps javascript api instead. project not able switch js api.

this not duplicate question, different api , no 1 on sa has answered how disable scrolling embed api.

looking @ documentation embeds, cannot see way using request url disable zoom.

however, may want see this post site see alternative. not embed, next best thing.


Comments