Closed w8r closed 5 years ago
interactive
mapbox-gl
Now, you can create L.MapboxGL layer that will handle the built-in events, too:
L.MapboxGL
var gl = L.mapboxGL({ accessToken: 'no-token', interactive: true }).addTo(map); var mapObject = gl.getMapboxMap(); mapObject.on('mouseenter', 'state-fills', (e) => { console.log('state-fills mouseenter', e) });
interactive
optionmapbox-gl
eventsmapbox-gl
mapNow, you can create
L.MapboxGL
layer that will handle the built-in events, too: