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
API provides way to disable expressions validation for some cases. As I undastand it has been done for performace in production, it is our case too. Next methods provide ability to disable validation:
Map.setFilter
Map.setLayoutProperty
Map.setPaintProperty
Map.setFilter
Map.setLight
But validation also is used in following methods, and cannot be disabled:
queryRenderedFeatures, querySourceFeatures
addSource, addLayer (are not so critical)
mapbox-gl-js version: 0.54 beta 2 browser: any
The text was updated successfully, but these errors were encountered:
gorshkov-leonid
changed the title
Functional incontinence: validation cannot be disabled for API methods queryRenderedFeatures, querySourceFeatures, addSource, addLayer
Functional inconsistency: validation cannot be disabled for API methods queryRenderedFeatures, querySourceFeatures, addSource, addLayer
Apr 29, 2019
…querySourceFeatures (#8211)
* #8189 disable validation for queryRenderedFeatures and querySourceFeatures
* #8189 disable validation for queryRenderedFeatures and querySourceFeatures
* #8189 disable validation for queryRenderedFeatures and querySourceFeatures. Unit tests, fix flow compilation.
This shipped for queryRenderedFeatures, querySourceFeatures. I think we can close this because addSource and addLayer aren't per-frame operations, so don't really need this optimization.
API provides way to disable expressions validation for some cases. As I undastand it has been done for performace in production, it is our case too. Next methods provide ability to disable validation:
But validation also is used in following methods, and cannot be disabled:
mapbox-gl-js version: 0.54 beta 2
browser: any
The text was updated successfully, but these errors were encountered: