Skip to content
Snippets Groups Projects
Commit eeb78b3f authored by stuebinm's avatar stuebinm
Browse files

startLayer can actually be set to `false`

(in which case it just doesn't do anything at all)
parent 8548481f
Branches
No related tags found
No related merge requests found
...@@ -343,10 +343,9 @@ checkTileLayerProperty p@(Property name _value) = case name of ...@@ -343,10 +343,9 @@ checkTileLayerProperty p@(Property name _value) = case name of
"startLayer" -> do "startLayer" -> do
forbidEmptyLayer forbidEmptyLayer
layer <- askContext layer <- askContext
offersEntrypoint $ layerName layer
unwrapBool p $ \case unwrapBool p $ \case
True -> pure () True -> offersEntrypoint $ layerName layer
False -> complain "property \"startLayer\" must be set to true." False -> warn "property \"startLayer\" is useless if set to false."
"silent" -> do "silent" -> do
isBool p isBool p
uselessEmptyLayer uselessEmptyLayer
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment