Friday, 13 December 2019

How I can load tileLayer in Leaflet framework using local tiles?


I'm using file:///C:/path/tiles/{z}/{x}/{y}.png like url of tileLayer but it doesn't work and no error is shown.


var layer = new L.tileLayer("file:///C:/OSM/tiles/{z}/{x}/{y}.png", {
minZoom: 1,
maxZoom: 15
}).addTo(map);

Any idea?




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...