flutter-mapbox-gl / maps

A Mapbox GL flutter package for creating custom maps
Other
1.04k stars 503 forks source link

Error: PlatformException(DeleteRegionError, There is no region with given id to delete., null, null) #1255

Closed JayeshItaliya closed 1 year ago

JayeshItaliya commented 1 year ago

void _deleteRegion(OfflineRegionListItem item, int index) async { setState(() { _items.removeAt(index); _items.insert(index, item.copyWith(isDownloading: true)); });

await deleteOfflineRegion(
  item.downloadedId!,
  accessToken: MapsDemo.ACCESS_TOKEN,
);

setState(() {
  _items.removeAt(index);
  _items.insert(
      index,
      item.copyWith(
        isDownloading: false,
        downloadedId: null,
      ));
});

}

it does not remove storage space and cache. it does not remove the offline region list.

would you please help me to solve these 2 point?

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Miguel-A-Jara commented 8 months ago

Does anybody have any news on this? I was wondering if a function to delete ALL offline maps without providing an ID could be implemented.

That would be quite useful.