-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
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
Better error message for missing LngLat data #5880
Comments
I'm not able to replicate the issue. After correcting your example code ( http://jsbin.com/kahufozate/edit?html,output Can you provide a self-contained example on jsbin that shows the error? |
Oh man, apologies for the typo and also for providing code that doesn't throw the error haha, it was a crazy day. I probably copied my code after fixing the problem. Here's the updated JSBin: |
Hi @jfirebaugh Thanks for your help. Thanks! |
mapbox-gl-js version: 1.6.2
Steps to Trigger Behavior
.setPopup
, before.setLngLat
, which is not necessarily counterintuitiveExpected Behavior
An error saying that
LngLatLike
argument is missing altogether?Actual Behavior
"Error: `LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]"
The text was updated successfully, but these errors were encountered: