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

Intersection inconsistency #169

Open
helenezspeer opened this issue Aug 14, 2024 · 0 comments
Open

Intersection inconsistency #169

helenezspeer opened this issue Aug 14, 2024 · 0 comments

Comments

@helenezspeer
Copy link

My app creates an intersection between two MultiPolygons. Each of the two MultiPolygons is a result of combining visible polygon features from a vector tile source.

Sometimes, the same sources at different zooms intersects inconsistently. In the attached example, one of the intersections works as expected while the other fills in the "hole". In both instances, the polygons came from the same vector sources and were combined in the same matter, but from features rendered at different zoom levels.

Here's my example: https://stackblitz.com/edit/vitejs-vite-nkks8h?file=index.html

Since the layers are rendered at 50%, it's possible to see overlaps, and the intersection layer in the "bad" example shows a triangle that makes me wonder if the coordinates are in the wrong order?

Has anyone seen something like this? Any tips?

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

1 participant