vue-leaflet / Vue2Leaflet

Vue 2 components for Leaflet maps
https://vue2-leaflet.netlify.app
MIT License
1.95k stars 379 forks source link

How to work with ArcGIS (esri) layers (esri-leaflet.js plugin) #190

Closed sobiero closed 6 years ago

sobiero commented 6 years ago

As shown in example http://jsfiddle.net/e9kh6war/

var atos=[40.434726, -3.632597]; var map = L.map('map').setView([40.434726, -3.632597], 2); L.esri.tiledMapLayer({ //ESRI MAp Service url: 'https://uneplivemapservices.unep.org/arcgis/rest/services/UNBASEMAP_Tiled/MapServer', //url: 'http://{s}.tile.osm.org/{z}/{x}/{y}.png', maxZoom: 4 }).addTo(map);

sobiero commented 6 years ago

I was able to get a workaround as shown in this fiddle http://jsfiddle.net/oskgfxpz/ Basically following the same approach used by @akhchan99 for issue #63