I would like to know if there is a way to query features that are not being displayed on a map.
Both queryRenderedFeatures and querySourceFeatures only work when the features are being displayed on the map.
I tried also to hide the features using setLayoutProperty with visibility and using setFilter. Both don't return features when queried.
example
MapboxGL only requests tiles for the current viewport and zoom level. If it's not available via map#queryRenderedFeatures or map#querySourceFeatures then your MapboxGL map doesn't have the data you are looking for.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With