在CesiumLab中加载ArcGIS Server切片数据
cesiumlab2_2.0.10版本服务端增加了加载ArcGIS Server切片的功能,下面介绍下具体操作:
通过ArcMap发布服务
ArcGIS Server发布服务的方式有多种,最常用的就是通过ArcMap发布。
1、首先在打开您要发布的地图文档,将坐标系切换到3857,具体操作如下:右键Layers,打开属性,切换到Coordinate System标签下,在搜索栏中搜索3857,选中WGS 1984 Web Mercator(auxiliary sphere),确定即可。

2、然后点击File->Share As->Service…,打开Share as Service窗口,如下:

3、选择Publish a service,点击下一步

4、选择ArcGIS Server连接以及设置服务名称,点击下一步,直到ServiceEditor

5、ArcGIS Server的参数非常丰富,可以适应各种需求。目前cesiumlab支持的ArcGIS Server切片必须进行如下设置:

6、在Caching中,
Draw this map service:选择Using tiles from a cache;
Tiling Scheme:选择ArcGIS Online/Bing Maps/Google Maps;
Levels of Detail:默认即可;
7、在Caching->Advanced Settings->Advanced中,将Storage Format切换为EXPLODED,确定。注:该界面的Cache directory是设置切片存储路径的,请记下该路径。

8、最后点击右上角的Publish,等待几秒后弹出Copying Data Server窗口,点OK,之后就是复制数据,打包,处理,生成缓存切片等过程

9、完成时将会提示Service Publishing Result

默认情况下,切片数据存储在<Cache directory>/ <mapservername>/Layers下面。
在cesiumlab中加载ArcGIS Server切片
1、打开cesiumlab,切换到分发服务页面,点击添加,弹出添加数据窗口

2、点击选择文件夹,选择<Cache directory>/ <mapservername>/Layers,数据名称可以随意设置,然后点击确定。

3、这时,在服务列表中会多出一条记录,通过点击服务路径可跳转至三维视图查看该数据。
至此,cesiumlab完成加载ArcGIS Server切片数据,小伙伴们快来动手试试吧!