Tag Info

New answers tagged

-2

You can't have relative urls off line, you need to have a file protocol (file://) absolute url, you can right click on an image and open it in a browser to get the url path. var map = L.map('map_canvas'); map.setView([50, 10.0], 6); var layer = L.tileLayer('file://c://path/to/your/data/map/{z}/{x}/{y}.png', { maxZoom: 16 , tms: true}); ...



Top 50 recent answers are included