Object returned from useMap() missing addSource() and addLayer() methods in maplibre-based map #2233
-
I'm trying to create a component using a react-map-gl with a custom style pointing to raster satellite tiles from Bing maps. That's working, but a child component of the map, tries to use addImage() addSource() and addLayer() on the value returned from useMap(). The addSource() method seems to be missing from the returned object. Is this correct? This is a Maplibre map. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
From the documentation:
|
Beta Was this translation helpful? Give feedback.
From the documentation: