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
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 a Float[] instead of a Float.
PropertyFactory.iconPadding(padding) now requires a Float[] instead of a Float 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
Replace SymbolLayer.getIconPadding() with SymbolLayer.getIconPadding()[0].
Replace PropertyFactory.iconPadding(value) with PropertyFactory.iconPadding(new Float[]{value}).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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