Skip to content
Advertisement

Switching off all Folium tiles

I’m wondering if it’s possible to switch off all Folium tiles that have been added to a Folium Map object. By default one tile should be selected, but could be displayed a blank background?

It’s an option that I thinkg could be useful to enhance the visualization of the entities that have been laid over the tiles.

Advertisement

Answer

  • you can add tile layers to folium maps
  • below code adds a blank tile layer then on my system 26 other candidate base maps
  • finally folium.map.LayerControl() allows layers to be selected including blank layer
JavaScript

enter image description here

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement