Simple example for a POC
Hi,
Your MBTiles solution looks what is very fitting for me/us. Thank you for providing.
When doing a POC, I installed via npm the demo. The demo.html runs fine. Great !!
Doing some more investigating, I downloaded MBTILES files for both a city Amsterdam and a country (850MB).
-
https://openmaptiles.org/downloads/#city ... Amsterdam ... gets the right MBTile file
-
I changed the demo code. See below.
When double clicking the HTML file I did only see a grey map. I am new in this area ;-)
Q1: what am I doing wrong?
Q2: when loading the Dutch map (800MB) I get a 'out of memory' error. When using a good zoom level, then this is eliminated?
I really do hope you can help me finish this small POC. This is used for deciding on further steps.
Kind regards,
Johan
---- demo amsterdam -----
Leaflet.TileLayer.MBTiles demo #map { width:600px; height:400px; }