Why is the tile layer not showing while using a basemap from ArcGIS based service e.g. https://uneplivemapservices.unep.org/arcgis/rest/services/UNBASEMAP_Tiled/MapServer
var { LMap, LTileLayer, LMarker } = Vue2Leaflet;
new Vue({
el: '#app',
components: { LMap, LTileLayer, LMarker },
data() {
return {
zoom:13,
center: L.latLng(47.413220, -1.219482),
//URL BELOW NOT WORKING
url:'https://uneplivemapservices.unep.org/arcgis/rest/services/UNBASEMAP_Tiled/MapServer', //NOT WORKING
//URL BELOW WORKING
//url:'http://{s}.tile.osm.org/{z}/{x}/{y}.png', //WORKING
attribution:'© <a href="http://osm.org /copyright">OpenStreetMap</a> contributors',
marker: L.latLng(47.413220, -1.219482),
}
}
});
I was able to get a workaround as shown in this fiddle http://jsfiddle.net/oskgfxpz/
HTML
JAVASCRIPT