WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Yukon Cornelius
    Member
    Posted 3 months ago #

    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/

  2. Yukon Cornelius
    Member
    Posted 3 months 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.

Reply

You must log in to post.

About this Plugin

About this Topic