-
I use a mapbox street based basemap and want to query places appearing on the map.
Like this. The map clearly have these layer ids rendered, but I got back empty Featurecollection. Note: same with empty array for bbox. Thx a million :) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
and eeerrr... where are my line breaks in the code part? |
Beta Was this translation helpful? Give feedback.
-
It might be totally unrelated, but after fighting with a similar issue for whole day I noticed, that at least
In my case x/y is location of crosshair on screen and I'm querying features at |
Beta Was this translation helpful? Give feedback.
-
Thank you for this! The documentation led me astray for hours before discovering this discussion. I've confirmed that pixels are the expected value on my end too. Hopefully the maintainers update the docs. |
Beta Was this translation helpful? Give feedback.
Yeah,
queryRenderedFeaturesAtPoint
andqueryRenderedFeaturesInRect
feels quite tangled.You can workaround issue with [], by creating bbox using screen size, but proper fix from maintainers would be appreciated.