Hi:
Hopefully someone can help me.
I am using a Raspberry Pi running the latest version of raspbian and have installed a leaflet local tile server and I am using the default quick-start-example.html web page provided (see below).
I have downloaded a set of tiles from thunderforest.com/transport for the specific location using jTilerDownLoader-0-6-1 and have transferred them to the Raspberry Pi. I have performed a chmod 755 -R /var/www/map/leaflet/tiles where all the tile directories reside.
As the code currently sits the tiles are not displayed. I turn on Developer Tools on Google Chrome and I see 404 errors for each tile.
If I uncomment line 19 and comment line 20 and reload the web page - the tiles get loaded.
I have tried “L.tileLayer(‘file:/var/www/map/leaflet/tiles/{z}/{x}/{y}.png’, { " AND " L.tileLayer(‘file:///var/www/map/leaflet/tiles/{z}/{x}/{y}.png’, {” both with no success.
I am at my wits end as to what is wrong.
Can any point me to the proper direction?
Thanks
Steven
2
3
4 Leaflet Example
5
6
7
8
9
10
11
12
13
14
15
54
55
56