mapbox-gl-opacity icon indicating copy to clipboard operation
mapbox-gl-opacity copied to clipboard

Switching between two mapbox maps.

Open SeanBannister opened this issue 5 years ago • 2 comments

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.

SeanBannister avatar Jun 09 '20 14:06 SeanBannister

Hi, baseLayers is for raster tiles. You may need to modify the plugin to apply the mapbox style. I'll consider it.

dayjournal avatar Jun 13 '20 06:06 dayjournal

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.

SeanBannister avatar Jun 13 '20 14:06 SeanBannister