Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Use ctrl + scroll to zoom the map & Move map with two fingers on mobile

// Leaflet Maps
var contactmap = L.map('contact-map', {
        center: [41.3947688, 2.0787279], 
        zoom: 15,
        scrollWheelZoom: false
    });
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Use #ctrl #scroll #zoom #map #Move #map #fingers #mobile
ADD COMMENT
Topic
Name
9+5 =