Skip to content

Discover & Delete offline maps #973

Answered by GULERTOLGA
LorenzSchueler asked this question in Q&A
Discussion options

You must be logged in to vote

You can set metaData Property like below


             downloadOfflineRegion(def,
                      accessToken: mapBoxAccessKey,
                      metadata: {"myProperty": "myValue"});

then you can find and delete the region id that have your custom metadata via getListOfRegions method.


            var id = regions
                      .where((element) =>
                          element.metadata.containsKey("myProperty"))
                      .first
                      .id;
             deleteOfflineRegion(id);

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LorenzSchueler
Comment options

Answer selected by LorenzSchueler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants