"Smart halos" requires separate layers #1259

Ahlzen opened this Issue Jun 16, 2012 · 4 comments


None yet

3 participants

Ahlzen commented Jun 16, 2012

The "smart halos" technique, as described at:


requires the halos and text labels to be on separate layers (with clear-label-cache="true" on the second layer), or the label collision detector will prevent the halos and labels from lining up. Thus it requires two separate (but identical) queries on the data source, which could (presumably) be a performance issue.


@artemp - I know you had ideas here, could you comment and fill this issue out a little bit more?

@artemp artemp was assigned Aug 3, 2012

ping @artemp - can you share more details about what kinds of solutions you were thinking of here?

Ahlzen commented Aug 4, 2012

I seem to remember the ability to clear the label cache per style (rather than per-layer) mentioned as a potential solution.


Supporting ignore-placement on the text symbolizer could help with this: #1535.

Also, we could potentially create multiple label caches and have them keyed, such that you could do:

<TextSymbolizer .... collision-cache="none" />
<TextSymbolizer .... collision-cache="places" />
<TextSymbolizer .... collision-cache="lines" />

Only those labels overlapping with items from their same cache would be thrown out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment