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

Caching map tiles for nice animation? #2227

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

You must be logged in to vote

@trusktr , good to see you again!

Very interesting use case, we haven't done anything like this, but it should be possible.

From the MapView, you can access the visibleTileSet, see: https://www.harp.gl/docs/master/doc/classes/harp_mapview.mapview-1.html#visibletileset

Then there is a method where you can create a tile, see: https://www.harp.gl/docs/master/doc/classes/harp_mapview.visibletileset-1.html#gettile

You will need to make sure that your cache is big enough in the MapView, see: https://www.harp.gl/docs/master/doc/interfaces/harp_mapview.mapviewoptions-1.html#tilecachesize

The problem remains that you need to compute the tile keys that are intersected by the camera for the pre-defi…

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