arcgis通过指定范围加载图层

最近项目需要通过指定范围加载图层,做个总结。

1.如果使用的ArcGIS Server版本是10.8或者更高版本,动态服务在出图时支持clipping参数,可以只显示指定区域的数据。关于clipping参数的说明请见:Export Map | ArcGIS REST APIs | ArcGIS Developers (在此页面中搜索clipping)

在arcgis javascript api中,clipping参数通过MapImageLayer的customParameters参数指定。

2.对于切片服务,服务器端无法做切片过滤。最简单的方案还是在客户端做遮盖层,例如在graphicslayer中添加遮盖周边区域的graphic; 或者使用TileLayer、ImageryTileLayer的effect属性, demo请见:Highlight a country with an effect | Sample Code | ArcGIS Maps SDK for JavaScript 4.30 | Esri DeveloperDocumentation site for ArcGIS Maps SDK for JavaScript on Esri Developer website.https://developers.arcgis.com/javascript/latest/sample-code/effect-blur-shadow/

或者自定义图层做遮盖效果,demo请见:nullDocumentation site for ArcGIS Maps SDK for JavaScript on Esri Developer website.https://developers.arcgis.com/javascript/latest/sample-code/custom-lv-masking/

如果仅限制显示的extent, 可以在程序中设置图层的fullExtent。

相关推荐
~央千澈~10 小时前
UniApp完全支持快应用QUICKAPP-以及如何采用 Uni 模式开发发行快应用优雅草卓伊凡
arcgis
敲敲敲-敲代码13 小时前
【ArcGIS10.2】网络数据集构建---最短路径分析
网络·arcgis
人工智能教学实践1 天前
【基于Echarts的地图可视化】
arcgis
Cacciatore->1 天前
Electron 快速上手
javascript·arcgis·electron
南草徽10 天前
arcgis分割 (Split)
arcgis
野生工程师13 天前
【ArcGIS】在线影像底图调用
arcgis
装疯迷窍_A13 天前
ARCGIS国土超级工具集1.6更新说明
arcgis·插件·尖锐角·电子报盘·批量分割矢量
@菜菜_达14 天前
AgGrid学习笔记
笔记·学习·arcgis
德育处主任Pro14 天前
AntV G 入门教程
arcgis
啦啦球晃晃14 天前
Arcgis地理配准变换方法说明
算法·arcgis