Skip to content

Commit 9c4293b

Browse files
mtmailarjxn-py
authored andcommitted
subdomains for tile.openstreetmap.org are deprecated
1 parent 9a12952 commit 9c4293b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

python/ipyleaflet/ipyleaflet/leaflet.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ class TileLayer(RasterLayer):
662662
663663
Attributes
664664
----------
665-
url: string, default "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
665+
url: string, default "https://tile.openstreetmap.org/{z}/{x}/{y}.png"
666666
Url to the tiles service.
667667
min_zoom: int, default 0
668668
The minimum zoom level down to which this layer will be displayed (inclusive).
@@ -697,7 +697,7 @@ class TileLayer(RasterLayer):
697697
_model_name = Unicode("LeafletTileLayerModel").tag(sync=True)
698698

699699
bottom = Bool(True).tag(sync=True)
700-
url = Unicode("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png").tag(sync=True)
700+
url = Unicode("https://tile.openstreetmap.org/{z}/{x}/{y}.png").tag(sync=True)
701701
min_zoom = Int(0).tag(sync=True, o=True)
702702
max_zoom = Int(18).tag(sync=True, o=True)
703703
min_native_zoom = Int(default_value=None, allow_none=True).tag(sync=True, o=True)

python/jupyter_leaflet/src/layers/TileLayer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export class LeafletTileLayerModel extends LeafletRasterLayerModel {
1313
_view_name: 'LeafletTileLayerView',
1414
_model_name: 'LeafletTileLayerModel',
1515
bottom: true,
16-
url: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
16+
url: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png',
1717
min_zoom: 0,
1818
max_zoom: 18,
1919
min_native_zoom: null,

0 commit comments

Comments
 (0)