leaflet加载任意自定义切片的arcgis服务

leaflet想要加载arcgis Server发布的切片图层时,大家考虑到的一般都是Esri Leaflet中的L.esri.tiledMapLayer加载,但是使用它加载时有一个问题:

our map service must be published using the Web Mercator Auxiliary Sphere tiling scheme (WKID 102100/3857) and the default scale options used by Google Maps, Bing Maps and .Esri Leaflet will not support any other spatial reference for tile layers.

大概的意思是当我们使用L.esri.tiledMapLayer的时候,支持WKID为102100/3857的投影地图,既是我们平常使用的web墨卡托投影的地图,其余的地图投影不支持。怎么办?

此时首先想到的肯定是自定义切片方案,于是我在这篇文章中找到了arcgis服务切片转换的方案。但是还有一个问题:

一个通用组件,肯定不止加载一种自定义的切片方案,难道我们只能定义一种切片方案吗?此文章就是解决这个问题的。

下面进入正题:

首先,我们发现arcgis的服务是可以请求到json格式的信息的,https://developers.arcgis.com/rest/想详细了解的可以去这里看

且我发现Esri Leafl

你可能感兴趣的:(具体问题,leaflet,arcgis服务,esri-leaflet,vue)