Add bindings for circle-sort-key (#322)

* Update generate-style-code.js

* add jni bindings for circle-sort-key

* update mapbox-gl-native to latest

* Revert "add jni bindings for circle-sort-key"

This reverts commit cdd6049d

Co-authored-by: kevin <kevin.li@mapbox.com>
This commit is contained in:
Chloe Krawczyk
2020-04-15 02:56:54 -07:00
committed by GitHub
parent d32133790c
commit 77d0d5e5cf
7 changed files with 78 additions and 8 deletions

View File

@@ -99,6 +99,32 @@ public class CircleLayerTest extends BaseLayerTest {
@Test
@UiThreadTest
public void testCircleSortKeyAsConstant() {
Timber.i("circle-sort-key");
assertNotNull(layer);
assertNull(layer.getCircleSortKey().getValue());
// Set and Get
Float propertyValue = 0.3f;
layer.setProperties(circleSortKey(propertyValue));
assertEquals(layer.getCircleSortKey().getValue(), propertyValue);
}
@Test
@UiThreadTest
public void testCircleSortKeyAsExpression() {
Timber.i("circle-sort-key-expression");
assertNotNull(layer);
assertNull(layer.getCircleSortKey().getExpression());
// Set and Get
Expression expression = number(Expression.get("undefined"));
layer.setProperties(circleSortKey(expression));
assertEquals(layer.getCircleSortKey().getExpression(), expression);
}
@Test
@UiThreadTest
public void testCircleRadiusTransition() {