Is it possible to request functions that are not displayed?

I would like to know if there is a way to request functions that do not appear on the map.

The two queryRenderedFeaturesand querySourceFeaturesonly work when the functions are displayed on the map.

I also tried to hide functions using setLayoutPropertywith visibility and usage setFilter. Both do not return functions upon request.

example

+4
source share
1 answer

MapboxGL only requests snippets for the current viewport and zoom level. If it is not available through map#queryRenderedFeaturesor map#querySourceFeatures, then the MapboxGL does not have the data you are looking for.

+1
source

Source: https://habr.com/ru/post/1666962/


All Articles