diff options
author | Jakub Hampl <kopomir@gmail.com> | 2018-07-19 11:42:08 +0100 |
---|---|---|
committer | Jakub Hampl <kopomir@gmail.com> | 2018-07-19 11:42:08 +0100 |
commit | 614b3286dde9ac583aff2e12bb4daaa1fb985741 (patch) | |
tree | 1a557de167dcd36fada4c2bc929a44b3ac754aeb /src/Mapbox/Layer.elm | |
parent | ac80a58b1b43a492e0df854be2636958e4739d24 (diff) |
Upgrade to newer mapbox
Diffstat (limited to 'src/Mapbox/Layer.elm')
-rw-r--r-- | src/Mapbox/Layer.elm | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/Mapbox/Layer.elm b/src/Mapbox/Layer.elm index ad60292..20e7af5 100644 --- a/src/Mapbox/Layer.elm +++ b/src/Mapbox/Layer.elm @@ -126,6 +126,7 @@ module Mapbox.Layer , rasterBrightnessMax , rasterBrightnessMin , rasterContrast + , rasterResampling , rasterFadeDuration , rasterHueRotate , rasterOpacity @@ -201,7 +202,7 @@ Paint properties are applied later in the rendering process. Changes to a paint ### Raster Attributes -@docs rasterBrightnessMax, rasterBrightnessMin, rasterContrast, rasterFadeDuration, rasterHueRotate, rasterOpacity, rasterSaturation +@docs rasterBrightnessMax, rasterBrightnessMin, rasterContrast, rasterResampling, rasterFadeDuration, rasterHueRotate, rasterOpacity, rasterSaturation ### Hillshade Attributes @@ -216,9 +217,8 @@ Paint properties are applied later in the rendering process. Changes to a paint -} import Array exposing (Array) -import Json.Decode import Json.Encode as Encode exposing (Value) -import Mapbox.Expression as Expression exposing (Anchor, AnchorAuto, CameraExpression, Color, DataExpression, Expression, LineCap, LineJoin, Position, SymbolPlacement, TextFit, TextJustify, TextTransform) +import Mapbox.Expression as Expression exposing (Anchor, AnchorAuto, CameraExpression, Color, DataExpression, Expression, LineCap, LineJoin, Position, SymbolPlacement, TextFit, TextJustify, TextTransform, RasterResampling) {-| Represents a layer. @@ -1291,6 +1291,16 @@ rasterContrast = Expression.encode >> Paint "raster-contrast" +{-| The resampling/interpolation method to use for overscaling, also known as texture magnification filter. + +Defaults to `rasterResamplingLinear`. + +-} +rasterResampling : Expression CameraExpression RasterResampling -> LayerAttr Raster +rasterResampling = + Expression.encode >> Paint "raster-resampling" + + {-| Increase or reduce the saturation of the image. Paint property. Should be between `-1` and `1` inclusive. Defaults to `0`. |