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

Feature Mismatch Between Map and Rendered Features Query #13297

Open
mcollins-GPI opened this issue Oct 3, 2024 · 1 comment
Open

Feature Mismatch Between Map and Rendered Features Query #13297

mcollins-GPI opened this issue Oct 3, 2024 · 1 comment

Comments

@mcollins-GPI
Copy link

I have listed this potential bug on Github as well, but figured this might be the more appropriate place to ask the question. I am getting strange behavior with Mapbox 3 when I click on the map. It seems like the features arbitrarily correspond (or don't) with the location of the map click. In the example below, I am clicking in empty space and getting back 3 features:

Map click event where no features should be captured

In the second image I am displaying the coordinates of the features selected and they are not very close (when compared to the scale at zoom level 16) to the point clicked. The point clicked is the second command shown:

Queried features vs Map Click Point @ Zoom Level 16

If I then query the features that are returned in Postgres to see the actual locations being selected, I get even another representation of the data:

Representation of mapped data from database

To put it simply, something is not right here, and I am not sure why the click event would return data that is not in the same location, or in some cases even close. While in others it returns the feature displayed on the map correctly. Any guidance or starting steps to break this problem down would be most appreciated.

@stepankuzmin
Copy link
Contributor

Hi @mcollins-GPI,

Thank you for opening this ticket. Please provide a minimal, complete, verifiable demonstration of the issue to help the maintainers and community understand and address the problem accurately. We recommend using https://jsbin.com/. Please include information about the browser version and operating system used.

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

No branches or pull requests

2 participants