PatriceJV Posted June 24, 2020 Share Posted June 24, 2020 (edited) 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 June 24, 2020 by PatriceVigier (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now