Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rendering artefact with symbolizers created from Mapbox style #159

Closed
claustres opened this issue Jul 12, 2024 · 2 comments
Closed

Rendering artefact with symbolizers created from Mapbox style #159

claustres opened this issue Jul 12, 2024 · 2 comments

Comments

@claustres
Copy link

In an effort to pursue the support of this kind of style, we get pretty good results but we struggle with a rendering artefact that maybe someone could help identify the root cause. It appears that some lines seems to be "filled", it's certainly not a bug but probably a misusage, here is a rendering at different zoom levels:
Capture d’écran du 2024-07-12 11-57-17
Capture d’écran du 2024-07-12 11-57-21
Capture d’écran du 2024-07-12 11-57-25

Any insight is welcome, thanks.

@bdon
Copy link
Member

bdon commented Jul 13, 2024

Are you attempting to use a PolygonSymbolizer on a line feature?

You should first filter any rules that use polygon fill operations to only features with polygon geometries.

Are you mutating the context2d of the canvas in a custom Symbolizer and not resetting it at the end?

@claustres
Copy link
Author

Find it out with your help and actually the help of feature picking to identify the failing features/rules !

I was not correctly manage filtering on geometry types so that some polygon symbolizers was run over line features.

Thanks.

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

No branches or pull requests

2 participants