openlayers - GUIDE4YOU - 如何添加 ArcGIS REST 要素服务图层
问题描述
我想知道 Guide4You 是否支持添加 ArcGIS REST 要素服务图层?
例如官方的 Openlayers 示例:
https://openlayers.org/en/latest/examples/vector-esri.html
我希望有人可以帮助我!
亲切的问候,
山姆
解决方案
您可以尝试在层配置中添加一个空的特征源,然后将源替换为 openlayers 示例中提供的代码。
空层的layerconfig:
{
"id": "someId",
"title": "someTitle",
"type": "Intern",
"source": {}
}
然后只需获取图层map.getLayerGroup().getLayerById("someId")
并替换源
推荐阅读
- html - CSS中带有图标图像的响应式虚线边框
- python - 尝试使用 python 发送带有 xlsx 附件的电子邮件
- r - R 中的 sample() 问题
- django - 鹡鸰在上传期间设置自动焦点
- reactjs - React admin 自定义导出按钮 - 服务器端
- flutter - 在 Flutter 中将无状态小部件从一个屏幕传递到另一个屏幕
- python - 如何在字符串中搜索关键字,提取该字符串并将其放入新列中?
- android - Firestore 查询 StartAt(DocumentReference) 没有给出正确的结果
- android - RecyclerView addOnScrollListener 与 FirebaseRecyclerAdapter
- excel - 从另一个现有工作簿中获取数据