diff --git a/ipyleaflet/leaflet.py b/ipyleaflet/leaflet.py index 8e981f7f0..4f65b4f76 100644 --- a/ipyleaflet/leaflet.py +++ b/ipyleaflet/leaflet.py @@ -570,7 +570,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). @@ -605,7 +605,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/js/src/layers/TileLayer.js b/js/src/layers/TileLayer.js index b32925c66..10a88d6d0 100644 --- a/js/src/layers/TileLayer.js +++ b/js/src/layers/TileLayer.js @@ -12,7 +12,7 @@ export class LeafletTileLayerModel extends rasterlayer.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,