Gwebpro Store Locator
[resolved] disable scrollwheel (2 posts)

  1. Yukon Cornelius
    Posted 1 year ago #


    Just wondering if anyone knows how to disable zoom on the map when you scroll over it. The autopan feature centers the map after finding the location, but to scroll up to the searchbox, you have to pass the map, and as you scroll, you zoom in instead.

    I would like to disable the google maps scrollwheel. Any ideas?



  2. Yukon Cornelius
    Posted 1 year ago #

    thought i'd post this in case anyone is having the same problem:

    you need to go here: gwebpro-store-locator/gwebpro-store-locator-frontend.php

    and add 'scrollwheel:false' somewhere in myOptions like so:

    function initialize(lat,long)
    		var latlng = new google.maps.LatLng(lat,long);
    		var myOptions = {
    			zoom: 13,
    			center: latlng,
    			panControl: true,
    			zoomControl: true,
    			scrollwheel: false,
    			scaleControl: true,
    			mapTypeId: google.maps.MapTypeId.ROADMAP

    good luck.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic