test
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • K Schneider Friend
    #187697

    How can I disable the zoom
    When you scroll down in a page with gMaps in it, it zooms in or out depending on if you go up or down in the website

    Ninja Lead Moderator
    #493742

    You can do that this way

    Open plugins/systemjagooglemapassets/script.js file

    find


    mapOptions.zoomControl = true;

    change to


    mapOptions.zoomControl = true;
    mapOptions.disableDoubleClickZoom = true;
    mapOptions.draggable=false;
    mapOptions.keyboardShortcuts=false;
    mapOptions.scaleControl=false;
    mapOptions.scrollwheel=false;
    mapOptions.streetViewControl=false;

    Remember to clear cache from Admin area

    Let me know if it helps

    K Schneider Friend
    #493776

    sorry, not working :((

    K Schneider Friend
    #493778

    found it 🙂

    find this

    [PHP]
    mapOptions.zoomControl = true;
    mapOptions.zoomControlOptions = {
    style: toolbar_control_style,
    position: controlPos
    }
    } else {
    mapOptions.zoomControl = false;
    this.toolbar_control_style = null;
    }
    [/PHP]

    change to

    [PHP]
    mapOptions.zoomControl = true;
    mapOptions.disableDoubleClickZoom = true;
    mapOptions.draggable=false;
    mapOptions.keyboardShortcuts=false;
    mapOptions.scaleControl=false;
    mapOptions.scrollwheel = false;
    mapOptions.streetViewControl=false;
    mapOptions.zoomControlOptions = {
    style: toolbar_control_style,
    position: controlPos
    }
    } else {
    mapOptions.zoomControl = false;
    mapOptions.scrollwheel = false;
    mapOptions.disableDoubleClickZoom = true;
    mapOptions.draggable=false;
    mapOptions.keyboardShortcuts=false;
    mapOptions.scaleControl=false;
    mapOptions.scrollwheel = false;
    mapOptions.streetViewControl=false;
    this.toolbar_control_style = null;
    }
    [/PHP]

    maybe some more fine-tuning but it works for now
    kan this be add to the next version?

    Ninja Lead Moderator
    #493809

    I passed this to development team and they will add this option in new version JA Google Map plugin, you can check the status here: http://pm.joomlart.com/browse/CUSSER-511

    tomoe Friend
    #518096

    Ocean12’s trick works well, but it would be nice to be implemented in a new Google Map plugin version.

    fmolina Friend
    #554723

    Hi

    I try to change the code with Ocean12’s trick and not work.

    Any can help me?

    Adam M Moderator
    #554820

    Hi @fmolina,

    Please provide your site url and temporary FTP account via private reply, I will modify the code for you.

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

This topic contains 8 replies, has 5 voices, and was last updated by  Adam M 10 years, 1 month ago.

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