We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mapbox-gl-directions/src/directions.js
Line 1 in 5001f62
if (!mapboxgl) throw new Error('include mapboxgl before mapbox-gl-directions.js');
If mapboxgl is not defined, this will throw a referenceerror, not the error it looks like it'll throw. A correct check would be
if (typeof mapboxgl === 'undefined') throw new Error('include mapboxgl before mapbox-gl-directions.js');
!mapboxgl is a value check, not an existence check: referencing a non-bound name will always throw.
!mapboxgl
The text was updated successfully, but these errors were encountered:
Fixed in #86
Sorry, something went wrong.
No branches or pull requests
mapbox-gl-directions/src/directions.js
Line 1 in 5001f62
If mapboxgl is not defined, this will throw a referenceerror, not the error it looks like it'll throw. A correct check would be
!mapboxgl
is a value check, not an existence check: referencing a non-bound name will always throw.The text was updated successfully, but these errors were encountered: