aboutsummaryrefslogtreecommitdiffstats
path: root/src/Mapbox/Expression.elm
diff options
context:
space:
mode:
authorJakub Hampl <kopomir@gmail.com>2018-10-15 16:24:16 +0100
committerJakub Hampl <kopomir@gmail.com>2018-10-15 16:24:16 +0100
commit6cd451b4fe0fd28994ad6c5a0f282dc47d2f7142 (patch)
treec6b52c6607ad2407f6b67bf3b1f03ece781c08e0 /src/Mapbox/Expression.elm
parentb6d81004b6f9fb85ecfd410c7d5b2d04e8d27c0a (diff)
Stuff for Mapbox 50
Diffstat (limited to 'src/Mapbox/Expression.elm')
-rw-r--r--src/Mapbox/Expression.elm25
1 files changed, 24 insertions, 1 deletions
diff --git a/src/Mapbox/Expression.elm b/src/Mapbox/Expression.elm
index 0411452..dd8087f 100644
--- a/src/Mapbox/Expression.elm
+++ b/src/Mapbox/Expression.elm
@@ -16,6 +16,7 @@ module Mapbox.Expression
, Position
, RasterResampling
, SymbolPlacement
+ , SymbolZOrder
, TextFit
, TextJustify
, TextTransform
@@ -102,6 +103,8 @@ module Mapbox.Expression
, notEqual
, notEqualWithCollator
, object
+ , orderSource
+ , orderViewportY
, pi
, plus
, positionBottom
@@ -290,7 +293,7 @@ Control flow:
These are required for various layer properties.
-@docs Anchor, anchorMap, anchorViewport, anchorAuto, Auto, Position, positionCenter, positionLeft, positionRight, positionTop, positionBottom, positionTopLeft, positionTopRight, positionBottomLeft, positionBottomRight, TextFit, textFitNone, textFitWidth, textFitHeight, textFitBoth, LineCap, lineCapButt, lineCapRound, lineCapSquare, LineJoin, lineJoinBevel, lineJoinRound, lineJoinMiter, SymbolPlacement, symbolPlacementPoint, symbolPlacementLine, symbolPlacementLineCenter, TextJustify, textJustifyLeft, textJustifyCenter, textJustifyRight, TextTransform, textTransformNone, textTransformUppercase, textTransformLowercase, RasterResampling, rasterResamplingLinear, rasterResamplingNearest
+@docs Anchor, anchorMap, anchorViewport, anchorAuto, Auto, Position, positionCenter, positionLeft, positionRight, positionTop, positionBottom, positionTopLeft, positionTopRight, positionBottomLeft, positionBottomRight, TextFit, textFitNone, textFitWidth, textFitHeight, textFitBoth, LineCap, lineCapButt, lineCapRound, lineCapSquare, LineJoin, lineJoinBevel, lineJoinRound, lineJoinMiter, SymbolPlacement, symbolPlacementPoint, symbolPlacementLine, symbolPlacementLineCenter, TextJustify, textJustifyLeft, textJustifyCenter, textJustifyRight, TextTransform, textTransformNone, textTransformUppercase, textTransformLowercase, RasterResampling, rasterResamplingLinear, rasterResamplingNearest, SymbolZOrder, orderViewportY, orderSource
-}
@@ -671,6 +674,26 @@ rasterResamplingNearest =
Expression (Json.Encode.string "nearest")
+{-| Specifies the order in which overlapping symbols in the same layer are rendered
+-}
+type SymbolZOrder
+ = SymbolZOrder
+
+
+{-| Symbols will be sorted by their y-position relative to the viewport.
+-}
+orderViewportY : Expression exprType SymbolZOrder
+orderViewportY =
+ Expression (Json.Encode.string "viewport-y")
+
+
+{-| Symbols will be rendered in the same order as the source data with no sorting applied.
+-}
+orderSource : Expression exprType SymbolZOrder
+orderSource =
+ Expression (Json.Encode.string "source")
+
+
-- literals