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
The feature states API allows changing a feature's paint properties, but does not reflect these changes in the tile's queryPadding. Calls to Map#queryRenderedFeatures will not include results for features affected by feature-state expressions, and return incorreclt results.
The Tile#queryPadding value is not updated after a call to Map#setPaintProperty() Map#setPaintProperty invalidates a style layer and triggers a refresh of the tile's query padding though an asynchonous updateLayers operation. Similar to symbol placement after a frame, the query results may be out of sync when the async operation to update the feature index (and query padding) are not complete.
One approach is to dynamically compute Tile.queryPadding to ensure that the padding reflects current tile state.
The text was updated successfully, but these errors were encountered:
Carried forward from here(comment)
The feature states API allows changing a feature's paint properties, but does not reflect these changes in the tile's
queryPadding
. Calls toMap#queryRenderedFeatures
will not include results for features affected byfeature-state
expressions, and return incorreclt results.TheTile#queryPadding
value is not updated after a call toMap#setPaintProperty()
Map#setPaintProperty
invalidates a style layer and triggers a refresh of the tile's query padding though an asynchonousupdateLayers
operation. Similar to symbol placement after a frame, the query results may be out of sync when the async operation to update the feature index (and query padding) are not complete.One approach is to dynamically compute
Tile.queryPadding
to ensure that the padding reflects current tile state.The text was updated successfully, but these errors were encountered: