-
I have a use case where I am loading multiple sets of .pmtiles, and would like to draw the interaction between them on the frontend. As an example, I have vector tiles for the boundaries of States, and also for HUCs, and also for EcoRegions. I would like to There are a variety of Canvas methods to help with this in general such as
Any thoughts on how to manage these problems? It seems that an |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
I would calculate the relevant polygons on the server side and encode those in the tileset. The goal of this library is to do basic drawing only, and advanced operations like clipping are out of scope. |
Beta Was this translation helpful? Give feedback.
The lifecycle of a tile is not straightforward, because this library also handles label collisions - when a label overflows onto a neighboring tile that was already rendered, it cause a re-render of the stale tile. So an
afterDraw
event for a tile would have unintuitive behavior.The output of these interact with the Canvas 2D API, so we would either need a mock Canvas implementation and write assertions on that, or test pixel…