In mapbox/mapbox-gl-native#13306 and effectively Maps SDK v7.0.0 we've removed the plain text getter for the text-field property, but we've never adjusted the plugin. Right now, if there's a layer in the style, or added dynamically, with a constant text-field value, the localization will crash on this cast. Fortunately, the streets-v7 and streets-v8 contain only data-driven text fields which is hiding the bug.
Additionally, even legacy tokens are now returned as format expressions, which makes the token conversion logic obosolete and should be removed.
In mapbox/mapbox-gl-native#13306 and effectively Maps SDK
v7.0.0we've removed the plain text getter for thetext-fieldproperty, but we've never adjusted the plugin. Right now, if there's a layer in the style, or added dynamically, with a constanttext-fieldvalue, the localization will crash on this cast. Fortunately, thestreets-v7andstreets-v8contain only data-driven text fields which is hiding the bug.Additionally, even legacy tokens are now returned as
formatexpressions, which makes the token conversion logic obosolete and should be removed.