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
{{ message }}
Repository navigation
Ensure we always emit "error" events instead of throwing errors #3208
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?
changed the title [-]Make error handling for queryRenderedFeatures consistent[/-][+]Ensure we always emit "error" events instead of throwing errors[/+]on Sep 16, 2016
Activity
lucaswoj commentedon Sep 16, 2016
We have decided to always emit, not throw, errors.
[-]Make error handling for queryRenderedFeatures consistent[/-][+]Ensure we always emit "error" events instead of throwing errors[/+]lucaswoj commentedon Sep 16, 2016
We should entirely remove the "throws" branch in this code http://github.com/mapbox/mapbox-gl-js/blob/b3bffe06564dcd031feeba715bd80de36e94f990/js/style/style.js#L689-L690