admin管理员组文章数量:1654340
arcgis js 4.10 图属查询方法有三种:query、find、identify
1. 对比
方法 | 范围 | 查询模式 | 输入参数 |
---|---|---|---|
identify | map service(多图层)查询 | 模糊查询 | 图形(字符串) |
find | map service(单层单字段、单层多字段、多层多字段)查询 | 模糊查询 | 属性(字符串) |
query | 单个图层查询 | 精确查询 | 图形(几何)、属性(字符串) |
2. 使用
2.1. Identify
图形查询:
<div id="viewDiv">
<!--画矩形-->
<div id="rectangle-button" class="esri-widget esri-widget-button esri-interactive" title="框选">
<span class="esri-icon-checkbox-unchecked"></span>
</div>
</div>
view.when(function () {
Layers.refresh();
let draw = new Draw({
view: view
});
$('#rectangle-button').on('click', function () {
enableCreateRectangle(draw, view);
});
});
function enableCreateRectangle(draw, view) {
let action = draw.create('rectangle', {
mode: 'click'
});
//获取焦点
view.focus();
//顶点移除
action.on('vertex-remove', createRectangle);
//鼠标移动
action.on('cursor-update', createRect
本文标签: jsArcGISQueryFindidentify
版权声明:本文标题:arcgis js 4.10 查询(identify、find、query) 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/xitong/1729649282a1208843.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论