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 ExpressionbrightnessMax()(Optional) Scale the brightness of the image.ExpressionbrightnessMin()(Optional) Scale the brightness of the image.Expressioncontrast()(Optional) Increase or reduce the contrast of the image.protected SemanticTypedefaultSemanticType()ExpressionfadeDuration()(Optional) Fade duration when a new tile is added.NumbergetBrightnessMax()(Optional) Scale the brightness of the image.NumbergetBrightnessMin()(Optional) Scale the brightness of the image.NumbergetContrast()(Optional) Increase or reduce the contrast of the image.NumbergetFadeDuration()(Optional) Fade duration when a new tile is added.NumbergetHueRotate()(Optional) Rotates hues around the color wheel.NumbergetOpacity()(Optional) The opacity (Number) at which the image will be drawn.NumbergetSaturation()(Optional) Increase or reduce the saturation of the image.StringgetType()Rendering type of this layer.ExpressionhueRotate()(Optional) Rotates hues around the color wheel.Expressionopacity()(Optional) The opacity (Number) at which the image will be drawn.Expressionsaturation()(Optional) Increase or reduce the saturation of the image.List<FeatureTypeStyle>transformInternal(MBStyle styleContext)TransformRasterMBLayerto 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:
transformInternalin 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
-
-