Jump to content

Zoom Google map sans CTRL pour Store locator


PatriceJV

Recommended Posts

Pour pouvoir zoomer dans la carte Google map Prestashop 1.6. Voici le code à ajouter/modifier à stores.js qui se trouve dans votretheme/js/stores.js

Ligne 25

$(document).ready(function(){
    map = new google.maps.Map(document.getElementById('map'), {
        center: new google.maps.LatLng(defaultLat, defaultLong),
        zoom: 10,
        mapTypeId: 'roadmap',
        mapTypeControlOptions: {style: google.maps.MapTypeControlStyle.DROPDOWN_MENU},
               options:{
            gestureHandling: 'greedy'
                   }
    });

Ce qui a été ajouté au code original c'est

               options:{
            gestureHandling: 'greedy'
                   }

Ma source d'info https://stackoverflow.com/questions/45729047/disable-the-ctrl-scroll-to-zoom-google-maps

Bon zoom

Patrice

Edited by PatriceVigier (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...