Relative Content

Tag Archive for javascriptreactjsmapbox-gl-jsreact-map-glsupercluster

Detecting click on unclustered points in Mapbox

I have noticed that when clicking a single, unclustered point there is no actual feature in event.features. Is only possible way to actually look for nearby elements around the click as I did with queryRenderedFeatures? Why is that it still returns an array of 2 (the same) elements even tho there is only one point there?