Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Add method for calculating number of tiles in tile pyramid #11504

Open
1ec5 opened this issue Mar 22, 2018 · 3 comments
Open

Add method for calculating number of tiles in tile pyramid #11504

1ec5 opened this issue Mar 22, 2018 · 3 comments
Assignees
Labels
gl-ios good first issue Good for newcomers iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS offline

Comments

@1ec5
Copy link
Contributor

1ec5 commented Mar 22, 2018

MGLTilePyramidOfflineRegion should have a countOfTiles method that returns the number of tiles included in the tile pyramid. The implementation would rely on the mbgl::util::tileCount() function added in #9906.

This is the iOS/macOS equivalent to #11108 for Android. It would serve as a built-in alternative to mapbox/turf-swift#47 for applications already using the map SDK, including applications written in Objective-C.

/cc @captainbarbosa @kalimar @asheemmamoowala

@1ec5 1ec5 added iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS offline good first issue Good for newcomers labels Mar 22, 2018
@1ec5
Copy link
Contributor Author

1ec5 commented Mar 22, 2018

#11447 may end up generalizing MGLTilePyramidOfflineRegion so that it can cover a non-polygonal region of the map. #11267 tracks similarly generalizing mbgl::util::tileCount() to accept an arbitrary geometry, so it still makes sense to add a method to whatever becomes of MGLTilePyramidOfflineRegion.

@stale
Copy link

stale bot commented Nov 20, 2018

This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

@stale stale bot closed this as completed Nov 20, 2018
@stale stale bot removed the archived Archived because of inactivity label Nov 20, 2018
@stale stale bot added the archived Archived because of inactivity label May 19, 2019
@stale
Copy link

stale bot commented May 19, 2019

This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

@stale stale bot closed this as completed May 19, 2019
@julianrex julianrex reopened this May 20, 2019
@stale stale bot removed the archived Archived because of inactivity label May 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
gl-ios good first issue Good for newcomers iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS offline
Projects
None yet
Development

No branches or pull requests

5 participants