Open Ludus731 opened 4 weeks ago
Seems you try to run on node and not in the browser?
The error is from leaflet itself, which should run in the browser.
Seems you try to run on node and not in the browser?
Which file do I need to open in the browser after loading the package with npm install leaflet.offline
? I only need to download and save the map tiles on my PC.
I want to download map tiles using leaflet.offline:
npm init
in an empty project directorynpm install leaflet.offline
index.js
withimport 'leaflet.offline'
"type": "module"
topackage.json
node index.js
I’m getting an error:
OS: Windows 10