python-visualization / folium

Python Data. Leaflet.js Maps.
https://python-visualization.github.io/folium/
MIT License
6.94k stars 2.23k forks source link

use xyzservices instead of templates #1827

Closed martinfleis closed 1 year ago

martinfleis commented 1 year ago

This removes built-in tile management with the template files and adds xyzservices as a hard dependency that now manages all tiles. It is fully backwards compatible with all the benefits of a large library in xyzservices and flexibility of query_name, allowing custom characters and cases in the input. E.g. all of these will work

"CartoDB Positron"
"cartodbpositron"
"cartodb-positron"
"carto db/positron"
"CARTO_DB_POSITRON"
"CartoDB.Positron"
martinfleis commented 1 year ago

I think that this should be ready now.