如何从arcgis上访问切片–L.esri.tiledMapLayer
1. 首先要在arcgis发布服务,把需要用的地图服务发布上去,url=http:服务器url~:6080/arcgis/rest/services/~文件夹
名/MapServer
2. 运用esri-leaflet中的方法调用arcgis,配置如下:
首先:去官网下载esri-leaflet.js并引入到项目中,下载地址是:http://esri.github.io/esri-leaflet/download/;
然后:调用官网方法引用即可:
var map = L.map(‘map’).setView([37.7614, –122.3911], 12);
L.esri.tiledMapLayer({
url: ‘https://services.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer’,
maxZoom: 15}).addTo(map);
转载自:https://blog.csdn.net/qq_34790644/article/details/80163340