Support » Plugin: Gwebpro Store Locator » disable scrollwheel

  • Resolved Yukon Cornelius

    (@jimmmy)


    Hi,

    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?

    Thx,

    https://wordpress.org/plugins/gwebpro-store-locator/

Viewing 1 replies (of 1 total)
  • 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.

Viewing 1 replies (of 1 total)
  • The topic ‘disable scrollwheel’ is closed to new replies.