mapbox-maps-flutter icon indicating copy to clipboard operation
mapbox-maps-flutter copied to clipboard

accuracyRadiusColor transparency don't apply on LocationIndicatorLayer

Open MaisClement opened this issue 8 months ago • 2 comments

Hi,

I'm working on add the user location on the map using the LocationIndicatorLayer

mapboxMap.style.addLayer(LocationIndicatorLayer(
      id: 'locationIndicator',
      location: [latitude, longitude, altitude],
      accuracyRadius: accuracy,
      visibility: Visibility.VISIBLE,
      topImage: 'location_indicator',
      accuracyRadiusColor: Color.fromARGB(125, 2, 89, 130).toARGB32(),
    ));

But the accuracyRadiusColor transparency don't apply :

Image

Color.fromARGB(125, 2, 89, 130) -> Not transparent at all Color.fromARGB(1, 2, 89, 130) -> Not transparent at all Color.fromARGB(0, 2, 89, 130) -> Not visible

Is there is something i'm doing wrong ?

if needed :

mapbox_maps_flutter: 2.7.0

Flutter 3.29.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision ea121f8859 (9 days ago) • 2025-04-11 19:10:07 +0000
Engine • revision cf56914b32
Tools • Dart 3.7.2 • DevTools 2.42.3

MaisClement avatar Apr 20 '25 17:04 MaisClement

HI @MaisClement, thank you for the report, I can confirm the issue is reproducible on my side.

evil159 avatar Apr 23 '25 10:04 evil159

@MaisClement This issues is addressed in https://github.com/mapbox/mapbox-maps-flutter/pull/919 and should be released in the upcoming 2.8.0-rc.1.

evil159 avatar Apr 23 '25 12:04 evil159