WordPress.org

Forums

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

  1. Yukon Cornelius
    Member
    Posted 1 year 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 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

  • Gwebpro Store Locator
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic