Switch map tiles from CartoDB positron to OpenStreetMap (no API key)
CartoDB's positron basemap now renders an "API KEY REQUIRED" watermark. Use tiles="OpenStreetMap" via a new MAP_TILES constant instead. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -168,11 +168,12 @@ or at least skip exact duplicates by default.
|
||||
|
||||
## 9. Offline map 🟢
|
||||
|
||||
`karte.html` loads Leaflet/jQuery/Bootstrap from CDNs and tiles from CartoDB, so
|
||||
the map is blank without internet even though all the data is local. If offline
|
||||
use matters, vendor the Leaflet JS/CSS into `data/` and post-process the Folium
|
||||
output to point at local files (tiles would still need caching or an offline
|
||||
tile pack — larger effort).
|
||||
`karte.html` loads Leaflet/jQuery/Bootstrap from CDNs and tiles from
|
||||
`tile.openstreetmap.org` (`MAP_TILES`; switched away from CartoDB positron, which
|
||||
now needs an API key). The map is blank without internet even though all the
|
||||
data is local. If offline use matters, vendor the Leaflet JS/CSS into `data/`
|
||||
and post-process the Folium output to point at local files (tiles would still
|
||||
need caching or an offline tile pack — larger effort).
|
||||
|
||||
## 10. Small code-quality items 🟢 — partly done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user