[core] add raster-resampling property (#12176)

* update style-code for raster-resampling

* implement user-defined raster-resampling

* invert filter condition

* raster-resampling -> raster-resampling-mode for darwin language conventions
This commit is contained in:
Molly Lloyd
2018-06-21 14:37:17 -07:00
committed by GitHub
parent eb70b89849
commit e1af62e87d
24 changed files with 341 additions and 6 deletions

View File

@@ -241,6 +241,20 @@ public class RasterLayerTest extends BaseActivityTest {
});
}
@Test
public void testRasterResamplingAsConstant() {
validateTestSetup();
setupLayer();
Timber.i("raster-resampling");
invoke(mapboxMap, (uiController, mapboxMap) -> {
assertNotNull(layer);
// Set and Get
layer.setProperties(rasterResampling(RASTER_RESAMPLING_LINEAR));
assertEquals((String) layer.getRasterResampling().getValue(), (String) RASTER_RESAMPLING_LINEAR);
});
}
@Test
public void testRasterFadeDurationAsConstant() {
validateTestSetup();