Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Re-attempt downloading of failed tiles #171

Open
m-hamza-tanbits opened this issue Nov 13, 2024 · 3 comments · May be fixed by #156
Open

[FEATURE] Re-attempt downloading of failed tiles #171

m-hamza-tanbits opened this issue Nov 13, 2024 · 3 comments · May be fixed by #156
Labels
feature This issue requests a new feature

Comments

@m-hamza-tanbits
Copy link

m-hamza-tanbits commented Nov 13, 2024

What do you want implemented?

  • I am downloading a region
  • while downloading most of the tiles going failed.
  • When downloading complete can we download just failed tiles or we need to download again complete region again.
    is there any way that we can just download failed tiles?

`downloadRegion(List data) {
log("downloading start");
final Vm controller = Get.put(Vm());
final region = CustomPolygonRegion(data);
final downloadable = region.toDownloadable(
minZoom: 4,
maxZoom: 12,
options: TileLayer(
urlTemplate: mapBoxURl,
userAgentPackageName: 'com.example.app',
),
);
controller.setDownloadProgress(FMTCStore('mapStore')
.download
.startForeground(
region: downloadable,
skipExistingTiles: true,
skipSeaTiles: true,
maxBufferLength: 5000,
instanceId: MapFunctions.generateRandomNumber(0, 10000),
)
.asBroadcastStream());

controller.downloadProgress?.listen((progress) {
log('Download Progress: ${progress.percentageProgress}/${progress.isComplete} ${progress.remainingTiles} ${progress.successfulTiles} ${progress.cachedTiles} ${progress.estRemainingDuration}');
});

// controller.update();
// FMTCStore('mapStore').download.check(downloadable).then((value) => debugPrint("value length ${value}"));
}
`

What other alternatives are available?

No response

Can you provide any other information?

No response

Severity

Annoying: Currently have to use workarounds

@JaffaKetchup JaffaKetchup added the feature This issue requests a new feature label Dec 5, 2024
@JaffaKetchup JaffaKetchup changed the title How we can download failed Tiles Again [FEATURE] Re-attempt downloading of failed tiles Dec 5, 2024
@JaffaKetchup
Copy link
Owner

Hey @m-hamza-tanbits,
Thanks for the suggestion! This isn't currently possible, but I've added it to the todo list :)

@JaffaKetchup
Copy link
Owner

This has been implemented and will be available in v10.

@JaffaKetchup JaffaKetchup linked a pull request Dec 11, 2024 that will close this issue
@Hamza117411
Copy link

When V10 will be released?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue requests a new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants