aboutsummaryrefslogtreecommitdiffstats
path: root/src/Mapbox
diff options
context:
space:
mode:
authorJakub Hampl <kopomir@gmail.com>2018-09-11 09:50:49 +0100
committerJakub Hampl <kopomir@gmail.com>2018-09-11 09:50:49 +0100
commitc60c014c9010d3b93acb6e901dff8fabd0063bb0 (patch)
tree363c9fccf24849af8f42f4d68d2612f9e7e1745c /src/Mapbox
parent075a1730211ed26e227bc8de6ad9a032048e66ee (diff)
Fix wrong type for step
Diffstat (limited to 'src/Mapbox')
-rw-r--r--src/Mapbox/Expression.elm4
1 files changed, 2 insertions, 2 deletions
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