-
Notifications
You must be signed in to change notification settings - Fork 104
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
Uncaught type error when I attempt to redraw the map and overlay after deleting it. #47
Comments
Quite conveniently as I was visiting the repo on GitHub I noticed that there was an open pull request #10 from @GoToLoop and I copied and pasted in the code from here and it worked. The only difference was the CSS in the HTML was slightly in that the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Below is the code I use to create a map and associated overlay.
(I am using p5 in instance mode because I have multiple sketches on the same page)
Later on in the code I delete it by using
Which acts as expected.
However, when I go to redraw the map and sketch again using the above code I get the following error.
A similar issue has been raised in issues #36 and #11 and in both of those they recommend that I update my version of p5.js or mappajs I have tried both of these and it has not worked.
And a related issue has been raised in #45.
In addition to the above, I have attempted to fiddle around with the
onload
function in the HTML tags and that has not worked either.Any help or suggestions would be appreciated.
EDIT: In the first block of code I changed the line
myMap.overlay(canvas);
tomyMap.overlay(this.canvas);
.The text was updated successfully, but these errors were encountered: