Closed renatojobal closed 1 year ago
PropertyFactory.lineColor() works well when using it in the current form:
PropertyFactory.lineColor( ContextCompat.getColor(context, android.R.color.holo_blue_light) )
But when I use it in this way it does no work:
PropertyFactory.lineColor( 0xFFFF0000.toInt() )
or
PropertyFactory.lineColor( "0xFFFF0000" )
PropertyFactory.lineColor( "FFFF0000" )
The documentation is not much clear about how the format in wich to pass the color:
/** * The color with which the line will be drawn. * * @param value a int color value * @return property wrapper around String color */
Mapbox version: implementation 'org.maplibre.gl:android-sdk:9.4.0'
My bad, I was overwriting the value of the layer in the following code, sorry
PropertyFactory.lineColor() works well when using it in the current form:
But when I use it in this way it does no work:
or
or
The documentation is not much clear about how the format in wich to pass the color:
Mapbox version: implementation 'org.maplibre.gl:android-sdk:9.4.0'