All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mapbox.mapboxsdk.style.layers.RasterLayer Maven / Gradle / Ivy

There is a newer version: 9.2.1
Show newest version
// This file is generated. Edit android/platform/scripts/generate-style-code.js, then run `make style-code-android`.
package com.mapbox.mapboxsdk.style.layers;

import com.mapbox.mapboxsdk.exceptions.ConversionException;

import android.support.annotation.ColorInt;
import android.support.annotation.NonNull;

import static com.mapbox.mapboxsdk.utils.ColorUtils.*;

/**
 * Raster map textures such as satellite imagery.
 *
 * @see The online documentation
 */
public class RasterLayer extends Layer {

    /**
     * Creates a RasterLayer.
     *
     * @param nativePtr pointer used by core
     */
    public RasterLayer(long nativePtr) {
        super(nativePtr);
    }

    /**
     * Creates a RasterLayer.
     *
     * @param layerId  the id of the layer
     * @param sourceId the id of the source
     */
    public RasterLayer(String layerId, String sourceId) {
        initialize(layerId, sourceId);
    }

    protected native void initialize(String layerId, String sourceId);

    /**
     * Set the source layer.
     *
     * @param sourceLayer the source layer to set
     */
    public void setSourceLayer(String sourceLayer) {
        nativeSetSourceLayer(sourceLayer);
    }

    /**
     * Set the source Layer.
     *
     * @param sourceLayer the source layer to set
     * @return This
     */
    public RasterLayer withSourceLayer(String sourceLayer) {
        setSourceLayer(sourceLayer);
        return this;
    }

    /**
     * Set a property or properties.
     *
     * @param properties the var-args properties
     * @return This
     */
    public RasterLayer withProperties(@NonNull Property... properties) {
        setProperties(properties);
        return this;
    }

    // Property getters

    /**
     * Get the RasterOpacity property
     *
     * @return property wrapper value around Float
     */
    @SuppressWarnings("unchecked")
    public PropertyValue getRasterOpacity() {
        return (PropertyValue) new PropertyValue(nativeGetRasterOpacity());
    }
 
    /**
     * Get the RasterHueRotate property
     *
     * @return property wrapper value around Float
     */
    @SuppressWarnings("unchecked")
    public PropertyValue getRasterHueRotate() {
        return (PropertyValue) new PropertyValue(nativeGetRasterHueRotate());
    }
 
    /**
     * Get the RasterBrightnessMin property
     *
     * @return property wrapper value around Float
     */
    @SuppressWarnings("unchecked")
    public PropertyValue getRasterBrightnessMin() {
        return (PropertyValue) new PropertyValue(nativeGetRasterBrightnessMin());
    }
 
    /**
     * Get the RasterBrightnessMax property
     *
     * @return property wrapper value around Float
     */
    @SuppressWarnings("unchecked")
    public PropertyValue getRasterBrightnessMax() {
        return (PropertyValue) new PropertyValue(nativeGetRasterBrightnessMax());
    }
 
    /**
     * Get the RasterSaturation property
     *
     * @return property wrapper value around Float
     */
    @SuppressWarnings("unchecked")
    public PropertyValue getRasterSaturation() {
        return (PropertyValue) new PropertyValue(nativeGetRasterSaturation());
    }
 
    /**
     * Get the RasterContrast property
     *
     * @return property wrapper value around Float
     */
    @SuppressWarnings("unchecked")
    public PropertyValue getRasterContrast() {
        return (PropertyValue) new PropertyValue(nativeGetRasterContrast());
    }
 
    /**
     * Get the RasterFadeDuration property
     *
     * @return property wrapper value around Float
     */
    @SuppressWarnings("unchecked")
    public PropertyValue getRasterFadeDuration() {
        return (PropertyValue) new PropertyValue(nativeGetRasterFadeDuration());
    }
 
    private native Object nativeGetRasterOpacity();

    private native Object nativeGetRasterHueRotate();

    private native Object nativeGetRasterBrightnessMin();

    private native Object nativeGetRasterBrightnessMax();

    private native Object nativeGetRasterSaturation();

    private native Object nativeGetRasterContrast();

    private native Object nativeGetRasterFadeDuration();


    @Override
    protected native void finalize() throws Throwable;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy