diff --git a/lizmap/plugin.py b/lizmap/plugin.py index 4536ffe3..d7c926f5 100755 --- a/lizmap/plugin.py +++ b/lizmap/plugin.py @@ -2662,7 +2662,7 @@ def add_group_overview(self): def add_osm_mapnik(self): """ Add the OSM mapnik base layer. """ - source = 'type=xyz&url=https://tile.openstreetmap.org/{z}/{x}/{y}.png&zmax=19&zmin=0' + source = 'type=xyz&url=https://tile.openstreetmap.org/{z}/{x}/{y}.png' self._add_base_layer( source, 'OpenStreetMap', @@ -2671,7 +2671,7 @@ def add_osm_mapnik(self): def add_osm_opentopomap(self): """ Add the OSM OpenTopoMap base layer. """ - source = 'type=xyz&zmin=0&zmax=18&url=https://tile.opentopomap.org/{z}/{x}/{y}.png' + source = 'type=xyz&url=https://tile.opentopomap.org/{z}/{x}/{y}.png' self._add_base_layer( source, 'OpenTopoMap', diff --git a/lizmap/test/test_ui.py b/lizmap/test/test_ui.py index f2b88037..2d6af7da 100755 --- a/lizmap/test/test_ui.py +++ b/lizmap/test/test_ui.py @@ -109,8 +109,7 @@ def _setup_empty_project(self, lwc_version=LwcVersions.latest()): hidden = lizmap._add_group_legend('hidden', project=project) # For testing, we add OSM as hidden layer - hidden_raster = QgsRasterLayer( - "type=xyz&url=https://tile.openstreetmap.org/{z}/{x}/{y}.png&zmax=19&zmin=0", "OSM", 'wms') + hidden_raster = QgsRasterLayer("type=xyz&url=https://tile.openstreetmap.org/{z}/{x}/{y}.png", "OSM", 'wms') project.addMapLayer(hidden_raster, False) hidden.addLayer(hidden_raster)