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。

相关推荐
油墨香^_^3 天前
Node.js 安装指南(Mac 版本)
arcgis
我真的想 啸4 天前
在 Ubuntu 24.04 系统上安装并使用 Codex CLI
linux·ubuntu·arcgis
GIS程序猿4 天前
批量出图工具,如何使用C#实现动态文本
开发语言·arcgis·c#·arcgis插件·gis二次开发
星月前端5 天前
openlayers加载arcgis的VectorTileServer服务图层
arcgis
小飞大王6666 天前
WebSocket技术与心跳检测
前端·javascript·websocket·网络协议·arcgis
( ˶˙⚇˙˶ )୨⚑︎6 天前
如何下载 ArcGIS 官方数据图层
python·arcgis
zhaoyin199410 天前
智能机器人
arcgis
杨超越luckly15 天前
HTML应用指南:利用GET请求获取中国邮政网点位置信息
前端·python·arcgis·html·php·数据可视化
不超限18 天前
ArcGIS JS 异常之:Invalid language tag: RangeError: Invalid language tag:
开发语言·javascript·arcgis
智航GIS18 天前
SHP数据修复
数据库·arcgis