With xMap 2 we just need this:
Code: Select all
tileUrl = "http://xserver-2:50000/services/rest/XMap/tile/{z}/{x}/{y}?storedProfile=default&layers=PTV_TruckAttributes";
new L.TileLayer(tileUrl, { minZoom: 1, maxZoom: 19 }).addTo(map);
Code: Select all
tileUrl = "http://xserver-2:50000/services/rest/XMap/tile/{z}/{x}/{y}?storedProfile=default&layers=PTV_TruckAttributes";
new L.TileLayer(tileUrl, { minZoom: 1, maxZoom: 19 }).addTo(map);