I know the V3 API for Google Maps has the option to prevent scroll wheel zooming, but does anyone have an idea how to set this option for the CGGoogleMaps2 module?
http://stackoverflow.com/questions/2330 ... e-maps-api
CGGoogleMaps2: preventing zoom with scroll wheel
Re: CGGoogleMaps2: preventing zoom with scroll wheel
same one raised a week earlier: http://forum.cmsmadesimple.org/viewtopi ... =7&t=72050
it looks like calguy1000 is our only hope... after all it's his project
it looks like calguy1000 is our only hope... after all it's his project
Re: CGGoogleMaps2: preventing zoom with scroll wheel
Is this topic "CGGoogleMaps2 - how to disable scrollwheel?" related?
Re: CGGoogleMaps2: preventing zoom with scroll wheel
well... isn't it?
for me, both topics are basically about the same issue: how to turn off scrollwheel
for me, both topics are basically about the same issue: how to turn off scrollwheel
Re: CGGoogleMaps2: preventing zoom with scroll wheel
Sorry, my bad!


Re: CGGoogleMaps2: preventing zoom with scroll wheel
I saw there is the option to do this in the Google Maps API, in the link I provided in the initial post. Maybe I can find out which module file sends these options to Google Maps and hack into it, but this would be dangerous when you update the module.
Re: CGGoogleMaps2: preventing zoom with scroll wheel
It is possible to set options after loading the map. However, I didn't yet succeed doing so by script inside template(s).
When using a web inspector it's possible but typically at that time the maps is already there.
Didn't yet check whether it is very dynamic this way. I think it needs to be called after the map is loaded. Not sure how to do that exactly.
When using a web inspector it's possible but typically at that time the maps is already there.
Code: Select all
$("[id^=cggm_map_]").data().calguy1000Cggm2.getMap().set("scrollwheel",false)