Skip to content

Commit

Permalink
Merge pull request #81 from geoadmin/master
Browse files Browse the repository at this point in the history
update from master
  • Loading branch information
ltclm authored Jul 4, 2023
2 parents b54ce55 + 8da28cb commit 6ee28a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ def get_layers_capabilities(cls, model):
@classmethod
def get_layers_zoom_level_set(cls, epsg, layers_capabilities):
zoom_levels = set()
latitude = STANDARD_LATITUDE_FOR_SWITZERLAND if epsg == 3857 else 0.0
for layer in layers_capabilities:
zoom = get_closest_zoom(layer.resolution_max, epsg)
zoom = get_closest_zoom(layer.resolution_max, epsg, latitude)
zoom_levels.add(zoom)
return zoom_levels

Expand Down

0 comments on commit 6ee28a7

Please sign in to comment.