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

Unexpected results from overlapping polygons #13301

Open
farseekers opened this issue Oct 16, 2024 · 0 comments
Open

Unexpected results from overlapping polygons #13301

farseekers opened this issue Oct 16, 2024 · 0 comments

Comments

@farseekers
Copy link

mapbox-gl-js version: 3.7.0

browser: Google Chrome 130

Steps to Trigger Behavior

Create a map instance with a filled Polygon containing three sets of coordinates.

  1. The entire world - [[180, 90], [-180, 90], [-180, -90], [180, -90]]
  2. A triangle - [[149.4, -37.3], [152.5, -32.1], [150.1, -32.6]]
  3. A triangle within the previous one - [[151, -32.8], [151.5, -32.8], [152, -32.6]]

Link to Demonstration

https://codepen.io/farseekers/pen/abeWNVz

Expected Behavior

I acknowledge there might be different interpretations of whether the inner triangle should be filled or not, but I expect the corners of the resulting shapes to be limited to the supplied points.

Actual Behavior

At a certain zoom level, there is a triangle that seems unrelated to any of the input points. I've used markers to indicate the input points.

demo
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