Skip to content

Commit

Permalink
Remove all occurences of zmax and zmin in the source code #586
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Jun 27, 2024
1 parent eb60480 commit f6e2a94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lizmap/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
Expand Down
3 changes: 1 addition & 2 deletions lizmap/test/test_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit f6e2a94

Please sign in to comment.