Skip to content

queryRenderedFeatures to send error if given more than two points (polygon) instead of weird results #5685

Description

@g-ameline

Hello,

For what it's worth,
I tried to pass a ring/polygon to map.queryRenderedFeatures.
It did not work because, as mentioned in the documentation (that I overlooked) it takes 0, 1 or 2 points (bounding box).
The thing is that it still manage to return something sometimes and it can be confusing.

In my experience having a null or error instead would have been a game changer.

Thanks

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions