SuperAPI AI 工具集

arcgis-tables-forms

通用与其它

查看项目

更新于 10-16 01:50

技能介绍

用途:配置 ArcGIS Maps SDK for JavaScript 中的 FeatureTable 组件/微件(表格数据展示)与 FormTemplate(要素编辑表单),适用于添加电子表格式数据网格和要素编辑表单的场景。

主要能力:FeatureTable 支持图层绑定、内联编辑、按选择过滤、多列排序、分页、定义表达式过滤、列模板(FieldColumnTemplate、GroupColumnTemplate)及 AttributeTableTemplate(5.0 新增,含 field/group/relationship/attachment 元素)。支持 highlightIds 编程式选择、与地图选择同步、filterGeometry 过滤与 refresh 刷新。FormTemplate 支持 field/group/text/relationship/attachment 元素,以及 text-box、text-area、combo-box、radio-buttons、switch、date-picker、datetime-picker、time-picker、barcode-scanner 等输入类型,并可用 Arcade 表达式控制可见性、必填与可编辑状态。

使用方式:可直接 ESM 导入,如 import FeatureTable from "@arcgis/core/widgets/FeatureTable.js";CDN 场景用 const FeatureTable = await $arcgis.import("@arcgis/core/widgets/FeatureTable.js")。组件形式使用 <arcgis-feature-table reference-element="arcgis-map">,微件形式用 new FeatureTable({view, layer, container})。表单通过 featureLayer.formTemplate 或 FeatureForm 微件设置,提交时用 applyEdits 保存。

适用场景:需要在地图应用中展示属性表、编辑要素属性、按条件筛选与选择要素的 Web GIS 开发。

限制:资料未提供收费、价格、平台兼容性及性能等具体信息,暂未提供。