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。

相关推荐
2501_934304404 天前
新增2026年! 2012-2026年全国逐月夜间灯光数据
arcgis·gis数据
梅如你4 天前
中国2026年路网数据
arcgis·gis·遥感
梦想的初衷~5 天前
GPT × ArcGIS 强强联合:AI助力数据处理、空间分析、可视化及多案例综合应用实战教程
人工智能·gpt·arcgis
时间的情敌5 天前
《WebGIS EPSG:4326 与 EPSG:3857 墨卡托投影转换》
arcgis·mars2d
时间的情敌6 天前
《Mars2D 快速上手,从零搭建三维 GIS 项目》
arcgis·mars2d
那年那棵树7 天前
基于WebGis的人生如旅地图系统
前端·arcgis·vue·课程设计
梅如你8 天前
全国逐年 1KM 分辨率 NDVI 植被指数数据集(2000-2024)
arcgis·gis·遥感
const_qiu9 天前
第二章 2.4:搭建 Monorepo 骨架 + 共享包 @autix/contracts
java·人工智能·arcgis
地图小课堂10 天前
Bigemap Pro 教程|如何打开Arcgis文件格式(shp、gdb、gdbtable、mdb)
arcgis
广州浮点FLOATLIC11 天前
ArcGIS Pro 批处理失败,怎样判断是脚本报错还是许可条件不满足?
arcgis·许可管理·许可证管理·许可监控