Package org.geotools.mbstyle.layer
Class RasterMBLayer
-
public class RasterMBLayer extends MBLayer
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class MBLayer
MBLayer.Visibility
-
-
Constructor Summary
Constructors Constructor Description RasterMBLayer(JSONObject json)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Expression
brightnessMax()
(Optional) Scale the brightness of the image.Expression
brightnessMin()
(Optional) Scale the brightness of the image.Expression
contrast()
(Optional) Increase or reduce the contrast of the image.protected SemanticType
defaultSemanticType()
Expression
fadeDuration()
(Optional) Fade duration when a new tile is added.Number
getBrightnessMax()
(Optional) Scale the brightness of the image.Number
getBrightnessMin()
(Optional) Scale the brightness of the image.Number
getContrast()
(Optional) Increase or reduce the contrast of the image.Number
getFadeDuration()
(Optional) Fade duration when a new tile is added.Number
getHueRotate()
(Optional) Rotates hues around the color wheel.Number
getOpacity()
(Optional) The opacity (Number) at which the image will be drawn.Number
getSaturation()
(Optional) Increase or reduce the saturation of the image.String
getType()
Rendering type of this layer.Expression
hueRotate()
(Optional) Rotates hues around the color wheel.Expression
opacity()
(Optional) The opacity (Number) at which the image will be drawn.Expression
saturation()
(Optional) Increase or reduce the saturation of the image.List<FeatureTypeStyle>
transformInternal(MBStyle styleContext)
TransformRasterMBLayer
to GeoTools FeatureTypeStyle.-
Methods inherited from class MBLayer
create, equals, filter, getFilter, getId, getJson, getLayout, getMaxZoom, getMetadata, getMinZoom, getPaint, getRef, getSource, getSourceLayer, getVisibility, hashCode, layout, paint, toString, transform, transform, visibility
-
-
-
-
Method Detail
-
defaultSemanticType
protected SemanticType defaultSemanticType()
-
opacity
public Expression opacity()
(Optional) The opacity (Number) at which the image will be drawn.Defaults to 1. Range: [0, 1]
- Returns:
- The opacity of this raster layer.
-
getOpacity
public Number getOpacity()
(Optional) The opacity (Number) at which the image will be drawn.Defaults to 1. Range: [0, 1]
- Returns:
- The opacity of this raster layer.
-
hueRotate
public Expression hueRotate()
(Optional) Rotates hues around the color wheel.Number. Units in degrees. Defaults to 0.
- Returns:
- The angle to rotate the hue of the raster image by.
-
getHueRotate
public Number getHueRotate()
(Optional) Rotates hues around the color wheel.Number. Units in degrees. Defaults to 0.
- Returns:
- The angle to rotate the hue of the raster image by.
-
brightnessMin
public Expression brightnessMin()
(Optional) Scale the brightness of the image. The value is the minimum brightness.Number. Defaults to 0. Range: [0, 1]
- Returns:
- The minimum magnitude of the brightness.
-
getBrightnessMin
public Number getBrightnessMin()
(Optional) Scale the brightness of the image. The value is the minimum brightness.Number. Defaults to 0. Range: [0, 1]
- Returns:
- The minimum magnitude of the brightness.
-
brightnessMax
public Expression brightnessMax()
(Optional) Scale the brightness of the image. The value is the maximum brightness.Number. Defaults to 1. Range: [0, 1]
- Returns:
- The maximum magnitude of the brightness.
-
getBrightnessMax
public Number getBrightnessMax()
(Optional) Scale the brightness of the image. The value is the maximum brightness.Number. Defaults to 1. Range: [0, 1]
- Returns:
- The maximum magnitude of the brightness.
-
saturation
public Expression saturation()
(Optional) Increase or reduce the saturation of the image.Number. Defaults to 0. Range: [-1, 1]
- Returns:
- The change in saturation
-
getSaturation
public Number getSaturation()
(Optional) Increase or reduce the saturation of the image.Number. Defaults to 0. Range: [-1, 1]
- Returns:
- The change in saturation
-
contrast
public Expression contrast()
(Optional) Increase or reduce the contrast of the image.Number. Defaults to 0. Range: [-1, 1]
- Returns:
- The change in contrast
-
getContrast
public Number getContrast()
(Optional) Increase or reduce the contrast of the image.Number. Defaults to 0. Range: [-1, 1]
- Returns:
- The change in contrast
-
fadeDuration
public Expression fadeDuration()
(Optional) Fade duration when a new tile is added.Number. Units in milliseconds. Defaults to 300.
- Returns:
- The duration of the fade when a new tile is added.
-
getFadeDuration
public Number getFadeDuration()
(Optional) Fade duration when a new tile is added.Number. Units in milliseconds. Defaults to 300.
- Returns:
- The duration of the fade when a new tile is added.
-
transformInternal
public List<FeatureTypeStyle> transformInternal(MBStyle styleContext)
- Specified by:
transformInternal
in classMBLayer
- Parameters:
styleContext
- The MBStyle to which this layer belongs, used as a context for things like resolving sprite and glyph names to full urls.- Returns:
- FeatureTypeStyle
-
-