Add support for text-variable-anchor-offset property (#2921)
Co-authored-by: Yingfang Wang <junew@microsoft.com> Co-authored-by: Alexey Kon <48697757+random3940@users.noreply.github.com>
This commit is contained in:
@@ -722,6 +722,19 @@ public class SymbolLayerTest extends BaseLayerTest {
|
||||
assertEquals(layer.getTextVariableAnchor().getValue(), propertyValue);
|
||||
}
|
||||
|
||||
@Test
|
||||
@UiThreadTest
|
||||
public void testTextVariableAnchorOffsetAsConstant() {
|
||||
Timber.i("text-variable-anchor-offset");
|
||||
assertNotNull(layer);
|
||||
assertNull(layer.getTextVariableAnchorOffset().getValue());
|
||||
|
||||
// Set and Get
|
||||
Object[] propertyValue = new Object[] {"top", new Float[]{1f, 2f}};
|
||||
layer.setProperties(textVariableAnchorOffset(propertyValue));
|
||||
assertEquals(layer.getTextVariableAnchorOffset().getValue(), propertyValue);
|
||||
}
|
||||
|
||||
@Test
|
||||
@UiThreadTest
|
||||
public void testTextAnchorAsConstant() {
|
||||
|
||||
Reference in New Issue
Block a user