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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user