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
Hello, I am trying to add colored icons for SymbolLayer. So i have an Images component that gets an array of images located in Images.xcassets and drawables directories.
On IOs everything works fine, no errors, icons get painted the right color, but on Android app just crashes ( no errors at all ).
If i remove the sdf property, and make it just an array of strings, which are names of icons, Android starts to work just fine, but obviously the color is not applied.
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
-
Hello, I am trying to add colored icons for SymbolLayer. So i have an Images component that gets an array of images located in Images.xcassets and drawables directories.
<MapboxGL.Images nativeAssetImages={images} />
Array of images contains name and sdf property:
const images = [ { name: "marker_pin", sdf: true }, { name: "circle", sdf: false }, { name: "assets__", sdf: true }, { name: "assets_person_", sdf: true }, { name: "assets_place_", sdf: true }, { name: "incidents__", sdf: true }, { name: "events__", sdf: true }, { name: "squintems_waze", sdf: false }, { name: "assessments__", sdf: true }, { name: "team_members__", sdf: true }, { name: "fieldinterviews__", sdf: true }, { name: "fieldreports__", sdf: true }, { name: "live_feed_temporary_icon", sdf: true } ];
On IOs everything works fine, no errors, icons get painted the right color, but on Android app just crashes ( no errors at all ).
If i remove the sdf property, and make it just an array of strings, which are names of icons, Android starts to work just fine, but obviously the color is not applied.
Does somebody have any idea what could be wrong?
Beta Was this translation helpful? Give feedback.
All reactions