Skip to content

accuracyRadiusColor transparency don't apply on LocationIndicatorLayer #915

Open
@MaisClement

Description

@MaisClement

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions