Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 9, 2024
1 parent 1d369c6 commit 9eba830
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions felt/core/fsl_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,13 @@ def vector_layer_to_fsl(

if layer.hasScaleBasedVisibility():
if layer.minimumScale():
fsl['style']['minZoom'] = MapUtils.map_scale_to_leaflet_tile_zoom(
layer.minimumScale())
fsl['style']['minZoom'] = (
MapUtils.map_scale_to_leaflet_tile_zoom(
layer.minimumScale()))
if layer.maximumScale():
fsl['style']['maxZoom'] = MapUtils.map_scale_to_leaflet_tile_zoom(
layer.maximumScale())
fsl['style']['maxZoom'] = (
MapUtils.map_scale_to_leaflet_tile_zoom(
layer.maximumScale()))

return fsl

Expand Down

0 comments on commit 9eba830

Please sign in to comment.