mapbox-maps-flutter
mapbox-maps-flutter copied to clipboard
Transparent area around custom tiles is now black
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?
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