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
If queryRenderedFeatures is passed an invalid filter, it throws. If it's passed an invalid layer ID (one that doesn't exist in the style), it emits an error event.
Is there a reason these two errors are reported differently or can we use a consistent error reporting mechanism?
We have decided to always emit, not throw, errors.
lucaswoj
changed the title
Make error handling for queryRenderedFeatures consistent
Ensure we always emit "error" events instead of throwing errors
Sep 16, 2016
If
queryRenderedFeatures
is passed an invalid filter, it throws. If it's passed an invalid layer ID (one that doesn't exist in the style), it emits anerror
event.Is there a reason these two errors are reported differently or can we use a consistent error reporting mechanism?
cc @mollymerp @lucaswoj
The text was updated successfully, but these errors were encountered: