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

المشرف العام

Administrator
طاقم الإدارة
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?



أكثر...
 
أعلى