diff options
Diffstat (limited to 'platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/RasterLayer.java')
-rw-r--r-- | platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/RasterLayer.java | 31 |
1 files changed, 24 insertions, 7 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/RasterLayer.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/RasterLayer.java index 1cbe5fb387..a6872cef0f 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/RasterLayer.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/layers/RasterLayer.java @@ -1,6 +1,13 @@ // 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 Layer */ @@ -21,6 +28,16 @@ public class RasterLayer extends Layer { nativeSetSourceLayer(sourceLayer); } + public RasterLayer withSourceLayer(String sourceLayer) { + setSourceLayer(sourceLayer); + return this; + } + + + public RasterLayer withProperties(@NonNull Property<?>... properties) { + setProperties(properties); + return this; + } // Property getters @@ -29,43 +46,43 @@ public class RasterLayer extends Layer { checkValidity(); return (PropertyValue<Float>) new PropertyValue(nativeGetRasterOpacity()); } - + @SuppressWarnings("unchecked") public PropertyValue<Float> getRasterHueRotate() { checkValidity(); return (PropertyValue<Float>) new PropertyValue(nativeGetRasterHueRotate()); } - + @SuppressWarnings("unchecked") public PropertyValue<Float> getRasterBrightnessMin() { checkValidity(); return (PropertyValue<Float>) new PropertyValue(nativeGetRasterBrightnessMin()); } - + @SuppressWarnings("unchecked") public PropertyValue<Float> getRasterBrightnessMax() { checkValidity(); return (PropertyValue<Float>) new PropertyValue(nativeGetRasterBrightnessMax()); } - + @SuppressWarnings("unchecked") public PropertyValue<Float> getRasterSaturation() { checkValidity(); return (PropertyValue<Float>) new PropertyValue(nativeGetRasterSaturation()); } - + @SuppressWarnings("unchecked") public PropertyValue<Float> getRasterContrast() { checkValidity(); return (PropertyValue<Float>) new PropertyValue(nativeGetRasterContrast()); } - + @SuppressWarnings("unchecked") public PropertyValue<Float> getRasterFadeDuration() { checkValidity(); return (PropertyValue<Float>) new PropertyValue(nativeGetRasterFadeDuration()); } - + private native Object nativeGetRasterOpacity(); private native Object nativeGetRasterHueRotate(); |