@mapgis/webclient-common
Version:
mapgis ES6 format for igserver
24,309 lines • 329 kB
HTML
<header id="page-title" class="page-title">
<span class="page-title-main">类名</span>
<span class="page-title-sub">ResourceServer</span>
</header>
<section>
<article>
<div class="container-overview">
<div class='vertical-section'>
<div class="members">
<div class="member">
<h4 class="name" id="ResourceServer">
<a class="href-link" href="#ResourceServer">#</a>
<span class="code-name" id="ResourceServer" style="font-size:30px">
new ResourceServer<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>资源服务,基地址为http://{ip}:{port}/igs/rest/services/system/ResourceServer</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
<span class="param-type">
Object
</span>
</td>
<td class="description last"><p>构造参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>url</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>服务基地址</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
</div>
</div>
</div>
</div>
<h3 class="subsection-title">继承关系</h3>
<ul>
<li><a link="BaseServer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="BaseServer" BaseServer.html>BaseServer</a></li>
</ul>
<div class='vertical-section'>
<h3 id='member'>成员变量</h3>
<h4 style="margin-top: 20px;margin-bottom: 20px;">成员变量概述</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code><a href="#clientId">clientId</a></code></td>
<td class="name">
<code>
<span class="param-type">
Boolean
</span>
</code>
</td>
<td class="name"><code><p>客户端id</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#enableGlobeFetch">enableGlobeFetch</a></code></td>
<td class="name">
<code>
<span class="param-type">
Boolean
</span>
</code>
</td>
<td class="name"><code><p>是否使用确据唯一的fetch对象,默认为true,当设为false时,会使用自己私有的fetch对象,所有的请求设置不会影响全局</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#headers">headers</a></code></td>
<td class="name">
<code>
<span class="param-type">
String
</span>
</code>
</td>
<td class="name"><code><p>请求头参数</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#requestInterceptor">requestInterceptor</a></code></td>
<td class="name">
<code>
<span class="param-type">
function
</span>
</code>
</td>
<td class="name"><code><p>请求发送拦截器</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#requestTimeout">requestTimeout</a></code></td>
<td class="name">
<code>
<span class="param-type">
String
</span>
</code>
</td>
<td class="name"><code><p>请求超时时间,默认45000ms,即45s</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#responseInterceptor">responseInterceptor</a></code></td>
<td class="name">
<code>
<span class="param-type">
function
</span>
</code>
</td>
<td class="name"><code><p>请求响应拦截器</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#tokenAttachType">tokenAttachType</a></code></td>
<td class="name">
<code>
<span class="param-type">
<a link="TokenAttachType.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="TokenAttachType" global.html#TokenAttachType>TokenAttachType</a>
</span>
</code>
</td>
<td class="name"><code><p>指定token附加到何处</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#tokenKey">tokenKey</a></code></td>
<td class="name">
<code>
<span class="param-type">
String
</span>
</code>
</td>
<td class="name"><code><p>token名</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#tokenValue">tokenValue</a></code></td>
<td class="name">
<code>
<span class="param-type">
String
</span>
</code>
</td>
<td class="name"><code><p>token值</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#url">url</a></code></td>
<td class="name">
<code>
<span class="param-type">
String
</span>
</code>
</td>
<td class="name"><code><p>服务基地址</p></code></td>
</tr>
</tbody>
</table>
</div>
<h4 style="margin-top: 20px;margin-bottom: 20px;">成员变量详情</h4>
<div class="members">
<div class="member">
<span class="method-parameter is-pulled-right">
<label>类型:</label>
<span class="param-type">
Boolean
</span>
</span>
<h4 class="name" id="clientId">
<a class="href-link" href="#clientId">#</a>
<span class="code-name">
clientId
</span>
</h4>
<div class="description">
<p>客户端id</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a goto="clientId" link="BaseServer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="BaseServer#clientId" BaseServer.html#clientId>BaseServer#clientId</a>
</li></ul></dd>
</dl>
</div>
<div class="member">
<span class="method-parameter is-pulled-right">
<label>类型:</label>
<span class="param-type">
Boolean
</span>
</span>
<h4 class="name" id="enableGlobeFetch">
<a class="href-link" href="#enableGlobeFetch">#</a>
<span class="code-name">
enableGlobeFetch
</span>
</h4>
<div class="description">
<p>是否使用确据唯一的fetch对象,默认为true,当设为false时,会使用自己私有的fetch对象,所有的请求设置不会影响全局</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a goto="enableGlobeFetch" link="BaseServer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="BaseServer#enableGlobeFetch" BaseServer.html#enableGlobeFetch>BaseServer#enableGlobeFetch</a>
</li></ul></dd>
</dl>
<h5>示例</h5>
<pre class="prettyprint"><code>//设置请求基地址
// ES5引入方式
const { BaseServer } = zondy.service
// ES6引入方式
import { BaseServer } from "@mapgis/webclient-common"
let BaseServer = new BaseServer({
//请求基地址
url: '你的URL',
//使用私有的fetch对象
enableGlobeFetch: false,
//此时设置token等属性,不会影响全局的fetch对象
tokenValue: '你的token'
});
//继续使用全局fetch
BaseServer.enableGlobeFetch = true;</code></pre>
</div>
<div class="member">
<span class="method-parameter is-pulled-right">
<label>类型:</label>
<span class="param-type">
String
</span>
</span>
<h4 class="name" id="headers">
<a class="href-link" href="#headers">#</a>
<span class="code-name">
headers
</span>
</h4>
<div class="description">
<p>请求头参数</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a goto="headers" link="BaseServer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="BaseServer#headers" BaseServer.html#headers>BaseServer#headers</a>
</li></ul></dd>
</dl>
<h5>示例</h5>
<pre class="prettyprint"><code>//设置请求头参数
// ES5引入方式
const { BaseServer } = zondy.service
// ES6引入方式
import { BaseServer } from "@mapgis/webclient-common"
let BaseServer = new BaseServer({
//请求头
headers: {
//设置Content-Type为multipart/form-data
'Content-Type': 'multipart/form-data',
//设置token
'token': '你的token'
}
});
//动态修改
BaseServer.headers.token = '新token';</code></pre>
</div>
<div class="member">
<span class="method-parameter is-pulled-right">
<label>类型:</label>
<span class="param-type">
function
</span>
</span>
<h4 class="name" id="requestInterceptor">
<a class="href-link" href="#requestInterceptor">#</a>
<span class="code-name">
requestInterceptor
</span>
</h4>
<div class="description">
<p>请求发送拦截器</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a goto="requestInterceptor" link="BaseServer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="BaseServer#requestInterceptor" BaseServer.html#requestInterceptor>BaseServer#requestInterceptor</a>
</li></ul></dd>
</dl>
<h5>示例</h5>
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
// ES5引入方式
const { BaseServer,RequestInterceptor } = zondy.service
// ES6引入方式
import { BaseServer,RequestInterceptor } from "@mapgis/webclient-common"
let BaseServer = new BaseServer({
//设置请求发送拦截器
requestInterceptor: new RequestInterceptor({
//请求发送前进行统一处理
before: function(config) {
//执行你的业务逻辑
//注意必须显示返回config对象,如果返回为空,则不发送请求
return config;
},
//请求发送失败时进行统一处理
failure: function(error) {
//执行你的业务逻辑
}
})
});
//动态修改
BaseServer.requestInterceptor.before = function() {};</code></pre>
</div>
<div class="member">
<span class="method-parameter is-pulled-right">
<label>类型:</label>
<span class="param-type">
String
</span>
</span>
<h4 class="name" id="requestTimeout">
<a class="href-link" href="#requestTimeout">#</a>
<span class="code-name">
requestTimeout
</span>
</h4>
<div class="description">
<p>请求超时时间,默认45000ms,即45s</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a goto="requestTimeout" link="BaseServer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="BaseServer#requestTimeout" BaseServer.html#requestTimeout>BaseServer#requestTimeout</a>
</li></ul></dd>
</dl>
<h5>示例</h5>
<pre class="prettyprint"><code>//设置超时时间
//初始化AddressServer服务对象
// ES5引入方式
const { BaseServer } = zondy.service
// ES6引入方式
import { BaseServer } from "@mapgis/webclient-common"
let BaseServer = new BaseServer({
//超时时间
requestTimeout: 2000
});
//动态修改
BaseServer.requestTimeout = 3000;</code></pre>
</div>
<div class="member">
<span class="method-parameter is-pulled-right">
<label>类型:</label>
<span class="param-type">
function
</span>
</span>
<h4 class="name" id="responseInterceptor">
<a class="href-link" href="#responseInterceptor">#</a>
<span class="code-name">
responseInterceptor
</span>
</h4>
<div class="description">
<p>请求响应拦截器</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a goto="responseInterceptor" link="BaseServer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="BaseServer#responseInterceptor" BaseServer.html#responseInterceptor>BaseServer#responseInterceptor</a>
</li></ul></dd>
</dl>
<h5>示例</h5>
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
// ES5引入方式
const { BaseServer,ResponseInterceptor } = zondy.service
// ES6引入方式
import { BaseServer,ResponseInterceptor } from "@mapgis/webclient-common"
let BaseServer = new BaseServer({
//设置请求响应拦截器
responseInterceptor: new ResponseInterceptor({
//执行请求响应,接口调用成功时会执行的回调
success: function(result) {
//执行你的业务逻辑
//注意必须显示返回result对象,如果返回为空,则不执行请求响应成功回调
return result;
},
//请求响应成功,接口调用失败时会执行的函数
failure: function(result) {
//执行你的业务逻辑
//注意必须显示返回result对象,如果返回为空,则不执行回调韩式
return result;
}
})
});
//动态修改
BaseServer.responseInterceptor.success = function() {};</code></pre>
</div>
<div class="member">
<span class="method-parameter is-pulled-right">
<label>类型:</label>
<span class="param-type">
<a link="TokenAttachType.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="TokenAttachType" global.html#TokenAttachType>TokenAttachType</a>
</span>
</span>
<h4 class="name" id="tokenAttachType">
<a class="href-link" href="#tokenAttachType">#</a>
<span class="code-name">
tokenAttachType
</span>
</h4>
<div class="description">
<p>指定token附加到何处</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a goto="tokenAttachType" link="BaseServer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="BaseServer#tokenAttachType" BaseServer.html#tokenAttachType>BaseServer#tokenAttachType</a>
</li></ul></dd>
</dl>
<h5>示例</h5>
<pre class="prettyprint"><code>//设置token值
// ES5引入方式
const { BaseServer } = zondy.service
const { TokenAttachType } = zondy.enum
// ES6引入方式
import { BaseServer,TokenAttachType } from "@mapgis/webclient-common"
let BaseServer = new BaseServer({
//token名
tokenValue: '你的token值',
//token值
tokenValue: '你的token值',
//指定token附加到url后面
tokenAttachType: TokenAttachType.url
});
//动态修改
BaseServer.tokenAttachType = TokenAttachType.header;</code></pre>
</div>
<div class="member">
<span class="method-parameter is-pulled-right">
<label>类型:</label>
<span class="param-type">
String
</span>
</span>
<h4 class="name" id="tokenKey">
<a class="href-link" href="#tokenKey">#</a>
<span class="code-name">
tokenKey
</span>
</h4>
<div class="description">
<p>token名</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a goto="tokenKey" link="BaseServer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="BaseServer#tokenKey" BaseServer.html#tokenKey>BaseServer#tokenKey</a>
</li></ul></dd>
</dl>
<h5>示例</h5>
<pre class="prettyprint"><code>//设置token名
// ES5引入方式
const { BaseServer } = zondy.service
// ES6引入方式
import { BaseServer } from "@mapgis/webclient-common"
let BaseServer = new BaseServer({
//token名
tokenKey: '你的tokenKey'
});
//动态修改
BaseServer.tokenKey = '新tokenKey';</code></pre>
</div>
<div class="member">
<span class="method-parameter is-pulled-right">
<label>类型:</label>
<span class="param-type">
String
</span>
</span>
<h4 class="name" id="tokenValue">
<a class="href-link" href="#tokenValue">#</a>
<span class="code-name">
tokenValue
</span>
</h4>
<div class="description">
<p>token值</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a goto="tokenValue" link="BaseServer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="BaseServer#tokenValue" BaseServer.html#tokenValue>BaseServer#tokenValue</a>
</li></ul></dd>
</dl>
<h5>示例</h5>
<pre class="prettyprint"><code>//设置token值
// ES5引入方式
const { BaseServer } = zondy.service
// ES6引入方式
import { BaseServer } from "@mapgis/webclient-common"
let BaseServer = new BaseServer({
//token值
tokenValue: '你的token值'
});
//动态修改
BaseServer.tokenValue = '新token值';</code></pre>
</div>
<div class="member">
<span class="method-parameter is-pulled-right">
<label>类型:</label>
<span class="param-type">
String
</span>
</span>
<h4 class="name" id="url">
<a class="href-link" href="#url">#</a>
<span class="code-name">
url
</span>
</h4>
<div class="description">
<p>服务基地址</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a goto="url" link="BaseServer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="BaseServer#url" BaseServer.html#url>BaseServer#url</a>
</li></ul></dd>
</dl>
<h5>示例</h5>
<pre class="prettyprint"><code>//设置请求基地址
// ES5引入方式
const { BaseServer } = zondy.service
// ES6引入方式
import { BaseServer } from "@mapgis/webclient-common"
let BaseServer = new BaseServer({
//请求基地址
url: '你的URL'
});
//动态修改
BaseServer.url = '新URL';</code></pre>
</div>
</div>
</div>
<div class='vertical-section'>
<h3 id='function'>方法</h3>
<h4 style="margin-top: 20px;margin-bottom: 20px;">方法概述</h4>
<div class="members">
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>返回值类型</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code><a href="#addClass">addClass</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>在数据库中创建一个类</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#addGDB">addGDB</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>新建数据库</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#addMapLayer">addMapLayer</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>添加图层到文档中指定地图,仅支持igs1.0</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#attachGDB">attachGDB</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>附加数据库</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#createGdbLayer">createGdbLayer</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>在GDB数据库中创建一个图层,仅支持igs1.0</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#createLayerInGdbp">createLayerInGdbp</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>在GDB数据库中创建一个图层,仅支持igs1.0</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#deleteGDB">deleteGDB</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>删除数据库</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#deleteLayerInGdbp">deleteLayerInGdbp</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>删除GDB数据库中的一个图层,仅支持igs1.0</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#deleteSimpleFeature">deleteSimpleFeature</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>删除简单要素类</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#detachGDB">detachGDB</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>注销数据库</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#editLayerSystemLib">editLayerSystemLib</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>修改图层的系统库,仅支持igs1.0</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#editMapLayerIndex">editMapLayerIndex</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>修改文档中指定地图下图层的索引,仅支持igs1.0</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#editMapLayerSystemLib">editMapLayerSystemLib</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>修改文档下图层的系统库,仅支持igs1.0</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#editTempDataInfo">editTempDataInfo</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>修改系统库</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#getColorByIndex">getColorByIndex</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>根据颜色号获取RGB值</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#getColorIndex">getColorIndex</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>根据RGB值获取颜色号</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#getSimpleFeature">getSimpleFeature</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>获取简单要素类</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#operaGdbp">operaGdbp</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>GDB操作接口,仅支持igs1.0</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#queryDataSourceFeatureClassList">queryDataSourceFeatureClassList</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>获取数据集下的要素类列表,仅支持igs1.0</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#queryDataSourceInfo">queryDataSourceInfo</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>查询数据源信息</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#queryDataSourceList">queryDataSourceList</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>获取数据源列表,支持igs1.0和igs2.0</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#queryDsAllData">queryDsAllData</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>获取GDB下某类型的所有数据,仅支持igs1.0</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#queryFeatureDataSourceList">queryFeatureDataSourceList</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>查询要素数据集列表</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#queryGDBList">queryGDBList</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>查询GDB列表</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#queryGdbpAllData">queryGdbpAllData</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>获取GDB下某类型的所有数据,仅支持igs1.0</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#queryGDBPInfo">queryGDBPInfo</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>获取GDB下某个图层的详细信息,仅支持igs1.0</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#queryLegendInfo">queryLegendInfo</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>获取地图文档服务的图例信息,仅支持igs1.0</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#queryMapDocList">queryMapDocList</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>获取发布的文档列表,仅支持igs1.0</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#queryMapInfo">queryMapInfo</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>获取文档详细信息,仅支持igs1.0</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#queryMapInfoByIndex">queryMapInfoByIndex</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>获取指定地图的详细信息,仅支持igs1.0</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#queryMapLayerInfo">queryMapLayerInfo</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>获取指定地图下所有图层的信息,仅支持igs1.0</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#queryMapLayerInfoByIndex">queryMapLayerInfoByIndex</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>获取指定地图下指定图层的信息,仅支持igs1.0</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#queryServerInfo">queryServerInfo</a></code></td>
<td class="name">
<code>
</code>
</td>
<td class="name"><code><p>获取服务信息,IGS2.0新增服务</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#querySimpleFeatureList">querySimpleFeatureList</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>简单要素类列表</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#querySrsInfo">querySrsInfo</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>查询参考系信息</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#querySrsList">querySrsList</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>查询参考系列表</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#querySymbol">querySymbol</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>修改图层的系统库,仅支持igs1.0</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#querySymbolList">querySymbolList</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>修改图层的系统库,仅支持igs1.0</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#querySystemColorList">querySystemColorList</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>查询系统颜色列表</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#querySystemLibList">querySystemLibList</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>查询系统库资源列表</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#queryTempDataFeatures">queryTempDataFeatures</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>获取临时图层要素信息</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#queryTempDataInfo">queryTempDataInfo</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>获取临时数据信息</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#queryTempDataServerInfo">queryTempDataServerInfo</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>获取临时数据服务信息</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#queryTileDataSourceList">queryTileDataSourceList</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>获取栅格数据集列表</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#queryTileInfo">queryTileInfo</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>获取指定瓦片详细信息,仅支持igs1.0</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#queryTileList">queryTileList</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>获取发布的瓦片列表,仅支持igs1.0</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#queryVectorTileFont">queryVectorTileFont</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>矢量瓦片-获取字体,仅支持igs1.0</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#queryVectorTileFontList">queryVectorTileFontList</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>矢量瓦片-获取字体列表,仅支持igs1.0</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#queryVectorTileServiceFont">queryVectorTileServiceFont</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>矢量瓦片-获取指定服务的字体,仅支持igs1.0</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#queryVectorTileServiceSprite">queryVectorTileServiceSprite</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>矢量瓦片-获取服务的sprite图,仅支持igs1.0</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#queryVectorTileServiceStyle">queryVectorTileServiceStyle</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>矢量瓦片-获取指定服务的样式,仅支持igs1.0</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#queryVectorTileStyle">queryVectorTileStyle</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>矢量瓦片-获取上传样式,仅支持igs1.0</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#queryVectorTileStyleList">queryVectorTileStyleList</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>矢量瓦片-获取所有上传样式列表,仅支持igs1.0</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#removeMapLayer">removeMapLayer</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>删除文档中指定地图中指定图层,仅支持igs1.0</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#updateLayerInGdbp">updateLayerInGdbp</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>更新GDB数据库中的一个图层,仅支持igs1.0</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#updateSimpleFeature">updateSimpleFeature</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>更新单个简单要素类信息</p></code></td>
</tr>
<tr class="deep-level-0">
<td class="name"><code><a href="#updateVectorTileServiceStyle">updateVectorTileServiceStyle</a></code></td>
<td class="name">
<code>
<span class="param-type">
Promise.<Object>
</span>
</code>
</td>
<td class="name"><code><p>更新指定服务的样式,仅支持igs1.0</p></code></td>
</tr>
</tbody>
</table>
</div>
<h4 style="margin-top: 20px;margin-bottom: 20px;">方法详情</h4>
<div class="member">
<h4 class="name" id="addClass">
<a class="href-link" href="#addClass">#</a>
<span class="code-name" id="addClass" style="font-size:30px">
addClass<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>在数据库中创建一个类</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>数据源名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>gdb名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>数据源用户名</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>layerName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>图层名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>geomType</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>几何类型,必传,igs2.0支持"Pnt" "Lin" "Reg" "Ann" "Surface" "Entity" "Unknown"</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>srs</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>参考系信息,支持mapgis参照系名称和EPSG编号,比如EPSG:4326、WGS1984_度</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>fdsName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>要素集名称</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>fields</code></td>
<td class="type">
<span class="param-type">
Array.<Object>
</span>
</td>
<td class="description last"><p>属性字段结构信息,必传,示例:[{"name": "string","type": "string","alias": "string","length": 0}]</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>featureType</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>要素类型,取值为sfcls 或 acls,默认sfcls,目前仅支持简单要素类和注记类(只支持文本类型注记)</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs2.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const addClass = resourceServer.addClass({
method: FetchMethod.post,
datasource: "MapGISLocalPlus",
gdbName: "test",
useName: "",
layerName: "test_0426_feature",
srs: "WGS1984_度",
geomType: "Reg",
fdsName: "test",
fields: [{ name: "string", type: "string", alias: "string", length: 0 }],
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="addGDB">
<a class="href-link" href="#addGDB">#</a>
<span class="code-name" id="addGDB" style="font-size:30px">
addGDB<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>新建数据库</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>数据库名,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>gdb名称</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>数据源用户名</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>path</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>gdb路径</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs2.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const addGDB = resourceServer.addGDB({
method: FetchMethod.post,
datasource: "MapGISLocalPlus",
gdbName: "test_0426",
path: "e://数据源",
useName: "",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code> // ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const addGDB = resourceServer.addGDB({
method: FetchMethod.get,
datasource: "MapGISLocalPlus",
gdbName: "test_04261",
path: "d:\\",
useName: "",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="addMapLayer">
<a class="href-link" href="#addMapLayer">#</a>
<span class="code-name" id="addMapLayer" style="font-size:30px">
addMapLayer<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>添加图层到文档中指定地图,仅支持igs1.0</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>docName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>地图文档名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>mapIndex</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>地图索引,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>updateObject</code></td>
<td class="type">
<span class="param-type">
Object
</span>
</td>
<td class="description last"><p>更新参数,必传</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const addMapLayer = resourceServer.addMapLayer({
method: FetchMethod.post,
docName: "sz",
mapIndex: "新地图1",
updateObject:{},
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="attachGDB">
<a class="href-link" href="#attachGDB">#</a>
<span class="code-name" id="attachGDB" style="font-size:30px">
attachGDB<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>附加数据库</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>数据源用户名</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>数据源名,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>gdb名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>path</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>gdb路径,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>数据源用户名</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs2.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer ,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const attachGDB = resourceServer.attachGDB({
method: FetchMethod.post,
datasource: 'MapGISLocalPlus',
gdbName: 'test_0426',
path: 'e://数据源//test_0426.hdb',
useName: '',
success: function (res) {
console.log('res: ', res)
}
})</code></pre>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code> // ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer ,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const attachGDB = resourceServer.attachGDB({
method: FetchMethod.get,
datasource: "MapGISLocalPlus",
gdbName: "test_0426",
path: "e:\\数据源\\test_0426.hdb",
useName: "",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="createGdbLayer">
<a class="href-link" href="#createGdbLayer">#</a>
<span class="code-name" id="createGdbLayer" style="font-size:30px">
createGdbLayer<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>在GDB数据库中创建一个图层,仅支持igs1.0</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbSvrName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>数据源名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>GDB数据名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>featureType</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>要素类型,必传。FeatureDS(要素数据集)、SfeatureCls(简单要素类)、ObjectCls(对象类)、AnnotationCls(注记类)、RasterDataset(栅格数据集)、RasterCatalog(栅格目录)、GnetCls(几何网络)、AddrBaseCls(地名库)等。</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>layerName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>图层名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>geoType</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>几何类型,必传。区图层为Reg、线图层为Lin、点图层为Pnt</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>srefName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>参考系名称</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>dsName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>要素数据集名称</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>attStruct</code></td>
<td class="type">
<span class="param-type">
CAttStruct
</span>
</td>
<td class="description last"><p>图层数据结构</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
const { CAttStruct } = zondy.object
// ES6引入方式
import { ResourceServer ,FetchMethod ,CAttStruct } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const createGdbLayer = resourceServer.createGdbLayer({
method: FetchMethod.post,
gdbSvrName: "MapGISLocalPlus",
gdbName: "sample",
featureType: "SfeatureCls",
layerName: "新图层",
dsName: "地图综合",
geoType: "Reg",
srefName: "WGS1984_度",
attStruct: new CAttStruct({
FldName: ["ID", "面积", "周长", "LayerID"],
FldNumber: 4,
FldType: ["FldLong", "FldDouble", "FldDouble", "FldLong"],
}),
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="createLayerInGdbp">
<a class="href-link" href="#createLayerInGdbp">#</a>
<span class="code-name" id="createLayerInGdbp" style="font-size:30px">
createLayerInGdbp<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>在GDB数据库中创建一个图层,仅支持igs1.0</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbSvrName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>数据源名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>gdb名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>featureType</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>要素类型,必传,要素数据集为FeatureDS、简单要素类为SFeatureCls,对象类为ObjectCls,注记类为AnnotationCls,网络类为GNetCls…..。</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>layerName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>图层名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>geoType</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>几何类型,必传,区图层为Reg、线图层为Lin、点图层为Pnt</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>srefName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>参考系名称</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>dsName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>要素名称</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>attStruct</code></td>
<td class="type">
<span class="param-type">
CAttStruct
</span>
</td>
<td class="description last"><p>属性结构</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
const { CAttStruct } = zondy.object
// ES6引入方式
import { ResourceServer ,FetchMethod ,CAttStruct } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const createLayerInGdbp = resourceServer.createLayerInGdbp({
method: FetchMethod.post,
gdbSvrName: "MapGISLocalPlus",
gdbName: "sample",
featureType: "SfeatureCls",
layerName: "新图层",
dsName: "地图综合",
geoType: "Reg",
srefName: "WGS1984_度",
attStruct: new CAttStruct({
FldName: ["ID", "面积", "周长", "LayerID"],
FldNumber: 4,
FldType: ["FldLong", "FldDouble", "FldDouble", "FldLong"],
}),
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="deleteGDB">
<a class="href-link" href="#deleteGDB">#</a>
<span class="code-name" id="deleteGDB" style="font-size:30px">
deleteGDB<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>删除数据库</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>数据源名,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>gdb名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>数据源用户名</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs2.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer ,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const deleteGDB = resourceServer.deleteGDB({
method: FetchMethod.delete,
datasource: "MapGISLocalPlus",
gdbName: "test_0426",
useName: "",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code> // ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer ,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const deleteGDB = resourceServer.deleteGDB({
method: FetchMethod.get,
datasource: "MapGISLocalPlus",
gdbName: "test_0426",
useName: "",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="deleteLayerInGdbp">
<a class="href-link" href="#deleteLayerInGdbp">#</a>
<span class="code-name" id="deleteLayerInGdbp" style="font-size:30px">
deleteLayerInGdbp<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>删除GDB数据库中的一个图层,仅支持igs1.0</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbSvrName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>数据源名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>gdb名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>featureType</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>要素类型,必传,要素数据集为FeatureDS、简单要素类为SFeatureCls,对象类为ObjectCls,注记类为AnnotationCls,网络类为GNetCls…..。</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>layerName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>图层名称,必传</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code> // ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer ,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const deleteLayerInGdbp = resourceServer.deleteLayerInGdbp({
method: FetchMethod.get,
gdbSvrName: "MapGISLocalPlus",
gdbName: "sample",
featureType: "SfeatureCls",
layerName: "等值线",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="deleteSimpleFeature">
<a class="href-link" href="#deleteSimpleFeature">#</a>
<span class="code-name" id="deleteSimpleFeature" style="font-size:30px">
deleteSimpleFeature<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>删除简单要素类</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>gdb名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>gdb名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>featureSetName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>简单要素类名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>数据源用户名</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer ,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const deleteSimpleFeature = resourceServer.deleteSimpleFeature({
method: FetchMethod.delete,
datasource: "MapGISLocalPlus",
gdbName: "sample",
featureSetName: "等值线",
useName: "",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="detachGDB">
<a class="href-link" href="#detachGDB">#</a>
<span class="code-name" id="detachGDB" style="font-size:30px">
detachGDB<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>注销数据库</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>数据源名,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>gdb名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>数据源用户名</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs2.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer ,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const detachGDB = resourceServer.detachGDB({
method: FetchMethod.put,
datasource: "MapGISLocalPlus",
gdbName: "test_0426",
useName: "",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code> // ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer ,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const detachGDB = resourceServer.detachGDB({
method: FetchMethod.get,
datasource: "MapGISLocalPlus",
gdbName: "test_0426",
useName: "",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="editLayerSystemLib">
<a class="href-link" href="#editLayerSystemLib">#</a>
<span class="code-name" id="editLayerSystemLib" style="font-size:30px">
editLayerSystemLib<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>修改图层的系统库,仅支持igs1.0</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>systemLib</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>系统库id或名称</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbps</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>图层列表,多个用英文逗号隔开</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer ,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const editLayerSystemLib = resourceServer.editLayerSystemLib({
method: FetchMethod.get,
systemLib: "0",
gdbps: "gdbp://MapGISLocalPlus/test/ds/test/sfcls/test_0426_feature1",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="editMapLayerIndex">
<a class="href-link" href="#editMapLayerIndex">#</a>
<span class="code-name" id="editMapLayerIndex" style="font-size:30px">
editMapLayerIndex<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>修改文档中指定地图下图层的索引,仅支持igs1.0</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>docName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>地图文档名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>mapIndex</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>地图索引,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>guid</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>用户会话id</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>updateObject</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>更新参数,必传</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer ,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const editMapLayerIndex = resourceServer.editMapLayerIndex({
method: FetchMethod.post,
docName: "sz",
mapIndex: "新地图1",
layerIndexs: "0",
updateObject:{},
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="editMapLayerSystemLib">
<a class="href-link" href="#editMapLayerSystemLib">#</a>
<span class="code-name" id="editMapLayerSystemLib" style="font-size:30px">
editMapLayerSystemLib<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>修改文档下图层的系统库,仅支持igs1.0</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>docName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>地图文档名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>mapIndex</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>地图索引,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>systemLib</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>系统库id或名称</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>layerIndexs</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>图层索引列表(多个用英文逗号分隔)</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>guid</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>用户会话id</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer ,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const editMapLayerSystemLib = resourceServer.editMapLayerSystemLib({
method: FetchMethod.get,
docName: "sz",
mapIndex: "新地图1",
systemLib: "DefaultSystemLib",
layerIndexs: "0",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="editTempDataInfo">
<a class="href-link" href="#editTempDataInfo">#</a>
<span class="code-name" id="editTempDataInfo" style="font-size:30px">
editTempDataInfo<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>修改系统库</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>urls</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>图层列表,必传,可能是gdbp、filePath,多个用","分隔</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>systemLibId</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>系统库id</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>systemLibName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>系统库的名称,systemLibId参数为空时有效</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer ,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const editTempDataInfo = resourceServer.editTempDataInfo({
method: FetchMethod.put,
urls: "gdbp://MapGISLocalPlus/sample/sfcls/等值线1",
systemLibName: "DefaultSystemLib",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="getColorByIndex">
<a class="href-link" href="#getColorByIndex">#</a>
<span class="code-name" id="getColorByIndex" style="font-size:30px">
getColorByIndex<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>根据颜色号获取RGB值</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>sysLib</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>系统库id,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>colorIndex</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>颜色号,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer ,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const querySystemColorList = resourceServer.querySystemColorList({
method: FetchMethod.get,
sysLib: "DefaultSystemLib",
page: 1,
pageSize: 20,
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code> // ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer ,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const querySystemColorList = resourceServer.querySystemColorList({
method: FetchMethod.get,
sysLib: "DefaultSystemLib",
page: 1,
pageSize: 20,
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="getColorIndex">
<a class="href-link" href="#getColorIndex">#</a>
<span class="code-name" id="getColorIndex" style="font-size:30px">
getColorIndex<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>根据RGB值获取颜色号</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th style="min-width: 100px;">默认值</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="default">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>sysLib</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="default">
</td>
<td class="description last"><p>系统库id,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>color</code></td>
<td class="type">
<span class="param-type">
<a link="Color.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Color" Color.html>Color</a>
</span>
</td>
<td class="default">
</td>
<td class="description last"><p>颜色值,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="default">
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="default">
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="default">
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>addIfNotExist</code></td>
<td class="type">
<span class="param-type">
Boolean
</span>
</td>
<td class="default">
false
</td>
<td class="description last"><p>如果查找到的颜色不存在,是否新增</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs2.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
const { Color } = zondy
// ES6引入方式
import { ResourceServer ,FetchMethod ,Color } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const getColorIndex = resourceServer.getColorIndex({
method: FetchMethod.get,
sysLib: "DefaultSystemLib",
color: new Color(225, 221, 20, 1),
addIfNotExist: false,
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code> // ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
const { Color } = zondy
// ES6引入方式
import { ResourceServer ,FetchMethod ,Color } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const getColorIndex = resourceServer.getColorIndex({
method: FetchMethod.get,
sysLib: "DefaultSystemLib",
color: new Color(225, 221, 20, 1),
addIfNotExist: false,
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="getSimpleFeature">
<a class="href-link" href="#getSimpleFeature">#</a>
<span class="code-name" id="getSimpleFeature" style="font-size:30px">
getSimpleFeature<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>获取简单要素类</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>数据源名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>gdb名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>featureSetName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>简单要素类名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>数据源用户名</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer ,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const getSimpleFeature = resourceServer.getSimpleFeature({
method: FetchMethod.get,
datasource: "MapGISLocalPlus",
gdbName: "sample",
featureSetName: "等值线1",
useName: "",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="operaGdbp">
<a class="href-link" href="#operaGdbp">#</a>
<span class="code-name" id="operaGdbp" style="font-size:30px">
operaGdbp<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>GDB操作接口,仅支持igs1.0</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>operType</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>操作类型,必传(分为:attach、create、delete、detach)</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>GDB数据名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbServerName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>GDB数据源名称</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>useName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>用户名</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>password</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>密码,igs1.0有效</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>path</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>hdf路径或67文件夹路径</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer ,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const operaGdbp = resourceServer.operaGdbp({
method: FetchMethod.get,
gdbServerName: "MapGISLocalPlus",
gdbName: "test",
dsName: "test",
operType: "detach",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryDataSourceFeatureClassList">
<a class="href-link" href="#queryDataSourceFeatureClassList">#</a>
<span class="code-name" id="queryDataSourceFeatureClassList" style="font-size:30px">
queryDataSourceFeatureClassList<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>获取数据集下的要素类列表,仅支持igs1.0</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbServerName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>GDB数据源名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>GDB数据名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>dsName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>要素数据集名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>useName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>用户名</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>password</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>密码,igs1.0有效</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer ,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryDataSourceFeatureClassList =
resourceServer.queryDataSourceFeatureClassList({
method: FetchMethod.get,
gdbServerName: "MapGISLocalPlus",
gdbName: "test",
dsName: "test",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryDataSourceInfo">
<a class="href-link" href="#queryDataSourceInfo">#</a>
<span class="code-name" id="queryDataSourceInfo" style="font-size:30px">
queryDataSourceInfo<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>查询数据源信息</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>数据库名,必传</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs2.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
// ES6引入方式
import { ResourceServer } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const dataSourceInfo = resourceServer.queryDataSourceInfo({
datasource: "MapGISLocalPlus",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryDataSourceList">
<a class="href-link" href="#queryDataSourceList">#</a>
<span class="code-name" id="queryDataSourceList" style="font-size:30px">
queryDataSourceList<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>获取数据源列表,支持igs1.0和igs2.0</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs2.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
// ES6引入方式
import { ResourceServer } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const dataSourceList = resourceServer.queryDataSourceList({
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code> // ES5引入方式
const { ResourceServer } = zondy.service
// ES6引入方式
import { ResourceServer } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const dataSourceList = resourceServer.queryDataSourceList({
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryDsAllData">
<a class="href-link" href="#queryDsAllData">#</a>
<span class="code-name" id="queryDsAllData" style="font-size:30px">
queryDsAllData<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>获取GDB下某类型的所有数据,仅支持igs1.0</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbSvrName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>数据源名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>gdb名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>clsType</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>要素数据类型,必传。数据类型(分为:ds、rcat、ras、sfcls、fcls、acls、ocls、rds、rcs、ncls、sfcls_new)或者为srefID 参考系id</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>useName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>用户名</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>password</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>密码,igs1.0有效</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>dsName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>要素数据集名称,必传</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer, FetchMethod} from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryDsAllData = resourceServer.queryDsAllData({
method: FetchMethod.get,
gdbSvrName: "MapGISLocalPlus",
gdbName: "sample",
clsType: "sfcls",
dsName: "地图综合",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryFeatureDataSourceList">
<a class="href-link" href="#queryFeatureDataSourceList">#</a>
<span class="code-name" id="queryFeatureDataSourceList" style="font-size:30px">
queryFeatureDataSourceList<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>查询要素数据集列表</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>数据源名,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>gdb名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>数据源用户名</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs2.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const queryFeatureDataSourceList =
resourceServer.queryFeatureDataSourceList({
method: FetchMethod.get,
datasource: 'MapGISLocalPlus',
gdbName: 'sample',
useName: '',
success: function (res) {
console.log('res: ', res)
}
})</code></pre>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code> // ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryFeatureDataSourceList =
resourceServer.queryFeatureDataSourceList({
method: FetchMethod.get,
datasource: 'MapGISLocalPlus',
gdbName: 'sample',
useName: '',
success: function (res) {
console.log('res: ', res)
}
})</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryGDBList">
<a class="href-link" href="#queryGDBList">#</a>
<span class="code-name" id="queryGDBList" style="font-size:30px">
queryGDBList<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>查询GDB列表</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>数据源名,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>数据源用户名</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs2.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
// ES6引入方式
import { ResourceServer } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const queryGDBList = resourceServer.queryGDBList({
datasource: 'MapGISLocalPlus',
success: function (res) {
console.log('res: ', res)
}
})</code></pre>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code> // ES5引入方式
const { ResourceServer } = zondy.service
// ES6引入方式
import { ResourceServer } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const dataSourceInfo = resourceServer.queryDataSourceInfo({
datasource: "MapGISLocalPlus",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryGdbpAllData">
<a class="href-link" href="#queryGdbpAllData">#</a>
<span class="code-name" id="queryGdbpAllData" style="font-size:30px">
queryGdbpAllData<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>获取GDB下某类型的所有数据,仅支持igs1.0</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbSvrName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>数据源名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>gdb名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>clsType</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>要素数据类型,必传。数据类型(分为:ds、rcat、ras、sfcls、fcls、acls、ocls、rds、rcs、ncls、sfcls_new)或者为srefID 参考系id</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>useName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>用户名</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>password</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>密码,igs1.0有效</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>containAll</code></td>
<td class="type">
<span class="param-type">
Boolean
</span>
</td>
<td class="description last"><p>是否返回hdf下所有的对应数据,false表示只返回对应节点下的数据,默认值为true</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryGdbpAllData = resourceServer.queryGdbpAllData({
method: FetchMethod.get,
gdbSvrName: "MapGISLocalPlus",
gdbName: "sample",
clsType: "sfcls",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryGDBPInfo">
<a class="href-link" href="#queryGDBPInfo">#</a>
<span class="code-name" id="queryGDBPInfo" style="font-size:30px">
queryGDBPInfo<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>获取GDB下某个图层的详细信息,仅支持igs1.0</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbpUrl</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>gdbp地址</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>proj</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>对shp图层支持投影,获取到投影后的范围,传参考系名称</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer ,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryGDBPInfo = resourceServer.queryGDBPInfo({
method: FetchMethod.get,
gdbpUrl:
"gdbp://MapGISLocalPlus/test/sfcls/metro.json_Lin,gdbp://MapGISLocalPlus/test/sfcls/中国地级县x",
proj: "WGS1984_度",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryLegendInfo">
<a class="href-link" href="#queryLegendInfo">#</a>
<span class="code-name" id="queryLegendInfo" style="font-size:30px">
queryLegendInfo<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>获取地图文档服务的图例信息,仅支持igs1.0</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>docName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>服务名</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>layerIndex</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>生成图例的图层索引号(多个用英文逗号分隔)</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>size</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>格式:width,height</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>guid</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>用户会话id</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>maxCount</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>返回图例项最大数量</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>page</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>页码</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>pageSize</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>分页大小</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>where</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>过滤条件</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>range</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>范围</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer ,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryLegendInfo = resourceServer.queryLegendInfo({
method: FetchMethod.get,
docName: "地图文档_1",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryMapDocList">
<a class="href-link" href="#queryMapDocList">#</a>
<span class="code-name" id="queryMapDocList" style="font-size:30px">
queryMapDocList<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>获取发布的文档列表,仅支持igs1.0</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>version</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>版本信息,默认为'1.0',可缺省(缺省时只返回直接发布的文档列表,如果v=2列表中将会包含目录形式发布的文档</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer, FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryMapDocList = resourceServer.queryMapDocList({
method: FetchMethod.get,
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryMapInfo">
<a class="href-link" href="#queryMapInfo">#</a>
<span class="code-name" id="queryMapInfo" style="font-size:30px">
queryMapInfo<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>获取文档详细信息,仅支持igs1.0</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>docName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>文档名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>tree</code></td>
<td class="type">
<span class="param-type">
Boolean
</span>
</td>
<td class="description last"><p>是否按树形显示,缺省false</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>include</code></td>
<td class="type">
<span class="param-type">
Object
</span>
</td>
<td class="description last"><p>返回中要求包含的属性 {"IncludeDetails":true,"IncludeSubs":true}</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>returnFullStyle</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>是否返回全部信息的标志位e</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>guid</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>用户会话id,可以缺省</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer, FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryMapInfo = resourceServer.queryMapInfo({
method: FetchMethod.get,
docName: "sz",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryMapInfoByIndex">
<a class="href-link" href="#queryMapInfoByIndex">#</a>
<span class="code-name" id="queryMapInfoByIndex" style="font-size:30px">
queryMapInfoByIndex<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>获取指定地图的详细信息,仅支持igs1.0</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>docName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>地图文档名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>mapIndex</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>地图索引,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>include</code></td>
<td class="type">
<span class="param-type">
Object
</span>
</td>
<td class="description last"><p>返回中要求包含的属性 {"IncludeDetails":true,"IncludeSubs":true}</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>returnFullStyle</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>是否返回全部信息的标志位e</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>guid</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>用户会话id,可以缺省</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryMapInfoByIndex = resourceServer.queryMapInfoByIndex({
method: FetchMethod.get,
docName: "sz",
mapIndex: "0",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryMapLayerInfo">
<a class="href-link" href="#queryMapLayerInfo">#</a>
<span class="code-name" id="queryMapLayerInfo" style="font-size:30px">
queryMapLayerInfo<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>获取指定地图下所有图层的信息,仅支持igs1.0</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>docName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>地图文档名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>mapIndex</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>地图索引,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>guid</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>用户会话id,可以缺省</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer, FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryMapLayerInfo = resourceServer.queryMapLayerInfo({
method: FetchMethod.get,
docName: "sz",
mapIndex: "0",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryMapLayerInfoByIndex">
<a class="href-link" href="#queryMapLayerInfoByIndex">#</a>
<span class="code-name" id="queryMapLayerInfoByIndex" style="font-size:30px">
queryMapLayerInfoByIndex<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>获取指定地图下指定图层的信息,仅支持igs1.0</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>docName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>地图文档名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>mapIndex</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>地图索引,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>layerId</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>图层索引,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>guid</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>用户会话id,可以缺省</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>returnFullStyle</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>是否返回全部信息的标志位e</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer, FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryMapLayerInfoByIndex = resourceServer.queryMapLayerInfoByIndex({
method: FetchMethod.get,
docName: "sz",
mapIndex: "0",
layerIndex: "0",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryServerInfo">
<a class="href-link" href="#queryServerInfo">#</a>
<span class="code-name" id="queryServerInfo" style="font-size:30px">
queryServerInfo<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>获取服务信息,IGS2.0新增服务</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th style="min-width: 100px;">默认值</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="default">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="default">
无
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="default">
无
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a goto="queryServerInfo" link="BaseServer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="BaseServer#queryServerInfo" BaseServer.html#queryServerInfo>BaseServer#queryServerInfo</a>
</li></ul></dd>
</dl>
<h5>示例</h5>
<p class="code-caption"><h5>获取服务信息-回调方式</h5></p>
<pre class="prettyprint"><code>server.queryServerInfo({
success: function (result) {
console.log('请求成功:', result);
},
failure: function (result) {
console.log('请求失败:', result);
}
});</code></pre>
<p class="code-caption"><h5>获取服务信息-promise方式</h5></p>
<pre class="prettyprint"><code>server.queryServerInfo({
})
.then(function (result) {
console.log('请求成功:', result);
}).catch(function (result) {
console.log('请求失败:', result);
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="querySimpleFeatureList">
<a class="href-link" href="#querySimpleFeatureList">#</a>
<span class="code-name" id="querySimpleFeatureList" style="font-size:30px">
querySimpleFeatureList<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>简单要素类列表</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th style="min-width: 100px;">默认值</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="default">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="default">
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="default">
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="default">
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="default">
</td>
<td class="description last"><p>数据源名,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="default">
</td>
<td class="description last"><p>gdb名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="default">
</td>
<td class="description last"><p>数据源用户名</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>fdsName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="default">
</td>
<td class="description last"><p>要素数据集名称,如果不为空,则仅获取指定要素数据下的数据</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>includeAll</code></td>
<td class="type">
<span class="param-type">
Boolean
</span>
</td>
<td class="default">
false
</td>
<td class="description last"><p>是否包含要素数据集下及非要素数据集下的简单要素类数据,仅当fdsName为空时有效</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs2.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer, FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new .ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const querySimpleFeatureList = resourceServer.querySimpleFeatureList({
method: FetchMethod.get,
datasource: "MapGISLocalPlus",
gdbName: "sample",
useName: "",
fdsName: "影像数据",
includeAll: true,
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code> // ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer, FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const querySimpleFeatureList = resourceServer.querySimpleFeatureList({
method: FetchMethod.get,
datasource: "MapGISLocalPlus",
gdbName: "sample",
useName: "",
fdsName: "影像数据",
includeAll: true,
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="querySrsInfo">
<a class="href-link" href="#querySrsInfo">#</a>
<span class="code-name" id="querySrsInfo" style="font-size:30px">
querySrsInfo<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>查询参考系信息</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>数据源名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>gdb名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>srsName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>参考系名称,必传,在使用igs1.0服务时,需要传入参考系id</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>数据源用户名</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs2.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer, FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const querySrsInfo = resourceServer.querySrsInfo({
method: FetchMethod.get,
datasource: "MapGISLocalPlus",
gdbName: "sample",
srsName: "WGS1984_度",
useName: "",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code> // ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer, FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const querySrsInfo = resourceServer.querySrsInfo({
method: FetchMethod.get,
datasource: "MapGISLocalPlus",
gdbName: "sample",
srsName: "7",
useName: "",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="querySrsList">
<a class="href-link" href="#querySrsList">#</a>
<span class="code-name" id="querySrsList" style="font-size:30px">
querySrsList<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>查询参考系列表</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>数据源名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>gdb名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>数据源用户名</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs2.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer, FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const querySrsList = resourceServer.querySrsList({
method: FetchMethod.get,
datasource: "MapGISLocalPlus",
gdbName: "sample",
useName: "",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code> // ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer, FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const querySrsList = resourceServer.querySrsList({
method: FetchMethod.get,
datasource: "MapGISLocalPlus",
gdbName: "sample",
useName: "",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="querySymbol">
<a class="href-link" href="#querySymbol">#</a>
<span class="code-name" id="querySymbol" style="font-size:30px">
querySymbol<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>修改图层的系统库,仅支持igs1.0</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>systemLib</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>系统库guid或者名称</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>type</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>类型SymbolGeomType(GeomEnt3D,GeomLin,GeomPnt,GeomReg,GeomSur3D,Unknown)</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>systemNo</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>符号序号</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>systemSubNo</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>符号子序号</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer, FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const querySymbol = resourceServer.querySymbol({
method: FetchMethod.get,
systemLib: "DefaultSystemLib",
type: "GeomPnt",
systemNo: "0",
systemSubNo: "0",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="querySymbolList">
<a class="href-link" href="#querySymbolList">#</a>
<span class="code-name" id="querySymbolList" style="font-size:30px">
querySymbolList<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>修改图层的系统库,仅支持igs1.0</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>systemLib</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>系统库guid或者名称</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>page</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>页码(默认0)</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>size</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>分页量(默认20)</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>type</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>类型SymbolGeomType(GeomEnt3D,GeomLin,GeomPnt,GeomReg,GeomSur3D,Unknown)</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
// ES6引入方式
import { ResourceServer } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="querySystemColorList">
<a class="href-link" href="#querySystemColorList">#</a>
<span class="code-name" id="querySystemColorList" style="font-size:30px">
querySystemColorList<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>查询系统颜色列表</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th style="min-width: 100px;">默认值</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="default">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>sysLib</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="default">
</td>
<td class="description last"><p>系统库id,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="default">
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="default">
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="default">
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>page</code></td>
<td class="type">
<span class="param-type">
Number
</span>
</td>
<td class="default">
1
</td>
<td class="description last"><p>页码</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>pageSize</code></td>
<td class="type">
<span class="param-type">
Number
</span>
</td>
<td class="default">
20
</td>
<td class="description last"><p>每页数量</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs2.0</h5></p>
<pre class="prettyprint"><code> // ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const querySystemColorList = resourceServer.querySystemColorList({
method: FetchMethod.get,
sysLib: "DefaultSystemLib",
page: 1,
pageSize: 20,
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code> // ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const querySystemColorList = resourceServer.querySystemColorList({
method: FetchMethod.get,
sysLib: "DefaultSystemLib",
page: 0,
pageSize: 20,
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="querySystemLibList">
<a class="href-link" href="#querySystemLibList">#</a>
<span class="code-name" id="querySystemLibList" style="font-size:30px">
querySystemLibList<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>查询系统库资源列表</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs2.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const querySystemLibList = resourceServer.querySystemLibList({
method: FetchMethod.get,
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code> // ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const querySystemLibList = resourceServer.querySystemLibList({
method: FetchMethod.get,
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryTempDataFeatures">
<a class="href-link" href="#queryTempDataFeatures">#</a>
<span class="code-name" id="queryTempDataFeatures" style="font-size:30px">
queryTempDataFeatures<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>获取临时图层要素信息</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th style="min-width: 100px;">默认值</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="default">
</td>
<td class="description last"><p>要素查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>method</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="default">
FetchMethod.get
</td>
<td class="description last"><p>请求类型</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="default">
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="default">
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>geometry</code></td>
<td class="type">
<span class="param-type">
<a link="Geometry.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Geometry" Geometry.html>Geometry</a>
</span>
</td>
<td class="default">
</td>
<td class="description last"><p>要素查询几何条件</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>url</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="default">
</td>
<td class="description last"><p>图层资源的路径,可能是gdbp、filePath</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>mapResource</code></td>
<td class="type">
<span class="param-type">
Object
</span>
</td>
<td class="default">
</td>
<td class="description last"><p>地图文档的资源,与urls二选一,mapResource优先,示例:"{"url": "/root/wuhan.mapx","mapIndex ": 0,"layerId": "string"}"</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>where</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="default">
</td>
<td class="description last"><p>要素查询where条件</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>outFields</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="default">
</td>
<td class="description last"><p>输出属性字段,可为*表示所有,多个用英文逗号分隔</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>objectIds</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="default">
</td>
<td class="description last"><p>过滤id,多个用英文逗号分隔(参数优先级很高,可能导致其它筛选条件失效)</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>distance</code></td>
<td class="type">
<span class="param-type">
Number
</span>
</td>
<td class="default">
0
</td>
<td class="description last"><p>几何缓冲的距离,geometry为point、line时有效(若数据源为大数据PG数据,且geometryType为line或者point时为必填数据)</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>geometryPrecision</code></td>
<td class="type">
<span class="param-type">
Number
</span>
</td>
<td class="default">
</td>
<td class="description last"><p>返回要素几何信息中坐标xy的精度</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>spatialRel</code></td>
<td class="type">
<span class="param-type">
<a link="SpatialRelation.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="SpatialRelation" global.html#SpatialRelation>SpatialRelation</a>
</span>
</td>
<td class="default">
</td>
<td class="description last"><p>几何条件的空间判定规则,Intersects(相交)、EnvelopeIntersects(外包矩形相交)、Contains(包含)、Disjoint(相离)</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>orderByFields</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="default">
</td>
<td class="description last"><p>排序字段,格式: fieldName [ASC|DESC]</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>groupByFieldsForStatistics</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="default">
</td>
<td class="description last"><p>分组统计的字段信息,格式为field1,field2</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>resultRecordCount</code></td>
<td class="type">
<span class="param-type">
Number
</span>
</td>
<td class="default">
20
</td>
<td class="description last"><p>分页参数:结果返回条数,默认20</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>resultOffset</code></td>
<td class="type">
<span class="param-type">
Number
</span>
</td>
<td class="default">
</td>
<td class="description last"><p>分页参数:跳过条数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>outStatistics</code></td>
<td class="type">
<span class="param-type">
Array
</span>
</td>
<td class="default">
</td>
<td class="description last"><p>计算一个或多个基于字段的统计信息结构,统计类型包括:FUNCTION_MAX/FUNCTION_MIN/FUNCTION_SUM/FUNCTION_AVG/FUNCTION_COUNT/FUNCTION_MAX_OID,示例:"[{"statisticType": "FUNCTION_SUM","onStatisticField": "field1","outStatisticFieldName":"fieldName1"}]"</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>returnGeometry</code></td>
<td class="type">
<span class="param-type">
Boolean
</span>
</td>
<td class="default">
true
</td>
<td class="description last"><p>是否返回几何,默认为true</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>returnAttribute</code></td>
<td class="type">
<span class="param-type">
Boolean
</span>
</td>
<td class="default">
true
</td>
<td class="description last"><p>是否返回属性,默认为true</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>returnStyle</code></td>
<td class="type">
<span class="param-type">
Boolean
</span>
</td>
<td class="default">
false
</td>
<td class="description last"><p>是否返回图形参数信息,默认为false</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>returnIdsOnly</code></td>
<td class="type">
<span class="param-type">
Boolean
</span>
</td>
<td class="default">
false
</td>
<td class="description last"><p>是否只返回id,默认为false</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>returnCountOnly</code></td>
<td class="type">
<span class="param-type">
Boolean
</span>
</td>
<td class="default">
false
</td>
<td class="description last"><p>是否只返回条数,默认为false</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>returnExtentOnly</code></td>
<td class="type">
<span class="param-type">
Boolean
</span>
</td>
<td class="default">
false
</td>
<td class="description last"><p>是否只返回范围,默认为false</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>returnZ</code></td>
<td class="type">
<span class="param-type">
Boolean
</span>
</td>
<td class="default">
false
</td>
<td class="description last"><p>是否返回Z轴,默认为false</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>is6xAcls</code></td>
<td class="type">
<span class="param-type">
Boolean
</span>
</td>
<td class="default">
true
</td>
<td class="description last"><p>图层资源的路径是filePath且后缀是.wt时,需要指定图层资源是否是6x注记,默认为6x点</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const queryTempDataFeatures1 = resourceServer.queryTempDataFeatures({
method: FetchMethod.get,
url: "gdbp://MapGISLocalPlus/sample/sfcls/等值线1",
where: "高度='80'",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryTempDataInfo">
<a class="href-link" href="#queryTempDataInfo">#</a>
<span class="code-name" id="queryTempDataInfo" style="font-size:30px">
queryTempDataInfo<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>获取临时数据信息</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>url</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>资源url</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const queryTempDataInfo = resourceServer.queryTempDataInfo({
method: FetchMethod.get,
url: "gdbp://MapGISLocalPlus/sample/sfcls/等值线1",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryTempDataServerInfo">
<a class="href-link" href="#queryTempDataServerInfo">#</a>
<span class="code-name" id="queryTempDataServerInfo" style="font-size:30px">
queryTempDataServerInfo<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>获取临时数据服务信息</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs2.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const queryTempDataServerInfo = resourceServer.queryTempDataServerInfo({
method: FetchMethod.get,
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryTileDataSourceList">
<a class="href-link" href="#queryTileDataSourceList">#</a>
<span class="code-name" id="queryTileDataSourceList" style="font-size:30px">
queryTileDataSourceList<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>获取栅格数据集列表</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>数据源名,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>gdb名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>数据源用户名</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs2.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const queryTileDataSourceList = resourceServer.queryTileDataSourceList({
method: FetchMethod.get,
datasource: "MapGISLocalPlus",
gdbName: "sample",
useName: "",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code> // ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryTileDataSourceList = resourceServer.queryTileDataSourceList({
method: FetchMethod.get,
datasource: "MapGISLocalPlus",
gdbName: "sample",
useName: "",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryTileInfo">
<a class="href-link" href="#queryTileInfo">#</a>
<span class="code-name" id="queryTileInfo" style="font-size:30px">
queryTileInfo<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>获取指定瓦片详细信息,仅支持igs1.0</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>version</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>版本信息,默认为'1.0',可缺省(缺省时只返回直接发布的文档列表,如果v=2列表中将会包含目录形式发布的文档</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>name</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>瓦片名称,必传</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code> // ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryTileInfo = resourceServer.queryTileInfo({
method: FetchMethod.get,
name: "Tile:WorldMKTTile",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryTileList">
<a class="href-link" href="#queryTileList">#</a>
<span class="code-name" id="queryTileList" style="font-size:30px">
queryTileList<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>获取发布的瓦片列表,仅支持igs1.0</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>version</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>版本信息,默认为'1.0',可缺省(缺省时只返回直接发布的文档列表,如果v=2列表中将会包含目录形式发布的文档</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryTileList = resourceServer.queryTileList({
method: FetchMethod.get,
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryVectorTileFont">
<a class="href-link" href="#queryVectorTileFont">#</a>
<span class="code-name" id="queryVectorTileFont" style="font-size:30px">
queryVectorTileFont<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>矢量瓦片-获取字体,仅支持igs1.0</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>fontstack</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>字体名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>range</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>字体范围,必传</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryVectorTileFont = resourceServer.queryVectorTileFont({
method: FetchMethod.get,
fontstack: "黑体",
range: "0-255.pbf",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryVectorTileFontList">
<a class="href-link" href="#queryVectorTileFontList">#</a>
<span class="code-name" id="queryVectorTileFontList" style="font-size:30px">
queryVectorTileFontList<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>矢量瓦片-获取字体列表,仅支持igs1.0</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryVectorTileFontList = resourceServer.queryVectorTileFontList({
method: FetchMethod.get,
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryVectorTileServiceFont">
<a class="href-link" href="#queryVectorTileServiceFont">#</a>
<span class="code-name" id="queryVectorTileServiceFont" style="font-size:30px">
queryVectorTileServiceFont<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>矢量瓦片-获取指定服务的字体,仅支持igs1.0</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>serviceName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>矢量瓦片服务名,必传</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryVectorTileServiceFont = resourceServer.queryVectorTileServiceFont({
method: FetchMethod.get,
serviceName: "统一专题图",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryVectorTileServiceSprite">
<a class="href-link" href="#queryVectorTileServiceSprite">#</a>
<span class="code-name" id="queryVectorTileServiceSprite" style="font-size:30px">
queryVectorTileServiceSprite<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>矢量瓦片-获取服务的sprite图,仅支持igs1.0</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>serviceName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>矢量瓦片服务名,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>format</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>格式,支持后缀为.json或.png,必传</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryVectorTileServiceSprite =
resourceServer.queryVectorTileServiceSprite({
method: FetchMethod.get,
serviceName: "统一专题图",
format: ".json",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryVectorTileServiceStyle">
<a class="href-link" href="#queryVectorTileServiceStyle">#</a>
<span class="code-name" id="queryVectorTileServiceStyle" style="font-size:30px">
queryVectorTileServiceStyle<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>矢量瓦片-获取指定服务的样式,仅支持igs1.0</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>serviceName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>矢量瓦片服务名,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>tpl</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>自定义地图模板的索引号,必传</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryVectorTileServiceStyle = resourceServer.queryVectorTileServiceStyle({
method: FetchMethod.get,
serviceName: "统一专题图",
tpl: "0",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryVectorTileStyle">
<a class="href-link" href="#queryVectorTileStyle">#</a>
<span class="code-name" id="queryVectorTileStyle" style="font-size:30px">
queryVectorTileStyle<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>矢量瓦片-获取上传样式,仅支持igs1.0</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>fileName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>样式文件名</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryVectorTileStyle = resourceServer.queryVectorTileStyle({
method: FetchMethod.get,
fileName: "统一专题图",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryVectorTileStyleList">
<a class="href-link" href="#queryVectorTileStyleList">#</a>
<span class="code-name" id="queryVectorTileStyleList" style="font-size:30px">
queryVectorTileStyleList<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>矢量瓦片-获取所有上传样式列表,仅支持igs1.0</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryVectorTileStyleList = resourceServer.queryVectorTileStyleList({
method: FetchMethod.get,
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="removeMapLayer">
<a class="href-link" href="#removeMapLayer">#</a>
<span class="code-name" id="removeMapLayer" style="font-size:30px">
removeMapLayer<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>删除文档中指定地图中指定图层,仅支持igs1.0</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>docName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>地图文档名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>mapIndex</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>地图索引,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>layerIndexs</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>图层索引列表(多个用英文逗号分隔)</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>guid</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>用户会话id</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const removeMapLayer = resourceServer.removeMapLayer({
method: FetchMethod.get,
docName: "sz",
mapIndex: "新地图1",
layerIndexs: "0",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="updateLayerInGdbp">
<a class="href-link" href="#updateLayerInGdbp">#</a>
<span class="code-name" id="updateLayerInGdbp" style="font-size:30px">
updateLayerInGdbp<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>更新GDB数据库中的一个图层,仅支持igs1.0</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbSvrName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>数据源名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>gdb名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>featureType</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>要素类型,必传,要素类型:SFeatureCls或AnnotationCls</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>layerName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>图层名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>updateObject</code></td>
<td class="type">
<span class="param-type">
Object
</span>
</td>
<td class="description last"><p>更新参数,必传,例如{"SrsName":"WGS1984_度","LayerName":"图层名"}</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const updateLayerInGdbp = resourceServer.updateLayerInGdbp({
method: FetchMethod.get,
gdbSvrName: "MapGISLocalPlus",
gdbName: "sample",
featureType: "SfeatureCls",
layerName: "等值线",
updateObject: {
SrsName: "WGS1984_度",
LayerName: "图层名",
},
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="updateSimpleFeature">
<a class="href-link" href="#updateSimpleFeature">#</a>
<span class="code-name" id="updateSimpleFeature" style="font-size:30px">
updateSimpleFeature<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>更新单个简单要素类信息</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>数据源名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>gdb名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>featureSetName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>简单要素类名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>updateInfo</code></td>
<td class="type">
<span class="param-type">
Object
</span>
</td>
<td class="description last"><p>更新的信息,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>数据源用户名</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const updateSimpleFeature = resourceServer.updateSimpleFeature({
method: FetchMethod.put,
datasource: "MapGISLocalPlus",
gdbName: "sample",
featureSetName: "等值线1",
updateInfo: {
name: "等值线",
srs: "WGS1984_度",
},
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="updateVectorTileServiceStyle">
<a class="href-link" href="#updateVectorTileServiceStyle">#</a>
<span class="code-name" id="updateVectorTileServiceStyle" style="font-size:30px">
updateVectorTileServiceStyle<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>更新指定服务的样式,仅支持igs1.0</p>
</div>
<h4>参数</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">
function
</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>serviceName</code></td>
<td class="type">
<span class="param-type">
String
</span>
</td>
<td class="description last"><p>矢量瓦片服务名,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>updateObject</code></td>
<td class="type">
<span class="param-type">
Object
</span>
</td>
<td class="description last"><p>更新参数,必传</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">
Promise.<Object>
</span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code> // ES5引入方式
const { ResourceServer } = zondy.service
const { FetchMethod } = zondy.enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const updateVectorTileServiceStyle =
resourceServer.updateVectorTileServiceStyle({
method: FetchMethod.post,
serviceName: "统一专题图",
updateObject: {},
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
</div>
</div>
</article>
</section>