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

computeRequiredInitialRootTileKeys #2233

Answered by nzjony
blueRaining asked this question in Q&A
Discussion options

You must be logged in to vote

@blueRaining , sorry for the delay.

Yes, this function may be confusing, sorry about that.

Basically, the function just estimates what initial root tile keys are in the viewport, it takes a very approximate approach, so it overestimates, but it is not expensive, so we didn't have a more complicated solution.

It is basically used to show the multiple worlds in a flat planar projection when you zoom out. I.e. for a globe projection, returning the tile key with 0 offset is enough. The offset just means which world used, see screenshot.

Regarding documentation, we don't have anything for this concept unfortunately.

Does that answer your questions, or do you need any more help?

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nzjony
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