Currently, I have a web map with multiple layers.
I would like the final user to be able to select one layer can be turned on at a time.
Currently, multiple layers can be turned on, but only the layer on top is visible.
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.Sign up to join this community
If you made your map with CARTO Builder, you can toggle the layer selector in the Map Options. However, this won't act exactly like a radio button (more than one layer can be selected at the same time). Here's a GIF showing how:
Here's an example by Jorge Sanz making a custom layer selector with CARTO.js.
Note: I'm currently working at CARTO.