@esri/arcgis-rest-feature-layer

中文文档
3.8.0发布于 2025/04/16Apache-2.0TypeScriptESM + CJS近 30 天下载 2.8万

Feature layer query and edit helpers for @esri/arcgis-rest-js

原始使用文档
文档目录7 节
  1. Example
  2. API Reference
  3. Issues
  4. Versioning
  5. Contributing
  6. Changelog
  7. License

npm version build status gzip bundle size Coverage Status apache licensed

@esri/arcgis-rest-feature-layer

A module for querying and editing features in ArcGIS feature layers that runs in Node.js and modern browsers.

Example

npm install @esri/arcgis-rest-request
npm install @esri/arcgis-rest-feature-layer
import { queryFeatures } from '@esri/arcgis-rest-feature-layer';

const options = {
  url:
    "https://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/Landscape_Trees/FeatureServer/0",
  where: "Species = 'Oak'"
};

queryFeatures(options)
  .then(response => {
    console.log(response.features.length); // 500
  });

API Reference

Issues

If something isn't working the way you expected, please take a look at previously logged issues first. Have you found a new bug? Want to request a new feature? We'd love to hear from you.

If you're looking for help you can also post issues on GIS Stackexchange.

Versioning

For transparency into the release cycle and in striving to maintain backward compatibility, @esri/arcgis-rest-js is maintained under Semantic Versioning guidelines and will adhere to these rules whenever possible.

For more information on SemVer, please visit http://semver.org/.

Contributing

Esri welcomes contributions from anyone and everyone. Please see our guidelines for contributing.

Changelog

License

Copyright © 2017-2019 Esri

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

A copy of the license is available in the repository's LICENSE file.

版本与发布记录

@esri/arcgis-rest-feature-layer 共发布 67 个版本,首次发布于 2019/04/23;过去 12 个月发布了 0 个版本。

版本发布日期距今
3.8.0latest2025/04/161.6 年前
3.7.02023/09/083 年前
3.6.02023/01/143 年前
3.5.12022/12/013 年前
3.5.02022/09/234 年前
3.4.32021/10/305 年前

其他发布通道:beta → 3.0.0-beta.0。

关于 @esri/arcgis-rest-feature-layer 的常见问题

@esri/arcgis-rest-feature-layer 是什么?

Feature layer query and edit helpers for @esri/arcgis-rest-js

如何安装 @esri/arcgis-rest-feature-layer?

在项目目录运行 npm install @esri/arcgis-rest-feature-layer,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@esri/arcgis-rest-auth(^3.0.0)、@esri/arcgis-rest-request(^3.0.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@esri/arcgis-rest-feature-layer 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@esri/arcgis-rest-feature-layer 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@esri/arcgis-rest-feature-layer 可以商用吗?

@esri/arcgis-rest-feature-layer 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@esri/arcgis-rest-feature-layer 的下载量有多少?

根据 npm 官方下载统计,@esri/arcgis-rest-feature-layer 在 2026/10/14 – 2026/11/12 这 30 天内被下载 27,802 次,日均约 927 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@esri/arcgis-rest-feature-layer 还在维护吗?

最新版本 3.8.0 发布于 2025/04/16(1.6 年前);至今共发布 67 个版本,其中过去 12 个月发布了 0 个;首次发布于 2019/04/23。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。