diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Mapbox/Layer.elm | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/src/Mapbox/Layer.elm b/src/Mapbox/Layer.elm index dea484c..2c24fb5 100644 --- a/src/Mapbox/Layer.elm +++ b/src/Mapbox/Layer.elm @@ -319,9 +319,9 @@ filter =  {-| Whether this layer is displayed.  -} -visible : Expression CameraExpression Bool -> LayerAttr any -visible vis = -    Layout "visibility" <| Expression.encode <| Expression.ifElse vis (Expression.str "visible") (Expression.str "none") +visible : Bool -> LayerAttr any +visible isVisible = +    Layout "visibility" <| Expression.encode <| Expression.str <| if isVisible then "visible" else "none" | 
