Replies: 1 comment
-
Opened #2880 to add PropertyFactory.iconPadding(Float) back. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Looks like MapLibre Android 11.5.0 introduces a backwards-incompatible when support for an array for
icon-padding
was merged #2845. Apologies for this, it was an oversight on my part, we aim to stick to strict semantic versioning.The incompatible APIs are:
SymbolLayer.getIconPadding()
now returns aFloat[]
instead of aFloat
.PropertyFactory.iconPadding(padding)
now requires aFloat[]
instead of aFloat
as parameter.I can either revert the change in a patch release (technically making another breaking release), or let users migrate to the new API using the migration guide below.
Migration Guide
SymbolLayer.getIconPadding()
withSymbolLayer.getIconPadding()[0]
.PropertyFactory.iconPadding(value)
withPropertyFactory.iconPadding(new Float[]{value})
.Beta Was this translation helpful? Give feedback.
All reactions