Class RasterMBLayer


  • public class RasterMBLayer
    extends MBLayer
    • Constructor Detail

      • RasterMBLayer

        public RasterMBLayer​(JSONObject json)
    • 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)
        Transform RasterMBLayer to GeoTools FeatureTypeStyle.

        Notes:

        • Assumes 3-band RGB
        Specified by:
        transformInternal in class MBLayer
        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

        public String getType()
        Rendering type of this layer.
        Specified by:
        getType in class MBLayer
        Returns:
        TYPE