1. Feature Service简介
Feature Service也称要素服务,其最大的好处就是支持在线要素编辑,并将编辑同步更新到后台的数据库中,它需要ArcSDE提供地理数据库的访问支撑。因此Feature Service中的要素来源必须是来自于ArcSDE。
关于Feature Service的详细介绍,可参考官网文档:点击前往官网
获取的图层要素
第几张图层
具体代码:
//引入ol
import VectorSource from "ol/source/Vector";
import {
Vector as VectorLayer } from "ol/layer";
import EsriJSON from "ol/format/EsriJSON.js";
import {
tile as tileStrategy } from "ol/loadingstrategy.js";
import {
createXYZ } from "ol/tilegrid.js";
import {
Fill, Stroke, Style } from