Closed johhnry closed 1 year ago
I assume you are loading mappa with the script provided in the tutorial. There's an error with that link, need to updated it. For now just replace:
<head>
<title>Basic Mappa Tutorial</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.16/p5.min.js" type="text/javascript"></script>
<script src="https://unpkg.com/mappa-mundi/dist/mappa.min.js" type="text/javascript"></script>
</head>
with
<head>
<title>Basic Mappa Tutorial</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.16/p5.min.js" type="text/javascript"></script>
<script src="https://unpkg.com/mappa-mundi@0.0.5/dist/mappa.js" type="text/javascript"></script>
</head>
Thank you very mutch for your answer, it works now.
Have a nice day!
Hey,
I have a problem with mappa.js, it is the very basic. I was following the tutorial https://mappa.js.org/docs/simple-map.html and my code doesn't work :
What I found is that the line
myMap.overlay(canvas);
is the problem. This is the console error :Thanks for helping me.