Skip to content

Tileset interactions and clipping? #151

Answered by bdon
csbrown asked this question in Q&A
Apr 23, 2024 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

expand the Symbolizer API to accept an afterDraw method

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.

It doesn't appear that there are any tests surrounding the .drawing functionality of Symbolizers.... I could be convinced to create tests, but might need some direction since there aren't any related tests.

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…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@bdon
Comment options

bdon Apr 25, 2024
Maintainer

@csbrown
Comment options

@csbrown
Comment options

@bdon
Comment options

bdon May 14, 2024
Maintainer

Answer selected by csbrown
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