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

Transparent area around custom tiles is now black

Open samstamper33 opened this issue 1 year ago • 1 comments

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 avatar Mar 17 '24 20:03 samstamper33

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

samstamper33 avatar Mar 17 '24 20:03 samstamper33