@mapgis/webclient-common
Version:
An important part of the MapGIS Client for JavaScript product, which provides interfaces and functions unrelated to the map engine.
24,589 lines • 448 kB
HTML
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<script src="scripts/prettify/prettify.js"></script>
<script src="scripts/prettify/lang-css.js"></script>
<title> MapGIS Client for JavaScript API </title>
<script type="text/javascript">
</script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script src="scripts/jquery.min.js"></script>
<script src="scripts/adminlte/app.min.js"></script>
<link type="text/css" rel="stylesheet" href="styles/bootstrap.min.css">
<link type="text/css" rel="stylesheet" href="styles/adminlte/AdminLTE.min.css">
<link type="text/css" rel="stylesheet" href="styles/adminlte/skin-blue.min.css">
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
<link type="text/css" rel="stylesheet" href="styles/common.css">
<link type="text/css" rel="stylesheet" href="styles/header.css">
<link type="text/css" rel="stylesheet" href="styles/examples.css">
<link type="text/css" rel="stylesheet" href="styles/style.customize.css">
<link type="text/css" rel="stylesheet" href="styles/font-awesome.css">
<link type="text/css" rel="stylesheet" href="styles/jaguar.css">
<script src="scripts/bootstrap.min.js"></script>
</head>
<body class='sidebar-mini'>
<div id="wrap" class="clearfix">
<header class="header-wrapper main-header mapgis-header">
<nav class="navbar navbar-static-top lite">
<div class="nav-header">
<div class="navbar-header">
<div class="navbar-title" style="display: flex;align-items: center; ">
<a href="index.html">
<img class="mapgis-webclient-logo" src="data:image/png;base64,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">
</a>
<a class="navbar-brand">
<span class="mapgis-webclient-text"> MapGIS Client for JavaScript(Common) </span>
</a>
<div id="suffix-title">for MapboxGL</div>
</div>
<button
type="button"
class="navbar-toggle collapsed"
data-toggle="collapse"
data-target="#navbar-collapse"
aria-expanded="false"
>
<i class="fa fa-bars"></i>
</button>
</div>
</div>
</nav>
</header>
<div class="navigationDiv">
</div>
<div class="main content-wrapper examples-container">
<h1 class="page-title" data-filename="ResourceServer.html">Class: ResourceServer</h1>
<section>
<header>
<h2></span>ResourceServer
</h2>
</header>
<article>
<div class="container-overview">
<dt>
<div class="nameContainer">
<h4 class="name" id="ResourceServer">
new ResourceServer<span class="signature">(options)</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 8
</div>
</div>
</dt>
<dd>
<div class="description">
<p>资源服</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last">
<p>构造参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>url</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="default">
null
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>服务基地址<br>
IGS1.0: http://{ip}:{port}/igs/rest/mrcs<br>
IGS2.0: http://{ip}:{port}/igs/rest/services/system/ResourceServer<br></p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
</dd>
</div>
<h3 class="subsection-title">Extends</h3>
<ul>
<li><a href="BaseServer.html">BaseServer</a></li>
</ul>
<h3 class="subsection-title">Members</h3>
<dl>
<dt>
<div class="nameContainer">
<h4 class="name" id="clientId">clientId<span class="type-signature type boolean">Boolean</span> </h4>
</div>
</dt>
<dd>
<div class="description">
<p>客户端id</p>
</div>
<dl class="details">
</dl>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="enableGlobeFetch">enableGlobeFetch<span class="type-signature type boolean">Boolean</span> </h4>
</div>
</dt>
<dd>
<div class="description">
<p>是否使用确据唯一的fetch对象,默认为true,当设为false时,会使用自己私有的fetch对象,所有的请求设置不会影响全局</p>
</div>
<dl class="details">
</dl>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="headers">headers<span class="type-signature type string">String</span> </h4>
</div>
</dt>
<dd>
<div class="description">
<p>请求头参数</p>
</div>
<dl class="details">
</dl>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="requestInterceptor">requestInterceptor<span class="type-signature type function">function</span> </h4>
</div>
</dt>
<dd>
<div class="description">
<p>请求发送拦截器</p>
</div>
<dl class="details">
</dl>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="requestTimeout">requestTimeout<span class="type-signature type string">String</span> </h4>
</div>
</dt>
<dd>
<div class="description">
<p>请求超时时间,默认45000ms,即45s</p>
</div>
<dl class="details">
</dl>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="responseInterceptor">responseInterceptor<span class="type-signature type function">function</span> </h4>
</div>
</dt>
<dd>
<div class="description">
<p>请求响应拦截器</p>
</div>
<dl class="details">
</dl>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="tokenAttachType">tokenAttachType<span class="type-signature type tokenattachtype"><a href="TokenAttachType.html">TokenAttachType</a></span> </h4>
</div>
</dt>
<dd>
<div class="description">
<p>指定token附加到何处</p>
</div>
<dl class="details">
</dl>
<h5>Example</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名
tokenKey: '你的token key',
//token值
tokenValue: '你的token值',
//指定token附加到url后面
tokenAttachType: TokenAttachType.url
});
//动态修改
BaseServer.tokenAttachType = TokenAttachType.header;</code></pre>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="tokenKey">tokenKey<span class="type-signature type string">String</span> </h4>
</div>
</dt>
<dd>
<div class="description">
<p>token名</p>
</div>
<dl class="details">
</dl>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="tokenValue">tokenValue<span class="type-signature type string">String</span> </h4>
</div>
</dt>
<dd>
<div class="description">
<p>token值</p>
</div>
<dl class="details">
</dl>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="url">url<span class="type-signature type string">String</span> </h4>
</div>
</dt>
<dd>
<div class="description">
<p>服务基地址</p>
</div>
<dl class="details">
</dl>
<h5>Example</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>
</dd>
</dl>
<h3 class="subsection-title">Methods</h3>
<dl>
<dt>
<div class="nameContainer">
<h4 class="name" id="addClass">
addClass<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 969
</div>
</div>
</dt>
<dd>
<div class="description">
<p>在数据库中创建一个类</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>数据源名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>gdb名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>数据源用户名</p></td>
</tr>
<tr>
<td class="name"><code>layerName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>图层名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>geomType</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>几何类型,必传,igs2.0支持"Pnt" "Lin" "Reg" "Ann" "Surface" "Entity" "Unknown"</p></td>
</tr>
<tr>
<td class="name"><code>srs</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>参考系信息,支持mapgis参照系名称和EPSG编号,比如EPSG:4326、WGS1984_度</p></td>
</tr>
<tr>
<td class="name"><code>fdsName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>要素集名称</p></td>
</tr>
<tr>
<td class="name"><code>fields</code></td>
<td class="type">
<span class="param-type">Array.<Object></span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>属性字段结构信息,必传,示例:[{"name": "string","type": "string","alias": "string","length": 0}]</p></td>
</tr>
<tr>
<td class="name"><code>featureType</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>要素类型,取值为sfcls 或 acls,默认sfcls,目前仅支持简单要素类和注记类(只支持文本类型注记)</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="addGDB">
addGDB<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 209
</div>
</div>
</dt>
<dd>
<div class="description">
<p>新建数据库</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>数据库名,必传</p></td>
</tr>
<tr>
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>gdb名称</p></td>
</tr>
<tr>
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>数据源用户名</p></td>
</tr>
<tr>
<td class="name"><code>path</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>gdb路径</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Examples</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="addMapLayer">
addMapLayer<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 2847
</div>
</div>
</dt>
<dd>
<div class="description">
<p>添加图层到文档中指定地图,仅支持igs1.0</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>docName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>地图文档名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>mapIndex</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>地图索引,必传</p></td>
</tr>
<tr>
<td class="name"><code>updateObject</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>更新参数,必传</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="attachGDB">
attachGDB<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 323
</div>
</div>
</dt>
<dd>
<div class="description">
<p>附加数据库</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>数据源用户名</p></td>
</tr>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>数据源名,必传</p></td>
</tr>
<tr>
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>gdb名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>path</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>gdb路径,必传</p></td>
</tr>
<tr>
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>数据源用户名</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Examples</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="createGdbLayer">
createGdbLayer<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 2264
</div>
</div>
</dt>
<dd>
<div class="description">
<p>在GDB数据库中创建一个图层,仅支持igs1.0</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>gdbSvrName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>数据源名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>GDB数据名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>featureType</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>要素类型,必传。FeatureDS(要素数据集)、SfeatureCls(简单要素类)、ObjectCls(对象类)、AnnotationCls(注记类)、RasterDataset(栅格数据集)、RasterCatalog(栅格目录)、GnetCls(几何网络)、AddrBaseCls(地名库)等。</p></td>
</tr>
<tr>
<td class="name"><code>layerName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>图层名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>geoType</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>几何类型,必传。区图层为Reg、线图层为Lin、点图层为Pnt</p></td>
</tr>
<tr>
<td class="name"><code>srefName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>参考系名称</p></td>
</tr>
<tr>
<td class="name"><code>dsName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>要素数据集名称</p></td>
</tr>
<tr>
<td class="name"><code>attStruct</code></td>
<td class="type">
<span class="param-type">CAttStruct</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>图层数据结构</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="createLayerInGdbp">
createLayerInGdbp<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 2498
</div>
</div>
</dt>
<dd>
<div class="description">
<p>在GDB数据库中创建一个图层,仅支持igs1.0</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>gdbSvrName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>数据源名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>gdb名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>featureType</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>要素类型,必传,要素数据集为FeatureDS、简单要素类为SFeatureCls,对象类为ObjectCls,注记类为AnnotationCls,网络类为GNetCls…..。</p></td>
</tr>
<tr>
<td class="name"><code>layerName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>图层名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>geoType</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>几何类型,必传,区图层为Reg、线图层为Lin、点图层为Pnt</p></td>
</tr>
<tr>
<td class="name"><code>srefName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>参考系名称</p></td>
</tr>
<tr>
<td class="name"><code>dsName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>要素名称</p></td>
</tr>
<tr>
<td class="name"><code>attStruct</code></td>
<td class="type">
<span class="param-type">CAttStruct</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>属性结构</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="deleteGDB">
deleteGDB<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 440
</div>
</div>
</dt>
<dd>
<div class="description">
<p>删除数据库</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>数据源名,必传</p></td>
</tr>
<tr>
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>gdb名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>数据源用户名</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Examples</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="deleteLayerInGdbp">
deleteLayerInGdbp<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 2588
</div>
</div>
</dt>
<dd>
<div class="description">
<p>删除GDB数据库中的一个图层,仅支持igs1.0</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>gdbSvrName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>数据源名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>gdb名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>featureType</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>要素类型,必传,要素数据集为FeatureDS、简单要素类为SFeatureCls,对象类为ObjectCls,注记类为AnnotationCls,网络类为GNetCls…..。</p></td>
</tr>
<tr>
<td class="name"><code>layerName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>图层名称,必传</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="deleteSimpleFeature">
deleteSimpleFeature<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 1214
</div>
</div>
</dt>
<dd>
<div class="description">
<p>删除简单要素类</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>gdb名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>gdb名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>featureSetName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>简单要素类名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>数据源用户名</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="detachGDB">
detachGDB<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 549
</div>
</div>
</dt>
<dd>
<div class="description">
<p>注销数据库</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>数据源名,必传</p></td>
</tr>
<tr>
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>gdb名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>数据源用户名</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Examples</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="downloadFile">
downloadFile<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 1731
</div>
</div>
</dt>
<dd>
<div class="description">
<p>下载文件资源</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>method</code></td>
<td class="type">
<span class="param-type"><a href="FetchMethod.html">FetchMethod</a></span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求方法</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>id</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>文件id。文件路径标识,文件相对路径或绝对路径通过base64编码后的字符串,注意绝对路径只能是igserver安装目录、配置的上传目录的子目录或用户的数据目录</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</h5>
<p class="code-caption"><h5>igs2.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = zondy.service
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer"
});
resoureServer
.downloadFile({
id: "56",
})
.then((res) => {
console.log("res: ", res);
});</code></pre>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="editLayerSystemLib">
editLayerSystemLib<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 3443
</div>
</div>
</dt>
<dd>
<div class="description">
<p>修改图层的系统库,仅支持igs1.0</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>systemLib</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>系统库id或名称</p></td>
</tr>
<tr>
<td class="name"><code>gdbps</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>图层列表,多个用英文逗号隔开</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="editMapLayerIndex">
editMapLayerIndex<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 2973
</div>
</div>
</dt>
<dd>
<div class="description">
<p>修改文档中指定地图下图层的索引,仅支持igs1.0</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>docName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>地图文档名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>mapIndex</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>地图索引,必传</p></td>
</tr>
<tr>
<td class="name"><code>guid</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>用户会话id</p></td>
</tr>
<tr>
<td class="name"><code>updateObject</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>更新参数,必传</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="editMapLayerSystemLib">
editMapLayerSystemLib<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 2731
</div>
</div>
</dt>
<dd>
<div class="description">
<p>修改文档下图层的系统库,仅支持igs1.0</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>docName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>地图文档名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>mapIndex</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>地图索引,必传</p></td>
</tr>
<tr>
<td class="name"><code>systemLib</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>系统库id或名称</p></td>
</tr>
<tr>
<td class="name"><code>layerIndexs</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>图层索引列表(多个用英文逗号分隔)</p></td>
</tr>
<tr>
<td class="name"><code>guid</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>用户会话id</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="editTempDataInfo">
editTempDataInfo<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 2204
</div>
</div>
</dt>
<dd>
<div class="description">
<p>修改系统库</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>urls</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>图层列表,必传,可能是gdbp、filePath,多个用","分隔</p></td>
</tr>
<tr>
<td class="name"><code>systemLibId</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>系统库id</p></td>
</tr>
<tr>
<td class="name"><code>systemLibName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>系统库的名称,systemLibId参数为空时有效</p></td>
</tr>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="getColorByIndex">
getColorByIndex<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 2001
</div>
</div>
</dt>
<dd>
<div class="description">
<p>根据颜色号获取RGB值</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>sysLib</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>系统库id,必传</p></td>
</tr>
<tr>
<td class="name"><code>colorIndex</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>颜色号,必传</p></td>
</tr>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Examples</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="getColorIndex">
getColorIndex<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 1889
</div>
</div>
</dt>
<dd>
<div class="description">
<p>根据RGB值获取颜色号</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<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">
<span class="optional"> 可选</span>
<p>系统库id,必传</p></td>
</tr>
<tr>
<td class="name"><code>color</code></td>
<td class="type">
<span class="param-type"><a href="Color.html">Color</a></span>
</td>
<td class="default">
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>颜色值,必传</p></td>
</tr>
<tr>
<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">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<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">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<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">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<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">
<span class="optional"> 可选</span>
<p>如果查找到的颜色不存在,是否新增</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Examples</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="getImage">
getImage<span class="signature">(options)</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 4269
</div>
</div>
</dt>
<dd>
<div class="description">
<p>根据参数获取图片的url</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>mapResource</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="default">
null
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>地图文档的资源,与urls二选一,mapResource优先</p></td>
</tr>
<tr>
<td class="name"><code>urls</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="default">
null
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>需要出图的图层列表,可能是gdbp、filePath,多个用","分隔</p></td>
</tr>
<tr>
<td class="name"><code>bbox</code></td>
<td class="type">
<span class="param-type"><a href="Extent.html">Extent</a></span>
</td>
<td class="default">
null
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>出图范围</p></td>
</tr>
<tr>
<td class="name"><code>size</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="default">
'256,256'
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>图片宽高</p></td>
</tr>
<tr>
<td class="name"><code>format</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="default">
'png'
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>图片格式,支持png/jpg/gif</p></td>
</tr>
<tr>
<td class="name"><code>isAntialiasing</code></td>
<td class="type">
<span class="param-type">Boolean</span>
</td>
<td class="default">
null
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>返回的图片是否抗锯齿</p></td>
</tr>
<tr>
<td class="name"><code>layerFilters</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="default">
null
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>出图过滤信息</p></td>
</tr>
<tr>
<td class="name"><code>layerStyles</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="default">
null
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>样式信息</p></td>
</tr>
<tr>
<td class="name"><code>transparent</code></td>
<td class="type">
<span class="param-type">Boolean</span>
</td>
<td class="default">
true
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>返回图片背景是否透明</p></td>
</tr>
<tr>
<td class="name"><code>spatialReference</code></td>
<td class="type">
<span class="param-type"><a href="SpatialReference.html">SpatialReference</a></span>
</td>
<td class="default">
null
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>返回图片背景是否透明</p></td>
</tr>
<tr>
<td class="name"><code>f</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="default">
'image'
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求返回格式,html或image,IGS2.0参数</p></td>
</tr>
<tr>
<td class="name"><code>clientId</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="default">
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>客户端Id</p></td>
</tr>
<tr>
<td class="name"><code>dpi</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="default">
96
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>图片的设备分辨率(每英寸点数),IGS2.0参数</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
String 图片的url
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="getSimpleFeature">
getSimpleFeature<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 1072
</div>
</div>
</dt>
<dd>
<div class="description">
<p>获取简单要素类</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>数据源名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>gdb名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>featureSetName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>简单要素类名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>数据源用户名</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="operaGdbp">
operaGdbp<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 3368
</div>
</div>
</dt>
<dd>
<div class="description">
<p>GDB操作接口,仅支持igs1.0</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>operType</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>操作类型,必传(分为:attach、create、delete、detach)</p></td>
</tr>
<tr>
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>GDB数据名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>gdbServerName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>GDB数据源名称</p></td>
</tr>
<tr>
<td class="name"><code>useName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>用户名</p></td>
</tr>
<tr>
<td class="name"><code>password</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>密码,igs1.0有效</p></td>
</tr>
<tr>
<td class="name"><code>path</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>hdf路径或67文件夹路径</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="queryDataSourceFeatureClassList">
queryDataSourceFeatureClassList<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 3298
</div>
</div>
</dt>
<dd>
<div class="description">
<p>获取数据集下的要素类列表,仅支持igs1.0</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>gdbServerName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>GDB数据源名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>GDB数据名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>dsName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>要素数据集名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>useName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>用户名</p></td>
</tr>
<tr>
<td class="name"><code>password</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>密码,igs1.0有效</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="queryDataSourceInfo">
queryDataSourceInfo<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 90
</div>
</div>
</dt>
<dd>
<div class="description">
<p>查询数据源信息</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>数据库名,必传</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="queryDataSourceList">
queryDataSourceList<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 30
</div>
</div>
</dt>
<dd>
<div class="description">
<p>获取数据源列表,支持igs1.0和igs2.0</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Examples</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="queryDsAllData">
queryDsAllData<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 2424
</div>
</div>
</dt>
<dd>
<div class="description">
<p>获取GDB下某类型的所有数据,仅支持igs1.0</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>gdbSvrName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>数据源名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>gdb名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>clsType</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>要素数据类型,必传。数据类型(分为:ds、rcat、ras、sfcls、fcls、acls、ocls、rds、rcs、ncls、sfcls_new)或者为srefID 参考系id</p></td>
</tr>
<tr>
<td class="name"><code>useName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>用户名</p></td>
</tr>
<tr>
<td class="name"><code>password</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>密码,igs1.0有效</p></td>
</tr>
<tr>
<td class="name"><code>dsName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>要素数据集名称,必传</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="queryFeatureDataSourceList">
queryFeatureDataSourceList<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 658
</div>
</div>
</dt>
<dd>
<div class="description">
<p>查询要素数据集列表</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>数据源名,必传</p></td>
</tr>
<tr>
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>gdb名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>数据源用户名</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Examples</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="queryFileList">
queryFileList<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 1561
</div>
</div>
</dt>
<dd>
<div class="description">
<p>查询文件资源列表</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<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">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>method</code></td>
<td class="type">
<span class="param-type"><a href="FetchMethod.html">FetchMethod</a></span>
</td>
<td class="default">
<a href="FetchMethod.html#.get">FetchMethod.get</a>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求方法</p></td>
</tr>
<tr>
<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">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<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">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<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">
<span class="optional"> 可选</span>
<p>页码</p></td>
</tr>
<tr>
<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">
<span class="optional"> 可选</span>
<p>每页数量</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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"
});
resoureServer
.queryFileList({
// 设置页码
page: 1,
// 设置每页数量
pageSize: 10,
})
.then((res) => {
console.log(res);
});</code></pre>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="queryGDBList">
queryGDBList<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 137
</div>
</div>
</dt>
<dd>
<div class="description">
<p>查询GDB列表</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>数据源名,必传</p></td>
</tr>
<tr>
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>数据源用户名</p></td>
</tr>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Examples</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="queryGdbpAllData">
queryGdbpAllData<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 2353
</div>
</div>
</dt>
<dd>
<div class="description">
<p>获取GDB下某类型的所有数据,仅支持igs1.0</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>gdbSvrName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>数据源名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>gdb名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>clsType</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>要素数据类型,必传。数据类型(分为:ds、rcat、ras、sfcls、fcls、acls、ocls、rds、rcs、ncls、sfcls_new)或者为srefID 参考系id</p></td>
</tr>
<tr>
<td class="name"><code>useName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>用户名</p></td>
</tr>
<tr>
<td class="name"><code>password</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>密码,igs1.0有效</p></td>
</tr>
<tr>
<td class="name"><code>containAll</code></td>
<td class="type">
<span class="param-type">Boolean</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>是否返回hdf下所有的对应数据,false表示只返回对应节点下的数据,默认值为true</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="queryGDBPInfo">
queryGDBPInfo<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 3496
</div>
</div>
</dt>
<dd>
<div class="description">
<p>获取GDB下某个图层的详细信息,仅支持igs1.0</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>gdbpUrl</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>gdbp地址</p></td>
</tr>
<tr>
<td class="name"><code>proj</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>对shp图层支持投影,获取到投影后的范围,传参考系名称</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="queryLegendInfo">
queryLegendInfo<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 3550
</div>
</div>
</dt>
<dd>
<div class="description">
<p>获取地图文档服务的图例信息,仅支持igs1.0</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>docName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>服务名</p></td>
</tr>
<tr>
<td class="name"><code>layerIndex</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>生成图例的图层索引号(多个用英文逗号分隔)</p></td>
</tr>
<tr>
<td class="name"><code>size</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>格式:width,height</p></td>
</tr>
<tr>
<td class="name"><code>guid</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>用户会话id</p></td>
</tr>
<tr>
<td class="name"><code>maxCount</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>返回图例项最大数量</p></td>
</tr>
<tr>
<td class="name"><code>page</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>页码</p></td>
</tr>
<tr>
<td class="name"><code>pageSize</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>分页大小</p></td>
</tr>
<tr>
<td class="name"><code>where</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>过滤条件</p></td>
</tr>
<tr>
<td class="name"><code>range</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>范围</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="queryMapDocList">
queryMapDocList<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 2799
</div>
</div>
</dt>
<dd>
<div class="description">
<p>获取发布的文档列表,仅支持igs1.0</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>version</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>版本信息,默认为'1.0',可缺省(缺省时只返回直接发布的文档列表,如果v=2列表中将会包含目录形式发布的文档</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="queryMapInfo">
queryMapInfo<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 3038
</div>
</div>
</dt>
<dd>
<div class="description">
<p>获取文档详细信息,仅支持igs1.0</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>docName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>文档名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>tree</code></td>
<td class="type">
<span class="param-type">Boolean</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>是否按树形显示,缺省false</p></td>
</tr>
<tr>
<td class="name"><code>include</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>返回中要求包含的属性 {"IncludeDetails":true,"IncludeSubs":true}</p></td>
</tr>
<tr>
<td class="name"><code>returnFullStyle</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>是否返回全部信息的标志位e</p></td>
</tr>
<tr>
<td class="name"><code>guid</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>用户会话id,可以缺省</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="queryMapInfoByIndex">
queryMapInfoByIndex<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 3104
</div>
</div>
</dt>
<dd>
<div class="description">
<p>获取指定地图的详细信息,仅支持igs1.0</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>docName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>地图文档名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>mapIndex</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>地图索引,必传</p></td>
</tr>
<tr>
<td class="name"><code>include</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>返回中要求包含的属性 {"IncludeDetails":true,"IncludeSubs":true}</p></td>
</tr>
<tr>
<td class="name"><code>returnFullStyle</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>是否返回全部信息的标志位e</p></td>
</tr>
<tr>
<td class="name"><code>guid</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>用户会话id,可以缺省</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="queryMapLayerInfo">
queryMapLayerInfo<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 3173
</div>
</div>
</dt>
<dd>
<div class="description">
<p>获取指定地图下所有图层的信息,仅支持igs1.0</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>docName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>地图文档名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>mapIndex</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>地图索引,必传</p></td>
</tr>
<tr>
<td class="name"><code>guid</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>用户会话id,可以缺省</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="queryMapLayerInfoByIndex">
queryMapLayerInfoByIndex<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 3231
</div>
</div>
</dt>
<dd>
<div class="description">
<p>获取指定地图下指定图层的信息,仅支持igs1.0</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>docName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>地图文档名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>mapIndex</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>地图索引,必传</p></td>
</tr>
<tr>
<td class="name"><code>layerId</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>图层索引,必传</p></td>
</tr>
<tr>
<td class="name"><code>guid</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>用户会话id,可以缺省</p></td>
</tr>
<tr>
<td class="name"><code>returnFullStyle</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>是否返回全部信息的标志位e</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer inherited">
<h4 class="name" id="queryServerInfo">
<span class="inherited"><a href="BaseServer.html#queryServerInfo">inherited</a></span>
queryServerInfo<span class="signature">(options)</span>
</h4>
<div class="tag-source">
service/BaseServer.js, line 151
</div>
</div>
</dt>
<dd>
<div class="description">
<p>获取服务信息,IGS2.0新增服务</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<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">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<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">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Examples</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="querySimpleFeatureList">
querySimpleFeatureList<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 858
</div>
</div>
</dt>
<dd>
<div class="description">
<p>简单要素类列表</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<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">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<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">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<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">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<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">
<span class="optional"> 可选</span>
<p>数据源名,必传</p></td>
</tr>
<tr>
<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">
<span class="optional"> 可选</span>
<p>gdb名称,必传</p></td>
</tr>
<tr>
<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">
<span class="optional"> 可选</span>
<p>数据源用户名</p></td>
</tr>
<tr>
<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">
<span class="optional"> 可选</span>
<p>要素数据集名称,如果不为空,则仅获取指定要素数据下的数据</p></td>
</tr>
<tr>
<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">
<span class="optional"> 可选</span>
<p>是否包含要素数据集下及非要素数据集下的简单要素类数据,仅当fdsName为空时有效</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Examples</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="querySrsInfo">
querySrsInfo<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 1385
</div>
</div>
</dt>
<dd>
<div class="description">
<p>查询参考系信息</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>数据源名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>gdb名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>srsName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>参考系名称,必传,在使用igs1.0服务时,需要传入参考系id</p></td>
</tr>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>数据源用户名</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Examples</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="querySrsList">
querySrsList<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 1280
</div>
</div>
</dt>
<dd>
<div class="description">
<p>查询参考系列表</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>数据源名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>gdb名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>数据源用户名</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Examples</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="querySymbol">
querySymbol<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 3631
</div>
</div>
</dt>
<dd>
<div class="description">
<p>修改图层的系统库,仅支持igs1.0</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>systemLib</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>系统库guid或者名称</p></td>
</tr>
<tr>
<td class="name"><code>type</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>类型SymbolGeomType(GeomEnt3D,GeomLin,GeomPnt,GeomReg,GeomSur3D,Unknown)</p></td>
</tr>
<tr>
<td class="name"><code>systemNo</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>符号序号</p></td>
</tr>
<tr>
<td class="name"><code>systemSubNo</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>符号子序号</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="querySymbolList">
querySymbolList<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 3694
</div>
</div>
</dt>
<dd>
<div class="description">
<p>修改图层的系统库,仅支持igs1.0</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>systemLib</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>系统库guid或者名称</p></td>
</tr>
<tr>
<td class="name"><code>page</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>页码(默认0)</p></td>
</tr>
<tr>
<td class="name"><code>size</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>分页量(默认20)</p></td>
</tr>
<tr>
<td class="name"><code>type</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>类型SymbolGeomType(GeomEnt3D,GeomLin,GeomPnt,GeomReg,GeomSur3D,Unknown)</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="querySystemColorList">
querySystemColorList<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 1785
</div>
</div>
</dt>
<dd>
<div class="description">
<p>查询系统颜色列表</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<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">
<span class="optional"> 可选</span>
<p>系统库id,必传</p></td>
</tr>
<tr>
<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">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<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">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<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">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<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">
<span class="optional"> 可选</span>
<p>页码</p></td>
</tr>
<tr>
<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">
<span class="optional"> 可选</span>
<p>每页数量</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Examples</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="querySystemLibList">
querySystemLibList<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 1499
</div>
</div>
</dt>
<dd>
<div class="description">
<p>查询系统库资源列表</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Examples</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="queryTempDataFeatures">
queryTempDataFeatures<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<<a href="QueryFeaturesResult.html">QueryFeaturesResult</a>>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 2149
</div>
</div>
</dt>
<dd>
<div class="description">
<p>临时数据要素查询
<a href='QueryFeauresOptions.html#queryFeatures'>[指定图层查询使用示例]</a><br/></p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
<span class="param-type"><a href="QueryFeauresOptions.html">QueryFeauresOptions</a></span>
</td>
<td class="description last">
<p>指定图层要素查询参数</p></td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<<a href="QueryFeaturesResult.html">QueryFeaturesResult</a>>
</td>
<td class="description last">指定图层要素查询结果</td>
</tr>
</tbody>
</table>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="queryTempDataInfo">
queryTempDataInfo<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 2153
</div>
</div>
</dt>
<dd>
<div class="description">
<p>获取临时数据信息</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>url</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>资源url</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="queryTempDataServerInfo">
queryTempDataServerInfo<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 2100
</div>
</div>
</dt>
<dd>
<div class="description">
<p>获取临时数据服务信息</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="queryTileDataSourceList">
queryTileDataSourceList<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 759
</div>
</div>
</dt>
<dd>
<div class="description">
<p>获取栅格数据集列表</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>数据源名,必传</p></td>
</tr>
<tr>
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>gdb名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>数据源用户名</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Examples</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="queryTileInfo">
queryTileInfo<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 3796
</div>
</div>
</dt>
<dd>
<div class="description">
<p>获取指定瓦片详细信息,仅支持igs1.0</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>version</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>版本信息,默认为'1.0',可缺省(缺省时只返回直接发布的文档列表,如果v=2列表中将会包含目录形式发布的文档</p></td>
</tr>
<tr>
<td class="name"><code>name</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>瓦片名称,必传</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="queryTileList">
queryTileList<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 3747
</div>
</div>
</dt>
<dd>
<div class="description">
<p>获取发布的瓦片列表,仅支持igs1.0</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>version</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>版本信息,默认为'1.0',可缺省(缺省时只返回直接发布的文档列表,如果v=2列表中将会包含目录形式发布的文档</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="queryVectorTileFont">
queryVectorTileFont<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 3892
</div>
</div>
</dt>
<dd>
<div class="description">
<p>矢量瓦片-获取字体,仅支持igs1.0</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>fontstack</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>字体名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>range</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>字体范围,必传</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="queryVectorTileFontList">
queryVectorTileFontList<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 3850
</div>
</div>
</dt>
<dd>
<div class="description">
<p>矢量瓦片-获取字体列表,仅支持igs1.0</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="queryVectorTileServiceFont">
queryVectorTileServiceFont<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 4037
</div>
</div>
</dt>
<dd>
<div class="description">
<p>矢量瓦片-获取指定服务的字体,仅支持igs1.0</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>serviceName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>矢量瓦片服务名,必传</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="queryVectorTileServiceSprite">
queryVectorTileServiceSprite<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 4085
</div>
</div>
</dt>
<dd>
<div class="description">
<p>矢量瓦片-获取服务的sprite图,仅支持igs1.0</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>serviceName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>矢量瓦片服务名,必传</p></td>
</tr>
<tr>
<td class="name"><code>format</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>格式,支持后缀为.json或.png,必传</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="queryVectorTileServiceStyle">
queryVectorTileServiceStyle<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 4198
</div>
</div>
</dt>
<dd>
<div class="description">
<p>矢量瓦片-获取指定服务的样式,仅支持igs1.0</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>serviceName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>矢量瓦片服务名,必传</p></td>
</tr>
<tr>
<td class="name"><code>tpl</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>自定义地图模板的索引号,必传</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="queryVectorTileStyle">
queryVectorTileStyle<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 3989
</div>
</div>
</dt>
<dd>
<div class="description">
<p>矢量瓦片-获取上传样式,仅支持igs1.0</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>fileName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>样式文件名</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="queryVectorTileStyleList">
queryVectorTileStyleList<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 3947
</div>
</div>
</dt>
<dd>
<div class="description">
<p>矢量瓦片-获取所有上传样式列表,仅支持igs1.0</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="removeMapLayer">
removeMapLayer<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 2909
</div>
</div>
</dt>
<dd>
<div class="description">
<p>删除文档中指定地图中指定图层,仅支持igs1.0</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>docName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>地图文档名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>mapIndex</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>地图索引,必传</p></td>
</tr>
<tr>
<td class="name"><code>layerIndexs</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>图层索引列表(多个用英文逗号分隔)</p></td>
</tr>
<tr>
<td class="name"><code>guid</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>用户会话id</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="updateLayerInGdbp">
updateLayerInGdbp<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 2651
</div>
</div>
</dt>
<dd>
<div class="description">
<p>更新GDB数据库中的一个图层,仅支持igs1.0</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>gdbSvrName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>数据源名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>gdb名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>featureType</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>要素类型,必传,要素类型:SFeatureCls或AnnotationCls</p></td>
</tr>
<tr>
<td class="name"><code>layerName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>图层名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>updateObject</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>更新参数,必传,例如{"SrsName":"WGS1984_度","LayerName":"图层名"}</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="updateSimpleFeature">
updateSimpleFeature<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 1137
</div>
</div>
</dt>
<dd>
<div class="description">
<p>更新单个简单要素类信息</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>数据源名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>gdb名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>featureSetName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>简单要素类名称,必传</p></td>
</tr>
<tr>
<td class="name"><code>updateInfo</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>更新的信息,必传</p></td>
</tr>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>数据源用户名</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="updateVectorTileServiceStyle">
updateVectorTileServiceStyle<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 4140
</div>
</div>
</dt>
<dd>
<div class="description">
<p>更新指定服务的样式,仅支持igs1.0</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>serviceName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>矢量瓦片服务名,必传</p></td>
</tr>
<tr>
<td class="name"><code>updateObject</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>更新参数,必传</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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>
</dd>
<dt>
<div class="nameContainer">
<h4 class="name" id="uploadFiles">
uploadFiles<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Promise.<Object>}</span>
</h4>
<div class="tag-source">
service/igs/ResourceServer.js, line 1619
</div>
</div>
</dt>
<dd>
<div class="description">
<p>上传文件资源</p>
</div>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last">
<p>查询参数</p>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<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">
<span class="optional"> 可选</span>
<p>请求头参数</p></td>
</tr>
<tr>
<td class="name"><code>method</code></td>
<td class="type">
<span class="param-type"><a href="FetchMethod.html">FetchMethod</a></span>
</td>
<td class="default">
<a href="FetchMethod.html#.post">FetchMethod.post</a>
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>请求方法</p></td>
</tr>
<tr>
<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">
<span class="optional"> 可选</span>
<p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<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">
<span class="optional"> 可选</span>
<p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr>
<td class="name"><code>files</code></td>
<td class="type">
<span class="param-type">Array.<File></span>
</td>
<td class="default">
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>文件数组</p></td>
</tr>
<tr>
<td class="name"><code>unZip</code></td>
<td class="type">
<span class="param-type">Boolean</span>
</td>
<td class="default">
false
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>上传文件为zip格式时,是否解压文件,默认为false</p></td>
</tr>
<tr>
<td class="name"><code>uploadDir</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="default">
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>上传的目标文件夹,支持相对路径或绝对路径,注意绝对路径只能是igserver安装目录或配置的上传目录的子目录</p></td>
</tr>
<tr>
<td class="name"><code>saveUploadHistory</code></td>
<td class="type">
<span class="param-type">Boolean</span>
</td>
<td class="default">
true
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>是否记录上传的文件记录,默认是</p></td>
</tr>
<tr>
<td class="name"><code>renameIfExist</code></td>
<td class="type">
<span class="param-type">Boolean</span>
</td>
<td class="default">
true
</td>
<td class="description last">
<span class="optional"> 可选</span>
<p>如果文件存在时,是否重命名,默认是</p></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<dl class="details">
</dl>
<h5>Returns:</h5>
<table class="params">
<thead>
<tr>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="type">
Promise.<Object>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<h5>Example</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",
});
resoureServer
.uploadFiles({
// 文件对象file,格式为File
files:[file] ,
})
.then((res) => {
console.log("res: ", res);
});</code></pre>
</dd>
</dl>
</article>
</section>
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> on Fri Feb 06 2026 10:41:58 GMT+0800 (中国标准时间)
</footer>
</div>
</div>
<script>prettyPrint();</script>
<script src="scripts/linenumber.js"></script>
<script src="scripts/main.js"></script>
</body>
</html>