mapbox / mapbox-maps-flutter

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

Transparent area around custom tiles is now black #454

Open samstamper33 opened 4 months ago

samstamper33 commented 4 months ago

I use a mapbox studio style with a custom tile overlayed. Something has changed which is causing the transparency to show as black now instead of the style color of blue. This has worked for the past year without issue and saw this begin happening within the last week. Any idea on how this can be fixed?

Screenshot_1710706580

samstamper33 commented 4 months ago

This is how I am adding the tile:

await mapboxMap?.style.addSource(RasterSource(
      id: "source",
      tiles: [
        "https://api.mapbox.com/v4/${widget.attraction.rasterTileId}/{z}/{x}/{y}@2x.png?access_token=ACCESS_TOKEN"
      ],
      tileSize: 256,
      scheme: Scheme.XYZ,
      minzoom: 15,
      maxzoom: 19,
      // boun, 180.0, 85.0],
    ));
    await mapboxMap?.style
        .addLayer(RasterLayer(id: "layer", sourceId: "source"))
        .then((value) async {
      mapboxMap?.addListener(() {
        onMapTapListener;
      });
    });

What can be done to fix this issue?

Using version 0.4.4 on Mapbox v10