You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm facing a problem while using queryRenderedFeaturesAtPoint function, this function is expecting to receive coordinates do load the Features from my mapbox polygn, the problem i'm facing is that whenever i call this function on onRegionDidChange it dosen't work, i've tryed many different things, sending the events coordinates, turning the coordinates into a a point by usage of getPointInView and sending the eventscoordinates but it didn't work, i also tried to use the getCenter to get the center of the map and turn the lat and long using getPointInView again and sending it to queryRenderedFeaturesAtPoint, didn't work, even when i'm sending fixed values the queryRenderedFeaturesAtPoint keeps returning a different result whenever i call onRegionDidChange, but whenever i use the onPress, the event returns me values like the screenPointX, screenPointY and sending those to queryRenderedFeaturesAtPoint it gets me the exact expected result, sadly i need this to work with onRegionDidChange because i need that whenever the user drags the map, to get the center of the map values. Thx in advance.
I'm facing a problem while using queryRenderedFeaturesAtPoint function, this function is expecting to receive coordinates do load the Features from my mapbox polygn, the problem i'm facing is that whenever i call this function on onRegionDidChange it dosen't work, i've tryed many different things, sending the events coordinates, turning the coordinates into a a point by usage of getPointInView and sending the events coordinates but it didn't work, i also tried to use the getCenter to get the center of the map and turn the lat and long using getPointInView again and sending it to queryRenderedFeaturesAtPoint, didn't work, even when i'm sending fixed values the queryRenderedFeaturesAtPoint keeps returning a different result whenever i call onRegionDidChange, but whenever i use the onPress, the event returns me values like the screenPointX, screenPointY and sending those to queryRenderedFeaturesAtPoint it gets me the exact expected result, sadly i need this to work with onRegionDidChange because i need that whenever the user drags the map, to get the center of the map values. Thx in advance.
The text was updated successfully, but these errors were encountered: