From c60c014c9010d3b93acb6e901dff8fabd0063bb0 Mon Sep 17 00:00:00 2001 From: Jakub Hampl Date: Tue, 11 Sep 2018 09:50:49 +0100 Subject: Fix wrong type for step --- src/Mapbox/Expression.elm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Mapbox/Expression.elm b/src/Mapbox/Expression.elm index 7215de2..0411452 100644 --- a/src/Mapbox/Expression.elm +++ b/src/Mapbox/Expression.elm @@ -1196,7 +1196,7 @@ matchesStr options (Expression default) (Expression input) = {-| Selects the output whose label value matches the input value, or the fallback value if no match is found. getProperty (str "size") - |> matchesStr + |> matchesFloat [ (1, str "icon-hospital") , (2, str "icon-medical") ] @@ -1263,7 +1263,7 @@ interpolate interpolation stops (Expression input) = |> Layer.circleRadius -} -step : Expression exprType2 Float -> List ( Float, Expression exprType1 output ) -> Expression exprType1 output -> Expression exprType2 output +step : Expression exprType1 output -> List ( Float, Expression exprType1 output ) -> Expression exprType2 Float -> Expression exprType2 output step (Expression default) stops (Expression input) = call "step" <| input :: default :: List.concatMap (\( stop, Expression res ) -> [ Json.Encode.float stop, res ]) stops -- cgit v1.2.3