mapbox / mapbox-gl-native-android

Interactive, thoroughly customizable maps in native Android powered by vector tiles and OpenGL
https://mapbox.com/mobile
Other
218 stars 116 forks source link

Customized location icon is not visible if its color is defined via theme attribute #716

Open grzesiek2010 opened 2 years ago

grzesiek2010 commented 2 years ago

Hi! I'm Grzegorz form Open Data Kit where we use Mapbox and recently spotted this bug (ref: https://github.com/getodk/collect/issues/4858). I investigated the issue and it turns out that the icon is not visible if we use theme attribute (?colorPrimary in our case) but everything is fine if I call the resource directly (@color/colorPrimary). Here is the custom drawable we use: https://github.com/getodk/collect/blob/master/collect_app/src/main/res/drawable/ic_crosshairs.xml What's interesting is the fact we also use a custom icons for symbols and there theme attributes work well so it seems to be a bug only in the location icon.

Version: In ODK we use v9.2.1 but I also checked newer versions like: 9.7.0 and the problem is not solved there as well.