You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MapLibre Compose uses MapLibre Native's Android/iOS JSON -> Expression converters to set layer properties. This works for most properties, but errors out on SymbolLayer.textVariableAnchorOffset. The error is different on iOS and Android:
Android: Nested literal arrays are not supported
iOS: -[NSConstantValueExpression getValue:]: unrecognized selector sent to instance 0x60000028c800
Describe the bug
MapLibre Compose uses MapLibre Native's Android/iOS JSON -> Expression converters to set layer properties. This works for most properties, but errors out on
SymbolLayer.textVariableAnchorOffset
. The error is different on iOS and Android:Android: Nested literal arrays are not supported
iOS: -[NSConstantValueExpression getValue:]: unrecognized selector sent to instance 0x60000028c800
To Reproduce
On Android (Kotlin):
On iOS (Kotlin via Obj-C interop)
Expected behavior
Setting the value via the JSON converter should work the same as via
literal
/expressionForConstantValue
.Platform information:
Additional context
Slack thread: https://osmus.slack.com/archives/C02B2CBSNBU/p1734582889691469
Interestingly, setting the value with a
literal
expression does work:On Android:
on iOS: similar, but with
NSExpression.expressionForConstantValue
.The text was updated successfully, but these errors were encountered: