From 94991808c47e2542922bac33b1652b9ba814ec09 Mon Sep 17 00:00:00 2001 From: marc tobias Date: Mon, 7 Aug 2023 12:36:23 +0200 Subject: [PATCH] subdomains for tile.openstreetmap.org are deprecated --- python/ipyleaflet/ipyleaflet/leaflet.py | 4 ++-- python/jupyter_leaflet/src/layers/TileLayer.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/python/ipyleaflet/ipyleaflet/leaflet.py b/python/ipyleaflet/ipyleaflet/leaflet.py index c2b445dc3..ba12232da 100644 --- a/python/ipyleaflet/ipyleaflet/leaflet.py +++ b/python/ipyleaflet/ipyleaflet/leaflet.py @@ -662,7 +662,7 @@ class TileLayer(RasterLayer): Attributes ---------- - url: string, default "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png" + url: string, default "https://tile.openstreetmap.org/{z}/{x}/{y}.png" Url to the tiles service. min_zoom: int, default 0 The minimum zoom level down to which this layer will be displayed (inclusive). @@ -697,7 +697,7 @@ class TileLayer(RasterLayer): _model_name = Unicode("LeafletTileLayerModel").tag(sync=True) bottom = Bool(True).tag(sync=True) - url = Unicode("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png").tag(sync=True) + url = Unicode("https://tile.openstreetmap.org/{z}/{x}/{y}.png").tag(sync=True) min_zoom = Int(0).tag(sync=True, o=True) max_zoom = Int(18).tag(sync=True, o=True) min_native_zoom = Int(default_value=None, allow_none=True).tag(sync=True, o=True) diff --git a/python/jupyter_leaflet/src/layers/TileLayer.ts b/python/jupyter_leaflet/src/layers/TileLayer.ts index 639835355..37facc1f9 100644 --- a/python/jupyter_leaflet/src/layers/TileLayer.ts +++ b/python/jupyter_leaflet/src/layers/TileLayer.ts @@ -13,7 +13,7 @@ export class LeafletTileLayerModel extends LeafletRasterLayerModel { _view_name: 'LeafletTileLayerView', _model_name: 'LeafletTileLayerModel', bottom: true, - url: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', + url: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', min_zoom: 0, max_zoom: 18, min_native_zoom: null,