test
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • kmkmedia Friend
    #197244

    I was wondering how to disable zoom on the map when someone is scrolling down the page. We want to keep the zoom features in the site but only in the spot where they click the zoom bar. We want to turn off the scrolling zoom feature. How would I go about doing this?

    Thanks,
    Shaun

    chavan Friend
    #533079

    you need to modify the javascript options like these


    {
    zoom: 14,
    zoomControl: false,
    scaleControl: false,
    scrollwheel: false,
    disableDoubleClickZoom: true,
    }

    kmkmedia Friend
    #533296

    What file is this located in? I have been looking through the javascript files trying to find it but I haven’t found it yet.

    Thanks,
    Shaun

    fmolina Friend
    #554720

    Hi.
    I have the same problems.
    Can you help me?

    Wheer is exactly jv code?
    I localize a scrip.js in system>jagooglemap>assets>script.js
    but no is the same

    Thanks

    Ninja Lead Moderator
    #554798

    My solution below will help your solve it

    Open plugins/system/jagooglemap/assets/script.js file

    Find and change

    this.objMap = new google.maps.Map($(this.container), mapOptions);

    To

    mapOptions.scrollwheel = false;
    this.objMap = new google.maps.Map($(this.container), mapOptions);

Viewing 5 posts - 1 through 5 (of 5 total)

This topic contains 5 replies, has 4 voices, and was last updated by  Ninja Lead 10 years ago.

We moved to new unified forum. Please post all new support queries in our New Forum