So how on earth do I set this property?
map.setPaintProperty('basemap', 'raster-opacity', 0.5)
No matter where I add it, I get console error: this is not a function
Expected Behavior
It should make the map 50% see-through without affecting its container or any of my R3F 3D components.
Description
So how on earth do I set this property? map.setPaintProperty('basemap', 'raster-opacity', 0.5) No matter where I add it, I get console error: this is not a function
Expected Behavior
It should make the map 50% see-through without affecting its container or any of my R3F 3D components.
Steps to Reproduce
Environment
Logs
Uncaught TypeError: mapRef.current.setPaintProperty is not a function