mapbox / mapbox-maps-flutter

Interactive, thoroughly customizable maps for Flutter powered by Mapbox Maps SDK
https://www.mapbox.com/mobile-maps-sdk
Other
252 stars 94 forks source link

Allows setting empty byte array to remove puck's images #460

Closed maios closed 2 months ago

maios commented 2 months ago

What does this pull request do?

Allows setting an empty byte array to puck's images, when this is set, the image will be disable on the puck

// This will use a puck with custom topImage, default bearing image and no shadow image
mapboxMap?.location.updateSettings(LocationComponentSettings(
          enabled: true,
          puckBearingEnabled: true,
          locationPuck:
                LocationPuck(locationPuck2D: DefaultLocationPuck2D(topImage: list, shadowImage: Uint8List.fromList([])))));

What is the motivation and context behind this change?

Pull request checklist: