From c3496315f52ae90c9c86a2d72dd8690db67dbd04 Mon Sep 17 00:00:00 2001 From: Patrick Sier Date: Tue, 13 Aug 2019 03:40:17 -0500 Subject: Uses Bool instead of Expression for visibility (#51) --- src/Mapbox/Layer.elm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Mapbox') 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" -- cgit v1.2.3