-
Notifications
You must be signed in to change notification settings - Fork 103
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
myMap.pixelToLatlng is not a function #18
Comments
I think this has to do with how blocks and p5.js manage global variables. myMap is not defined in the global scope and p5 expects it to be. can you try running this in a local editor? |
Yes tried in local, same problem. It's strange since myMap is accessible in the |
There's a typo in the documentation it should be |
I'm glad I found this. I appreciate your work! Do you mind updating the documentation on mappa.js.org to reflect this? |
Sorry for the continuous posting of issues.
When i try to use the
pixelToLatlng()
function i get this error:Here an example using it. If you open the console and click on the map you should see the error.
The text was updated successfully, but these errors were encountered: