3
Watch
4
Star
1
Fork
0
Issue

2 finger panning for Mapbox

pea
pea
pushedAt 3 years ago

pea/Mapbox-Two-Finger-Pan

Mapbox Two Finger Pan

2 finger panning for Mapbox

Example

mapboxgl.accessToken = 'pk.eyJ1IjoicGVhYmF5IiwiYSI6InJ1QnRJT2sifQ.FW2sbV_EzWFrmrgxrzLuiQ';
var map = new mapboxgl.Map({
    container: 'map',
    style: 'mapbox://styles/mapbox/streets-v9'
});

twoFingerMapboxPan(map)
ucloud ads