mapbox/mapbox-gl-leaflet

Map canvas

jvaldezch opened this issue · 2 comments

Is it possible to access the map canvas?

I'm getting this error:

map.getCanvas is not a function

Is it possible to access the map canvas?

yes.

the README contains information about accessing the underlying Mapbox GL JS map instance.

https://github.com/mapbox/mapbox-gl-leaflet/#code-example

gl.getMapboxMap()....

Thanks, that works!