Skip to content

Annotation text with halo - halo not printed#35

Merged
jodygarnett merged 1 commit intomapfish:mainfrom
Mike7311:outline_fix
Jul 17, 2025
Merged

Annotation text with halo - halo not printed#35
jodygarnett merged 1 commit intomapfish:mainfrom
Mike7311:outline_fix

Conversation

@Mike7311
Copy link
Copy Markdown
Contributor

@Mike7311 Mike7311 commented Jul 9, 2025

Related issue: #36

The goal of this PR is to fix the handling of outline releated parametrs. Namely:
labelOutlineColor
labelOutlineOpacity
labelOutlineWidth

Previously providing these parameters to LabelRenderer#applyStyle resulted in outline being written on top of label, which resulted in text being covered with outline.
With fix the outline is now being rendered first, and text is being rendered on top of it.
Some example are provided below:
Screenshot from 2025-07-09 16-13-19
Screenshot from 2025-07-09 16-14-02

Also added the "labelOutlineMode" parameter, that currently can have "halo" and "stroke" values. The "halo" is default value.
When "stroke" is provided the outline is rendered, but text is not, which result in "hollow" characters.

@tdipisa
Copy link
Copy Markdown
Collaborator

tdipisa commented Jul 16, 2025

Hi @jodygarnett we need also your approval, I guess. Looking forward to hearing from you, then. I'm wondering if there is a way for having the GeoSolutions people more involved on this repo from the admin point of view.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants