Relative Content

Tag Archive for javascriptreactjstypescriptmapbox

Mapbox queryRenderedFeatures() returns empty array

I am following this example here https://docs.mapbox.com/mapbox-gl-js/example/queryrenderedfeatures/ to retreive the infomation of point of the map. The only thing i change is that I wish to it retrieve when on click.