Closed RikidWai closed 4 months ago
This isnt a bug, you are just most likely clicking on a tile that has no features. Take the param e.point out and you should get much more information. Try also clicking around until a tile returns output.
For example, if you click on a street name you will get a road label feature, however if the tile you click on has no features or a source layer, then you will get an empty array.
Description
I am following this example here https://docs.mapbox.com/mapbox-gl-js/example/queryrenderedfeatures/ to retrieve the information on point of the map. It uses queryRenderedFeatures() to generate the information of a tile. However, when I added this to my code. it returns an empty array only. May I ask if anyone experiencing the same issue?
Expected Behavior
No response
Steps to Reproduce
Here is my code
Environment
Logs
No response