aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJakub Hampl <kopomir@gmail.com>2018-09-11 15:30:22 +0100
committerJakub Hampl <kopomir@gmail.com>2018-09-11 15:30:22 +0100
commita6d30313681af2ed608c6d28a85583677f9b638c (patch)
tree4ba6cb3844ce698365e04dfd5ad10f1694646cea /src
parentc60c014c9010d3b93acb6e901dff8fabd0063bb0 (diff)
Relax some types in prep for 2.0
Diffstat (limited to 'src')
-rw-r--r--src/Mapbox/Layer.elm8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Mapbox/Layer.elm b/src/Mapbox/Layer.elm
index 380d5d8..79bbe1b 100644
--- a/src/Mapbox/Layer.elm
+++ b/src/Mapbox/Layer.elm
@@ -454,7 +454,7 @@ fillTranslateAnchor =
{-| Name of image in sprite to use for drawing image fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels. Paint property.
-}
-fillPattern : Expression CameraExpression String -> LayerAttr Fill
+fillPattern : Expression any String -> LayerAttr Fill
fillPattern =
Expression.encode >> Paint "fill-pattern"
@@ -544,7 +544,7 @@ lineGapWidth =
{-| Name of image in sprite to use for drawing image lines. For seamless patterns, image width must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels. Paint property.
-}
-linePattern : Expression CameraExpression String -> LayerAttr Line
+linePattern : Expression any String -> LayerAttr Line
linePattern =
Expression.encode >> Paint "line-pattern"
@@ -819,7 +819,7 @@ fillExtrusionTranslateAnchor =
{-| Name of image in sprite to use for drawing images on extruded fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels. Paint property.
-}
-fillExtrusionPattern : Expression CameraExpression String -> LayerAttr FillExtrusion
+fillExtrusionPattern : Expression any String -> LayerAttr FillExtrusion
fillExtrusionPattern =
Expression.encode >> Paint "fill-extrusion-pattern"
@@ -1450,7 +1450,7 @@ hillshadeAccentColor =
{-| Name of image in sprite to use for drawing an image background. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels. Paint property.
-}
-backgroundPattern : Expression CameraExpression String -> LayerAttr Background
+backgroundPattern : Expression any String -> LayerAttr Background
backgroundPattern =
Expression.encode >> Paint "background-pattern"