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

Conversation

@rosecodym
Copy link

Added here is the capability to calculate tile coverage of arbitrary polygonal areas in addition to the basic bounding boxes that were already supported, as well as an additional offline region definition to support polygonal regions. (See #4106) The offline region definition hierarchy has been fiddled with a bit to enable this, and should be easily expandable to future region types, such as ones generated from linear features.

The added deserialization features will be necessary for persisting offline polygon regions.
…d size

Calling code may not want to or know how to specify a world size; in these cases, the TransformState should just use its own.
This inverse of fromLatLng will be used later to test the polygon tile cover code.
It is now possible to calculate the tile coverage of arbitrary polygons (including ones with holes). The implementation treats (0,0) as the polygon's center.
There is now a way to create and persist offline storage regions other than the old tile pyramids. The region type is now a variant, and the two options are the old tile pyramids, and a new type for polygons. Each type is an instantiation of a class template for offline regions with fixed geometry.
@mention-bot
Copy link

@rosecodym, thanks for your PR! By analyzing the annotation information on this pull request, we identified @jfirebaugh, @brunoabinader and @kkaefer to be potential reviewers

@jfirebaugh
Copy link
Contributor

Replaced by #11267 and followups to come.

@jfirebaugh jfirebaugh closed this Apr 30, 2018
@jfirebaugh jfirebaugh deleted the wip-rosecodym branch April 30, 2018 18:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Core The cross-platform C++ core, aka mbgl feature offline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants