mapbox-gl-js icon indicating copy to clipboard operation
mapbox-gl-js copied to clipboard

Rendering image layer on a crossed quadrilateral bbox

Open 3zzy opened this issue 2 years ago • 1 comments

Rendering an image on a crossed quadrilateral seems to result in a layer which spans half the world.

Screenshot 2023-01-23 at 1 07 28 pm Screenshot 2023-01-23 at 1 08 24 pm

mapbox-gl-js version: 2.x

browser: Chrome

Link to Demonstration

https://jsfiddle.net/iaezzy/wz2pjmgx/1/

3zzy avatar Jan 23 '23 02:01 3zzy

Wow, looks bad... We should probably calculate a convex polygon on the input points to make sure they are ingested in the right order, or reject the input in case it's self-intersecting.

mourner avatar Jan 23 '23 10:01 mourner