mapbox-gl-opacity
mapbox-gl-opacity copied to clipboard
Switching between two mapbox maps.
Thank you for this plugin. I've been trying to figure out how I can specify multiple mapbox vector maps in the baseLayers. I'm trying to allow the user to switch between:
mapbox://styles/mapbox/streets-v11
and
mapbox://styles/mapbox/light-v10
Generally this would be done with map.setStyle seen here. But wondering if it's possible with map.addLayer.
Hi, baseLayers is for raster tiles. You may need to modify the plugin to apply the mapbox style. I'll consider it.
Cheers, I ended up using the raster layer versions of the maps but this would be an awesome feature to still be able to use vector.