Package org.geotools.mbstyle.layer
Class RasterMBLayer
-
Nested Class Summary
Nested classes/interfaces inherited from class MBLayer
MBLayer.Visibility
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(Optional) Scale the brightness of the image.(Optional) Scale the brightness of the image.contrast()
(Optional) Increase or reduce the contrast of the image.protected SemanticType
(Optional) Fade duration when a new tile is added.(Optional) Scale the brightness of the image.(Optional) Scale the brightness of the image.(Optional) Increase or reduce the contrast of the image.(Optional) Fade duration when a new tile is added.(Optional) Rotates hues around the color wheel.(Optional) The opacity (Number) at which the image will be drawn.(Optional) Increase or reduce the saturation of the image.getType()
Rendering type of this layer.(Optional) Rotates hues around the color wheel.opacity()
(Optional) The opacity (Number) at which the image will be drawn.(Optional) Increase or reduce the saturation of the image.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
-
Constructor Details
-
RasterMBLayer
public RasterMBLayer(JSONObject json)
-
-
Method Details
-
defaultSemanticType
-
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
(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
(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
(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
(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
(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
(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
(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
(Optional) Increase or reduce the saturation of the image.Number. Defaults to 0. Range: [-1, 1]
- Returns:
- The change in saturation
-
getSaturation
(Optional) Increase or reduce the saturation of the image.Number. Defaults to 0. Range: [-1, 1]
- Returns:
- The change in saturation
-
contrast
(Optional) Increase or reduce the contrast of the image.Number. Defaults to 0. Range: [-1, 1]
- Returns:
- The change in contrast
-
getContrast
(Optional) Increase or reduce the contrast of the image.Number. Defaults to 0. Range: [-1, 1]
- Returns:
- The change in contrast
-
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
(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
- 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
-
getType
Rendering type of this layer.
-