@mapgis/webclient-leaflet-plugin
Version:
21,684 lines • 355 kB
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title> ResourceServer</title>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/app.min.css">
<link type="text/css" rel="stylesheet" href="styles/iframe.css">
<link type="text/css" rel="stylesheet" href="">
</head>
<body class="layout small-header">
<div id="stickyNavbarOverlay"></div>
<div class="top-nav">
<div class="inner">
<a id="hamburger" role="button" class="navbar-burger" aria-label="menu" aria-expanded="false">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
<div class="logo">
<h1> MapGIS Client for JavaScript API</h1>
</div>
<div class="menu">
<div class="navigation">
<a
class="link user-link "
href="/docs/cesium/index.html"
>
Cesium
</a>
<a
class="link user-link "
href="/docs/mapboxgl/index.html"
>
MapboxGL
</a>
<a
class="link user-link "
href="/docs/leaflet/index.html"
>
Leaflet
</a>
<a
class="link user-link "
href="/docs/openlayers/index.html"
>
OpenLayers
</a>
</div>
</div>
</div>
</div>
<div id="main">
<div
class="sidebar "
id="sidebarNav"
>
<div>
<span class="mapgis-api-document-span"><a href="index.html">API文档</a></span>
</div>
<div class="search-wrapper">
<input id="search" type="text" placeholder="搜索文档..." class="input">
</div>
<nav>
<div class="category"><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">服务模块</div><ul class="mapgis-sidebar-menus"><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="AddressServer.html">AddressServer</a><span style="display: none;"><p>地址服务,基地址:/igs/rest/services/{folder}/{serviceName}/AddressServer</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ArcGISFeatureServer.html">ArcGISFeatureServer</a><span style="display: none;"><p>ArcGIS的FeatureServer服务</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ArcGISGeometryServer.html">ArcGISGeometryServer</a><span style="display: none;"><p>ArcGIS的GeometryServer服务</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ArcGISMapServer.html">ArcGISMapServer</a><span style="display: none;"><p>ArcGIS的MapServer服务</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ArcGISVectorTileServer.html">ArcGISVectorTileServer</a><span style="display: none;"><p>ArcGIS的VectorTileServer服务</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="BaseServer.html">BaseServer</a><span style="display: none;"><p>服务查询基类</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Cesium3DTilesServer.html">Cesium3DTilesServer</a><span style="display: none;"><p>3DTiles服务,基地址:/igs/rest/services/{folder}/{serviceName}/3DTilesServer</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Config.html">Config</a><span style="display: none;"><p>全局配置信息<br/>
示例如下:<br/>
<a href='#config1'>[1、设置全局token]</a><br/>
<a href='#config2'>[2、设置全局headers]</a><br/>
<a href='#config3'>[3、设置拦截器 - 在所有链接上设置拦截器]</a><br/>
<a href='#config4'>[4、设置拦截器 - 指定拦截器应用的url]</a><br/></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="FeatureServer.html">FeatureServer</a><span style="display: none;"><p>要素服务</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="GeometryServer.html">GeometryServer</a><span style="display: none;"><p>地理几何服务</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ImageServer.html">ImageServer</a><span style="display: none;"><p>影像服务,服务地址:/igs/rest/services/{folder}/{serviceName}/ImageServer</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Interceptor.html">Interceptor</a><span style="display: none;"><p>请求拦截和相应拦截器参数</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="M3DServer.html">M3DServer</a><span style="display: none;"><p>M3d服务,服务地址:/igs/rest/services/{folder}/{serviceName}/M3dServer</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapServer.html">MapServer</a><span style="display: none;"><p>地图服务</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="PlotServer.html">PlotServer</a><span style="display: none;"><p>标绘服务</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="PoiServer.html">PoiServer</a><span style="display: none;"><p>兴趣点服务,服务地址:/igs/rest/services/{folder}/{serviceName}/PoiServer</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="RequestConfig.html">RequestConfig</a><span style="display: none;"><p>请求配置参数</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="RequestInterceptor.html">RequestInterceptor</a><span style="display: none;"><p>请求拦截器对象</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ResourceServer.html">ResourceServer</a><span style="display: none;"><p>资源服务,基地址为http://{ip}:{port}/igs/rest/services/system/ResourceServer</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ResponseInterceptor.html">ResponseInterceptor</a><span style="display: none;"><p>响应拦截器对象</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="RootServer.html">RootServer</a><span style="display: none;"><p>根目录服务</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SceneServer.html">SceneServer</a><span style="display: none;"><p>场景服务</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SecurityServer.html">SecurityServer</a><span style="display: none;"><p>安全服务,服务地址:/igs/rest/services/SecurityServer</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="TerrainServer.html">TerrainServer</a><span style="display: none;"><p>地形缓存服务,基地址:/igs/rest/services/{folder}/{serviceName}/TerrainServer</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ThemeServer.html">ThemeServer</a><span style="display: none;"><p>专题图服务</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="TileServer.html">TileServer</a><span style="display: none;"><p>瓦片服务,基地址:/igs/rest/services/{folder}/{serviceName}/TileServer</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="VectorTileServer.html">VectorTileServer</a><span style="display: none;"><p>矢量瓦片服务</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="WFSServer.html">WFSServer</a><span style="display: none;"><p>IGS的WFS服务</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="WMSServer.html">WMSServer</a><span style="display: none;"><p>IGS的WMS服务</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="WMTSServer.html">WMTSServer</a><span style="display: none;"><p>IGS的WMTS服务</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="WorkFlowServer.html">WorkFlowServer</a><span style="display: none;"><p>工作流服务,基地址http://{ip}:{port}/igs/rest/services/workflow/{serviceName}/WorkflowServer</p></span></li></ul><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">图层模块</div><ul class="mapgis-sidebar-menus"><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ArcGISMapImageLayer.html">ArcGISMapImageLayer</a><span style="display: none;"><p>ArcGIS地图图片图层,<br/>
目前二维上支持4326(包括4490,4214以及4610),3857以及EPSG支持的自定义坐标系,三维上仅支持4326(包括4490,4214以及4610)以及3857坐标系,会自动读取元信息上的坐标系,不需要用户指定
<br><br>[ES5引入方式]:<br/>
Zondy.Layer.ArcGISMapImageLayer() <br/>
[ES6引入方式]:<br/>
import { ArcGISMapImageLayer } from "@mapgis/webclient-common" <br/>
<br/>
针对图层的操作请在图层加载完毕事件中进行<br/>
Layer.on('layerview-created', function (result) {<br/>
console.log("加载完毕:", result.layer)<br/>
});<br/>
如果不想在该事件中放入业务代码,则请确认图层资源已加载完毕后再进行操作<br/>
if(layer.loadStatus === 'loaded') {<br/>
// 你的业务逻辑<br/>
}</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ArcGISMapImageSubLayer.html">ArcGISMapImageSubLayer</a><span style="display: none;"><p>ArcGIS地图图片子图层</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ArcGISTileLayer.html">ArcGISTileLayer</a><span style="display: none;"><p>ArcGIS瓦片图层,<br>
目前二维上支持4326(包括4490,4214以及4610),3857以及EPSG支持的自定义坐标系,三维上仅支持4326(包括4490,4214以及4610)以及3857坐标系,会自动读取元信息上的坐标系,不需要用户指定,
<br><br>[ES5引入方式]:<br/>
Zondy.Layer.ArcGISTileLayer() <br/>
[ES6引入方式]:<br/>
import { ArcGISTileLayer } from "@mapgis/webclient-common" <br/>
<br/>
针对图层的操作请在图层加载完毕事件中进行<br/>
Layer.on('layerview-created', function (result) {<br/>
console.log("加载完毕:", result.layer)<br/>
});<br/>
如果不想在该事件中放入业务代码,则请确认图层资源已加载完毕后再进行操作<br/>
if(layer.loadStatus === 'loaded') {<br/>
// 你的业务逻辑<br/>
}</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ArcGISVectorTileLayer.html">ArcGISVectorTileLayer</a><span style="display: none;"><p>ArcGIS矢量瓦片图层
支持通过加载矢量瓦片服务、加载矢量瓦片样式文件和设置矢量瓦片样式的方式创建矢量瓦片图层
<br><br>[ES5引入方式]:<br/>
Zondy.Layer.ArcGISVectorTileLayer() <br/>
[ES6引入方式]:<br/>
import { ArcGISVectorTileLayer } from "@mapgis/webclient-common" <br/>
<br/>
针对图层的操作请在图层加载完毕事件中进行<br/>
Layer.on('layerview-created', function (result) {<br/>
console.log("加载完毕:", result.layer)<br/>
});<br/>
如果不想在该事件中放入业务代码,则请确认图层资源以加载完毕后再进行操作<br/>
if(layer.loadStatus === 'loaded') {<br/>
// 你的业务逻辑<br/>
}
<br/></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ArcGISVectorTileSubLayer.html">ArcGISVectorTileSubLayer</a><span style="display: none;"><p>ArcGIS矢量瓦片子图层</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Cesium3DTilesCacheLayer.html">Cesium3DTilesCacheLayer</a><span style="display: none;"><p>Cesium3DTiles图层</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="EchartsLayer.html">EchartsLayer</a><span style="display: none;"><p>Echarts图层</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="FeatureLayer.html">FeatureLayer</a><span style="display: none;"><p>要素图层基类</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="GeoJSONLayer.html">GeoJSONLayer</a><span style="display: none;"><p>geojson图层,仅支持文件服务<br/>
目前二维和三维上支持4326(包括4490,4214以及4610),3857以及EPSG支持的自定义坐标系,若是想要绘制源数据为非4326坐标系几何数据,需要在初始化时指定具体坐标系<br/>
参考示例:<br/>
<a href='#add-GeoJSONLayer'>[加载GeoJSON图层]</a>
<br><br>[ES5引入方式]:<br/>
Zondy.Layer.GraphicsLayer() <br/>
[ES6引入方式]:<br/>
import { GraphicsLayer } from "@mapgis/webclient-common"</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="GraphicsLayer.html">GraphicsLayer</a><span style="display: none;"><p>几何图形图层,不支持在线数据,仅支持传入多个几何对象并绘制<br/>
目前二维和三维上支持4326(包括4490,4214以及4610),3857以及EPSG支持的自定义坐标系,若是想要绘制非4326坐标系几何,需要在初始化要素对象的几何时,指定具体坐标系
<br><br>[ES5引入方式]:<br/>
Zondy.Layer.GraphicsLayer() <br/>
[ES6引入方式]:<br/>
import { GraphicsLayer } from "@mapgis/webclient-common" <br/>
<br/>
针对图层的操作请在图层加载完毕事件中进行<br/>
Layer.on('layerview-created', function (result) {<br/>
console.log("加载完毕:", result.layer)<br/>
});<br/>
如果不想在该事件中放入业务代码,则请确认图层资源已加载完毕后再进行操作<br/>
if(layer.loadStatus === 'loaded') {<br/>
// 你的业务逻辑<br/>
}</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="GroupLayer.html">GroupLayer</a><span style="display: none;"><p>组图层,支持的图层类型有:WMS图层、WMTS图层、地图图层、瓦片图层、cesium3DTiles图层、echarts图层、
M3D图层、场景图层、矢量瓦片图层、mapv图层、地形图层
<br><br>[ES5引入方式]:<br/>
Zondy.Layer.GroupLayer() <br/>
[ES6引入方式]:<br/>
import { GroupLayer } from "@mapgis/webclient-common" <br/>
<br/></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="IGSFeatureLayer.html">IGSFeatureLayer</a><span style="display: none;"><p>IGS要素图层,<br>
目前二维和三维上支持4326(包括4490,4214以及4610),3857以及EPSG支持的自定义坐标系,要素服务会自动读取元信息上的坐标系,不需要用户指定
<br><br>[ES5引入方式]:<br/>
Zondy.Layer.IGSFeatureLayer() <br/>
[ES6引入方式]:<br/>
import { IGSFeatureLayer } from "@mapgis/webclient-common" <br/>
<br/>
针对图层的操作请在图层加载完毕事件中进行<br/>
Layer.on('layerview-created', function (result) {<br/>
console.log("加载完毕:", result.layer)<br/>
});<br/>
如果不想在该事件中放入业务代码,则请确认图层资源已加载完毕后再进行操作<br/>
if(layer.loadStatus === 'loaded') {<br/>
// 你的业务逻辑<br/>
}</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="IGSImageLayer.html">IGSImageLayer</a><span style="display: none;"><p>IGS影像图层</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="IGSMapImageLayer.html">IGSMapImageLayer</a><span style="display: none;"><p>IGS地图图片图层,<br/>
支持IGS1.0和2.0两个服务版本,支持自定义坐标系,当IGS版本是1.0时,需要手动设置图层坐标系,当IGS版本是2.0时,会自动读取元信息上的坐标系,不需要用户指定<br/>
<br><br>[ES5引入方式]:<br/>
Zondy.Layer.IGSMapImageLayer() <br/>
[ES6引入方式]:<br/>
import { IGSMapImageLayer } from "@mapgis/webclient-common" <br/>
<br/>
针对图层的操作请在图层加载完毕事件中进行<br/>
Layer.on('layerview-created', function (result) {<br/>
console.log("加载完毕:", result.layer)<br/>
});<br/>
如果不想在该事件中放入业务代码,则请确认图层资源已加载完毕后再进行操作<br/>
if(layer.loadStatus === 'loaded') {<br/>
// 你的业务逻辑<br/>
}</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="IGSMapImageSubLayer.html">IGSMapImageSubLayer</a><span style="display: none;"><p>IGS地图图片图层的子图层</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="IGSSceneLayer.html">IGSSceneLayer</a><span style="display: none;"><p>IGS的SceneLayer图层</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="IGSSceneSubLayer.html">IGSSceneSubLayer</a><span style="display: none;"><p>IGS的SceneLayer子图层</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="IGSTileLayer.html">IGSTileLayer</a><span style="display: none;"><p>IGS瓦片图层,<br>
支持IGS1.0和2.0两个服务版本,支持自定义坐标系,当IGS版本是1.0时,需要手动设置图层坐标系,当IGS版本是2.0时,会自动读取元信息上的坐标系,不需要用户指定,
<br><br>[ES5引入方式]:<br/>
Zondy.Layer.IGSTileLayer() <br/>
[ES6引入方式]:<br/>
import { IGSTileLayer } from "@mapgis/webclient-common" <br/>
<br/>
针对图层的操作请在图层加载完毕事件中进行<br/>
Layer.on('layerview-created', function (result) {<br/>
console.log("加载完毕:", result.layer)<br/>
});<br/>
如果不想在该事件中放入业务代码,则请确认图层资源已加载完毕后再进行操作<br/>
if(layer.loadStatus === 'loaded') {<br/>
// 你的业务逻辑<br/>
}</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="IGSVectorTileLayer.html">IGSVectorTileLayer</a><span style="display: none;"><p>IGS矢量瓦片图层
支持IGS1.0和2.0两个服务版本,目前二维和三维上支持4326(包括4490,4214以及4610),3857,会自动读取元信息上的坐标系,不需要用户指定,
<br><br>[ES5引入方式]:<br/>
Zondy.Layer.IGSVectorTileLayer() <br/>
[ES6引入方式]:<br/>
import { IGSVectorTileLayer } from "@mapgis/webclient-common" <br/>
<br/>
针对图层的操作请在图层加载完毕事件中进行<br/>
Layer.on('layerview-created', function (result) {<br/>
console.log("加载完毕:", result.layer)<br/>
});<br/>
如果不想在该事件中放入业务代码,则请确认图层资源以加载完毕后再进行操作<br/>
if(layer.loadStatus === 'loaded') {<br/>
// 你的业务逻辑<br/>
}
<br/>
<br/>
注意:三维上,不支持简单Marker样式设定;二维上,简单Marker的颜色,外边线样式,旋转角度无法在图层初始化和初始化后修改,须在制作数据时进行指定</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="IGSVectorTileSubLayer.html">IGSVectorTileSubLayer</a><span style="display: none;"><p>IGS矢量瓦片子图层</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Layer.html">Layer</a><span style="display: none;"><p>图层基类</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="M3DModelCacheLayer.html">M3DModelCacheLayer</a><span style="display: none;"><p>M3D缓存图层</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapImageLayer.html">MapImageLayer</a><span style="display: none;"><p>影像图层基类</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapVLayer.html">MapVLayer</a><span style="display: none;"><p>MapV图层</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="OGCLayer.html">OGCLayer</a><span style="display: none;"><p>OGS图层基类</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="OverlayLayer.html">OverlayLayer</a><span style="display: none;"><p>覆盖物图层</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Scene.html">Scene</a><span style="display: none;"><p>场景对象</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SceneLayer.html">SceneLayer</a><span style="display: none;"><p>场景图层基类</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SubLayer.html">SubLayer</a><span style="display: none;"><p>子图层基类</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="TerrainCacheLayer.html">TerrainCacheLayer</a><span style="display: none;"><p>地形图层</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="TileLayer.html">TileLayer</a><span style="display: none;"><p>瓦片图层基类</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="UnknownLayer.html">UnknownLayer</a><span style="display: none;"><p>未定义图层</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="VectorTileLayer.html">VectorTileLayer</a><span style="display: none;"><p>图层基类</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="WFSLayer.html">WFSLayer</a><span style="display: none;"><p>WFS图层,<br>
目前二维和三维上支持4326(包括4490,4214以及4610),3857以及EPSG支持的自定义坐标系,WFS服务会自动读取元信息上的坐标系,不需要用户指定
<br><br>[ES5引入方式]:<br/>
Zondy.Layer.WMTSLayer() <br/>
[ES6引入方式]:<br/>
import { WMTSLayer } from "@mapgis/webclient-common" <br/>
<br/>
针对图层的操作请在图层加载完毕事件中进行<br/>
Layer.on('layerview-created', function (result) {<br/>
console.log("加载完毕:", result.layer)<br/>
});<br/>
如果不想在该事件中放入业务代码,则请确认图层资源已加载完毕后再进行操作<br/>
if(layer.loadStatus === 'loaded') {<br/>
// 你的业务逻辑<br/>
}</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="WMSLayer.html">WMSLayer</a><span style="display: none;"><p>WMS图层,<br/>
目前二维上支持4326(包括4490,4214以及4610),3857以及EPSG支持的自定义坐标系,三维上仅支持4326(包括4490,4214以及4610)以及3857坐标系,会自动读取元信息上的坐标系,不需要用户指定,同时所有的WMS服务都支持动态投影,用户也可指定任意该服务支持的坐标系<br/>
<br>[ES5引入方式]:<br/>
Zondy.Layer.WMSLayer() <br/>
[ES6引入方式]:<br/>
import { WMSLayer } from "@mapgis/webclient-common" <br/>
<br/>
针对图层的操作请在图层加载完毕事件中进行<br/>
Layer.on('layerview-created', function (result) {<br/>
console.log("加载完毕:", result.layer)<br/>
});<br/>
如果不想在该事件中放入业务代码,则请确认图层资源已加载完毕后再进行操作<br/>
if(layer.loadStatus === 'loaded') {<br/>
// 你的业务逻辑<br/>
}</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="WMSSubLayer.html">WMSSubLayer</a><span style="display: none;"><p>WMS子图层</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="WMTSLayer.html">WMTSLayer</a><span style="display: none;"><p>WMTS图层,<br>
目前二维上支持4326(包括4490,4214以及4610),3857以及EPSG支持的自定义坐标系,三维上仅支持4326(包括4490,4214以及4610)以及3857坐标系,WMTS服务会自动读取元信息上的坐标系,不需要用户指定
<br><br>[ES5引入方式]:<br/>
Zondy.Layer.WMTSLayer() <br/>
[ES6引入方式]:<br/>
import { WMTSLayer } from "@mapgis/webclient-common" <br/>
<br/>
针对图层的操作请在图层加载完毕事件中进行<br/>
Layer.on('layerview-created', function (result) {<br/>
console.log("加载完毕:", result.layer)<br/>
});<br/>
如果不想在该事件中放入业务代码,则请确认图层资源已加载完毕后再进行操作<br/>
if(layer.loadStatus === 'loaded') {<br/>
// 你的业务逻辑<br/>
}</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="WMTSSubLayer.html">WMTSSubLayer</a><span style="display: none;"><p>IGS地图服务图层</p></span></li></ul><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">地图模块</div><ul class="mapgis-sidebar-menus"><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Basemap.html">Basemap</a><span style="display: none;"><p>基础地图对象
<br>[ES5引入方式]:<br/>
Zondy.Basemap() <br/>
[ES6引入方式]:<br/>
import { Map } from "@mapgis/webclient-common" <br/></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Map.html">Map</a><span style="display: none;"><p>图层管理容器,和地图引擎无关,通过此对象而不是地图引擎来对图层进行管理
<br>[ES5引入方式]:<br/>
Zondy.Map() <br/>
[ES6引入方式]:<br/>
import { Map } from "@mapgis/webclient-common" <br/></p></span></li></ul><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">渲染器模块</div><ul class="mapgis-sidebar-menus"><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="BaseRenderer.html">BaseRenderer</a><span style="display: none;"><p>专题图渲染基类</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ClassBreakInfo.html">ClassBreakInfo</a><span style="display: none;"><p>三维专题图-分段信息</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ClassBreakRenderer.html">ClassBreakRenderer</a><span style="display: none;"><p>分段专题图渲染样式,支持的图层如下:<br/>
<a href="IGSMapImageLayer.html"><code>IGS地图图片图层</code></a>、<a href="GraphicsLayer.html"><code>几何图形图层</code></a>、<a href="IGSFeatureLayer.html"><code>IGS要素图层</code></a>、
<a href="GeoJSONLayer.html"><code>geojson图层</code></a>、<a href="WFSLayer.html"><code>OGC-WFS图层</code></a></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ClusterInfo.html">ClusterInfo</a><span style="display: none;"><p>聚合点数量区间内的符号信息</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ClusterRenderer.html">ClusterRenderer</a><span style="display: none;"><p>聚类渲染器,多个点聚集在一起,会形成一个点符号</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ColorStop.html">ColorStop</a><span style="display: none;"><p>颜色分段</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ColorVariable.html">ColorVariable</a><span style="display: none;"><p>color视觉变量</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="HeatmapColorStop.html">HeatmapColorStop</a><span style="display: none;"><p>热力图分段颜色和比率</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="HeatmapRenderer.html">HeatmapRenderer</a><span style="display: none;"><p>热力图渲染器</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="OpacityStop.html">OpacityStop</a><span style="display: none;"><p>透明度分段</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="OpacityVariable.html">OpacityVariable</a><span style="display: none;"><p>opacity视觉变量</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="RandomRenderer.html">RandomRenderer</a><span style="display: none;"><p>随机渲染器,将随机颜色赋予要素,根据zoom等级颜色也将发生变化</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="RankRenderer.html">RankRenderer</a><span style="display: none;"><p>等级符号专题图,符号尺寸随指定字段的值的变化而变化</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SimpleRenderer.html">SimpleRenderer</a><span style="display: none;"><p>统一专题图渲染样式,支持的图层如下:<br/>
<a href="GraphicsLayer.html"><code>几何图形图层</code></a>、<a href="IGSFeatureLayer.html"><code>IGS要素图层</code></a>、
<a href="GeoJSONLayer.html"><code>geojson图层</code></a>、<a href="WFSLayer.html"><code>OGC-WFS图层</code></a></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SizeStop.html">SizeStop</a><span style="display: none;"><p>size视觉变量</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SizeVariable.html">SizeVariable</a><span style="display: none;"><p>size视觉变量</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="UniqueValueInfo.html">UniqueValueInfo</a><span style="display: none;"><p>三维专题图-单值信息</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="UniqueValueRenderer.html">UniqueValueRenderer</a><span style="display: none;"><p>单值专题图渲染样式,支持的图层如下:<br/>
<a href="IGSMapImageLayer.html"><code>IGS地图图片图层</code></a>、<a href="GraphicsLayer.html"><code>几何图形图层</code></a>、<a href="IGSFeatureLayer.html"><code>IGS要素图层</code></a>、
<a href="GeoJSONLayer.html"><code>geojson图层</code></a>、<a href="WFSLayer.html"><code>OGC-WFS图层</code></a></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="VisualVariable.html">VisualVariable</a><span style="display: none;"><p>视觉变量基类</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Zondy.ThemeLayer.GraphThemeLayer.html">GraphThemeLayer</a><span style="display: none;"><p>统计专题图通过为每个要素绘制统计图表来反映其对应的专题值的大小。它可同时表示多个字段属性信息,在区域本身与各区域之间形成横向和纵向的对比。<br>统计专题图多用于具有相关数量特征的地图上,比如表示不同地区多年的粮食产量、GDP、人口等,不同时段客运量、地铁流量等。目前提供的统计图类型有:柱状图(Bar),折线图(Line),饼图(Pie),三维柱状图(Bar3D),点状图(Point),环状图(Ring)。</p></span></li></ul><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">视图模块</div><ul class="mapgis-sidebar-menus"><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="BaseView.html">BaseView</a><span style="display: none;"><p>视图类</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapView.html">MapView</a><span style="display: none;"><p>二维场景视图(leaflet引擎),对地图引擎进行管理,如果要对地图图层进行管理请参考<a href="Map.html"><code>Map</code></a>,<br/>
参考示例:
<a href='#MapView'>[初始化二维场景视图]</a>
<br>[ES5引入方式]:<br/>
Zondy.MapView() <br/>
[ES6引入方式]:<br/>
import { MapView } from '@mapgis/webclient-leaflet-plugin' <br/></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="VideoMapView.html">VideoMapView</a><span style="display: none;">undefined</span></li></ul><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">符号模块</div><ul class="mapgis-sidebar-menus"><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Callout3D.html">Callout3D</a><span style="display: none;"><p>三维索引样式基类,当一个符号相对于原始位置有偏移时,该符号能显示其真实位置</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ColorMaterial.html">ColorMaterial</a><span style="display: none;"><p>颜色材质,适用于所有三维符号</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Edges3D.html">Edges3D</a><span style="display: none;"><p>轮廓线样式</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ExtrudeSymbol3DLayer.html">ExtrudeSymbol3DLayer</a><span style="display: none;"><p>三维拉伸区符号图层,用来在三维场景中绘制拉伸的区几何,不支持二维地图视图<br/>
示例如下:<br/>
<a href='#ExtrudeSymbol3DLayer'>[1、创建三维拉伸区符号图层]</a><br/></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="FillSymbol.html">FillSymbol</a><span style="display: none;"><p>填充符号基类</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="FillSymbol3DLayer.html">FillSymbol3DLayer</a><span style="display: none;"><p>三维区符号图层,用于在三维场景中绘制平面区对象,不支持二维视图<br/>
示例如下:<br/>
<a href='#FillSymbol3DLayer'>[1、创建三维区符号图层]</a><br/></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="FillSymbol3DOutline.html">FillSymbol3DOutline</a><span style="display: none;"><p>三维区符号图层的外边线样式</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="IconResource.html">IconResource</a><span style="display: none;"><p>图标资源,如果没有设置href,则使用系统自带的图标</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="IconSymbol3DLayer.html">IconSymbol3DLayer</a><span style="display: none;"><p>三维图标符号图层,用来在三维场景中绘制图标,不支持二维地图视图<br/>
支持使用网络图片资源或者使用系统自带的图标资源<br/>
是一个始终朝向屏幕,并且立起来的图标<br/>
示例如下:<br/>
<a href='#IconSymbol3DLayer-href'>[1、使用网络资源创建一个三维图标图层对象]</a><br/>
<a href='#IconSymbol3DLayer-primitive'>[2、使用系统自带资源创建一个三维图标图层对象]</a><br/></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="LabelSymbol3D.html">LabelSymbol3D</a><span style="display: none;"><p>三维注记符号,用于在三维场景中渲染线几何要素,不支持在二维视图中使用;<br/>
三维注记符号必须包含如下符号图层中的一个或多个,才能在三维场景中显示要素:<br/>
<a href="TextSymbol3DLayer.html"><code>三维文字符号图层</code></a><br/>
示例如下:<br/>
<a href='#LabelSymbol3D'>[1、创建一个三维注记符号对象]</a><br/></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="LineCallout3D.html">LineCallout3D</a><span style="display: none;"><p>注记索引线样式,该线会链接注记和所属要素,当一个符号相对于原始位置有偏移时,该符号能显示其真实位置</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="LineStyleMarker3D.html">LineStyleMarker3D</a><span style="display: none;"><p>设置线的端点的Marker的样式</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="LineStylePattern3D.html">LineStylePattern3D</a><span style="display: none;"><p>三维虚线样式设置</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="LineSymbol.html">LineSymbol</a><span style="display: none;"><p>线符号基类</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="LineSymbol3D.html">LineSymbol3D</a><span style="display: none;"><p>三维线符号,用于在三维场景中渲染线几何要素,不支持在二维视图中使用;<br/>
三维线符号必须包含如下符号图层中的一个或多个,才能在三维场景中显示要素:<br/>
<a href="LineSymbol3DLayer.html"><code>三维线符号图层</code></a>、<a href="PathSymbol3DLayer.html"><code>三维管道符号图层</code></a><br/>
示例如下:<br/>
<a href='#LineSymbol3D'>[1、创建线三维符号]</a><br/></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="LineSymbol3DLayer.html">LineSymbol3DLayer</a><span style="display: none;"><p>三维线符号图层,用来在三维场景中绘制二维线,不支持二维地图视图<br/>
示例如下:<br/>
<a href='#LineSymbol3DLayer'>[1、创建三维线符号图层]</a><br/></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="LineSymbolMarker.html">LineSymbolMarker</a><span style="display: none;"><p>标记符号</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapGISTextSymbol.html">MapGISTextSymbol</a><span style="display: none;"><p>文本符号,支持点几何对象,参考示例:<a href='#new-MapGISTextSymbol'>[创建文本样式]</a>
<br><br>[ES5引入方式]:<br/>
Zondy.Symbol.MapGISTextSymbol() <br/>
[ES6引入方式]:<br/>
import { MapGISTextSymbol } from "@mapgis/webclient-common" <br/>
<br/></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MarkerSymbol.html">MarkerSymbol</a><span style="display: none;"><p>Marker符号基类</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="ObjectSymbol3DLayer.html">ObjectSymbol3DLayer</a><span style="display: none;"><p>三维体对象符号图层,使用三维体符号来绘制一个点几何要素<br/>
通过设置resource的primitive属性来设置符号形状,支持如下形状:<br/>
sphere、cylinder、cube、cone、inverted-cone、diamond、tetrahedron<br/>
也可通过设置resource中的href属性,来加载gltf数据<br/>
同时通过设置material属性来设置符号的外观<br/>
示例如下:<br/>
<a href='#ObjectSymbol3DLayer-href'>[1、使用网络资源创建一个三维体对象符号图层对象]</a><br/>
<a href='#ObjectSymbol3DLayer-primitive'>[2、使用系统自带资源创建一个三维体对象符号图层对象]</a><br/></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="PathSymbol3DLayer.html">PathSymbol3DLayer</a><span style="display: none;"><p>三维管道符号图层,定义如何在三维场景视图中绘制一个管道线<br/>
示例如下:<br/>
<a href='#PathSymbol3DLayer'>[1、创建三维管道符号图层]</a><br/></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="PictureFillSymbol.html">PictureFillSymbol</a><span style="display: none;"><p>图片填充符号</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="PictureMarkerSymbol.html">PictureMarkerSymbol</a><span style="display: none;"><p>图片Marker符号,支持点几何对象,参考示例:<a href='#new-PictureMarkerSymbol'>[图片Marker样式]</a>
<br><br>[ES5引入方式]:<br/>
Zondy.Symbol.PictureMarkerSymbol() <br/>
[ES6引入方式]:<br/>
import { PictureMarkerSymbol } from "@mapgis/webclient-common" <br/>
<br/></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="PointSymbol3D.html">PointSymbol3D</a><span style="display: none;"><p>三维点符号,在三维场景中渲染点几何要素,不支持二维视图;<br/>
三维点符号必须包含如下符号图层中的一个或多个,才能在三维场景中显示要素:<br/>
<a href="IconSymbol3DLayer.html"><code>三维图标符号图层</code></a>、<a href="ObjectSymbol3DLayer.html"><code>三维对象符号图层</code></a>、<a href="TextSymbol3DLayer.html"><code>三维文字符号图层</code></a><br/>
示例如下:<br/>
<a href='#PointSymbol3D'>[1、创建一个三维点符号对象]</a><br/></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="PointSymbol3DOutline.html">PointSymbol3DOutline</a><span style="display: none;"><p>三维点符号图层的外边线样式</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="PolygonSymbol3D.html">PolygonSymbol3D</a><span style="display: none;"><p>三维体符号,用于在三维场景视图中渲染几何要素,不支持二维视图<br/>
三维体符号必须包含如下符号图层中的一个或多个,才能在三维场景中显示要素:<br/>
<a href="FillSymbol3DLayer.html"><code>三维区符号图层</code></a>、<a href="ExtrudeSymbol3DLayer.html"><code>三维拉伸区符号图层</code></a>、<a href="LineSymbol3DLayer.html"><code>三维线符号图层</code></a>、<a href="IconSymbol3DLayer.html"><code>三维图标符号图层</code></a>、<a href="ObjectSymbol3DLayer.html"><code>三维体对象符号图层</code></a>、<a href="TextSymbol3DLayer.html"><code>三维注记符号图层</code></a><br/>
示例如下:<br/>
<a href='#PolygonSymbol3D'>[1、创建一个三维体符号对象]</a><br/></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SimpleFillSymbol.html">SimpleFillSymbol</a><span style="display: none;"><p>简单填充符号,参考示例:<a href='#new-SimpleFillSymbol'>[填充符号样式]</a>
<br><br>[ES5引入方式]:<br/>
Zondy.Symbol.SimpleFillSymbol() <br/>
[ES6引入方式]:<br/>
import { SimpleFillSymbol } from "@mapgis/webclient-common" <br/>
<br/></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SimpleLineSymbol.html">SimpleLineSymbol</a><span style="display: none;"><p>简单线符号,支持线几何对象,参考示例:<a href='#new-SimpleLineSymbol'>[线符号样式]</a>
<br><br>[ES5引入方式]:<br/>
Zondy.Symbol.SimpleLineSymbol() <br/>
[ES6引入方式]:<br/>
import { SimpleLineSymbol } from "@mapgis/webclient-common" <br/>
<br/></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SimpleMarkerSymbol.html">SimpleMarkerSymbol</a><span style="display: none;"><p>简单Marker符号,支持点几何对象,参考示例:<a href='#new-SimpleMarkerSymbol'>[简单Marker样式]</a>
<br><br>[ES5引入方式]:<br/>
Zondy.Symbol.SimpleMarkerSymbol() <br/>
[ES6引入方式]:<br/>
import { SimpleMarkerSymbol } from "@mapgis/webclient-common" <br/>
<br/></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="StylePattern3D.html">StylePattern3D</a><span style="display: none;"><p>三维区间隔填充样式设置</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Symbol.html">Symbol</a><span style="display: none;"><p>符号基类</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Symbol3DLayer.html">Symbol3DLayer</a><span style="display: none;"><p>三维符号图层基类,用来定义在三维中展示的点、线、区几何以及gltf的样式<br/>
所有的三维符号都有一个symbolLayers属性,是一个Symbol3DLayer的集合对象,所有的符号必须至少拥有一个或多个三维符号图层,才能进行正常显示<br/>
现有如下类型的三维符号图层:<br/>
IconSymbol3DLayer、ObjectSymbol3DLayer、LineSymbol3DLayer、PathSymbol3DLayer、FillSymbol3DLayer、WaterSymbol3DLayer、ExtrudeSymbol3DLayer、TextSymbol3DLayer<br/></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Symbol3DVerticalOffset.html">Symbol3DVerticalOffset</a><span style="display: none;"><p>符号垂直偏移量,将一个符号在竖直世界轴的方向上进行平移</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="TextHalo.html">TextHalo</a><span style="display: none;"><p>文字光晕样式</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="TextSymbol.html">TextSymbol</a><span style="display: none;"><p>文本符号,支持点几何对象,参考示例:<a href='#new-TextSymbol'>[创建文本样式]</a>
<br><br>[ES5引入方式]:<br/>
Zondy.Symbol.TextSymbol() <br/>
[ES6引入方式]:<br/>
import { TextSymbol } from "@mapgis/webclient-common" <br/>
<br/></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="TextSymbol3DLayer.html">TextSymbol3DLayer</a><span style="display: none;"><p>三维注记符号图层,定义如何在三维场景中显示文字,不支持二维视图<br/>
示例如下:<br/>
<a href='#TextSymbol3DLayer'>[1、创建一个三维注记符号图层对象]</a><br/></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="WaterSymbol3DLayer.html">WaterSymbol3DLayer</a><span style="display: none;"><p>水面符号图层,定义如何在三维场景中沟构造水面几何,不支持二维视图</p></span></li></ul><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">几何模块</div><ul class="mapgis-sidebar-menus"><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Circle.html">Circle</a><span style="display: none;"><p>几何圆,参考示例:<a href='#Circle'>[几何圆对象]</a>
<br><br>[ES5引入方式]:<br/>
Zondy.Geometry.Circle() <br/>
[ES6引入方式]:<br/>
import { Circle } from "@mapgis/webclient-common" <br/>
<br/></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Extent.html">Extent</a><span style="display: none;"><p>几何范围对象,即左下角和右上角组成的矩形范围几何对象,参考示例:<a href='#Extent'>[几何范围对象]</a>
<br><br>[ES5引入方式]:<br/>
Zondy.Geometry.Extent() <br/>
[ES6引入方式]:<br/>
import { Extent } from "@mapgis/webclient-common" <br/>
<br/></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Geometry.html">Geometry</a><span style="display: none;"><p>几何图形对象基类
<br><br>[ES5引入方式]:<br/>
Zondy.Geometry.Geometry() <br/>
[ES6引入方式]:<br/>
import { Geometry } from "@mapgis/webclient-common" <br/>
<br/></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="GeometryEngine.html">GeometryEngine</a><span style="display: none;"><p>几何分析工具</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="LineString.html">LineString</a><span style="display: none;"><p>线几何对象
<br><br>[ES5引入方式]:<br/>
Zondy.Geometry.LineString() <br/>
[ES6引入方式]:<br/>
import { LineString } from "@mapgis/webclient-common" <br/>
<br/></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MultiLineString.html">MultiLineString</a><span style="display: none;"><p>多线段几何
<br><br>[ES5引入方式]:<br/>
Zondy.Geometry.MultiLineString() <br/>
[ES6引入方式]:<br/>
import { MultiLineString } from "@mapgis/webclient-common" <br/>
<br/></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MultiPoint.html">MultiPoint</a><span style="display: none;"><p>多点几何对象
<br><br>[ES5引入方式]:<br/>
Zondy.Geometry.MultiPoint() <br/>
[ES6引入方式]:<br/>
import { MultiPoint } from "@mapgis/webclient-common" <br/>
<br/></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MultiPolygon.html">MultiPolygon</a><span style="display: none;"><p>多区几何
<br><br>[ES5引入方式]:<br/>
Zondy.Geometry.MultiPolygon() <br/>
[ES6引入方式]:<br/>
import { MultiPolygon } from "@mapgis/webclient-common" <br/>
<br/></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Point.html">Point</a><span style="display: none;"><p>点几何对象
<br><br>[ES5引入方式]:<br/>
Zondy.Geometry.Point() <br/>
[ES6引入方式]:<br/>
import { Point } from "@mapgis/webclient-common" <br/>
<br/></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Polygon.html">Polygon</a><span style="display: none;"><p>区几何,由多个环(ring)构成的几何对象,仅支持带洞区和非带洞区,不支持带岛区,即三个圈重叠<br/>
多边形的第一个环(ring)即外圈,从第二个环开始为内圈,内圈可以重合、相交、自相交,但是不能超过外圈
<br><br>[ES5引入方式]:<br/>
Zondy.Geometry.Polygon() <br/>
[ES6引入方式]:<br/>
import { Polygon } from "@mapgis/webclient-common" <br/>
<br/></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Projection.html">Projection</a><span style="display: none;"><p>投影转换工具</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SpatialReference.html">SpatialReference</a><span style="display: none;"><p>空间参考系
<br><br>[ES5引入方式]:<br/>
Zondy.SpatialReference() <br/>
[ES6引入方式]:<br/>
import { SpatialReference } from "@mapgis/webclient-common" <br/>
<br/></p></span></li></ul><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">undefined</div><ul class="mapgis-sidebar-menus"><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="DrawControl.html">DrawControl</a><span style="display: none;"><p>绘制工具</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Screenshot.html">Screenshot</a><span style="display: none;"><p>打印工具</p></span></li></ul><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">基础对象模块</div><ul class="mapgis-sidebar-menus"><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Evented.html">Evented</a><span style="display: none;"><p>事件基类,所有可接收或者发送的对象继承于此</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="UpdateContent.html">UpdateContent</a><span style="display: none;"><p>更新内容对象</p></span></li></ul><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">要素模块</div><ul class="mapgis-sidebar-menus"><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Feature.html">Feature</a><span style="display: none;"><p>要素对象,示例如下:<a id='add-Feature'>[初始化要素对象]</a>
<br><br>[ES5引入方式]:<br/>
Zondy.Feature() <br/>
[ES6引入方式]:<br/>
import { Feature } from "@mapgis/webclient-common" <br/>
<br/></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="FeatureSet.html">FeatureSet</a><span style="display: none;"><p>要素集合类,示例如下:<a id='add-FeatureSet'>[初始化要素集合对象]</a>
<br><br>[ES5引入方式]:<br/>
Zondy.FeatureSet() <br/>
[ES6引入方式]:<br/>
import { FeatureSet } from "@mapgis/webclient-common" <br/>
<br/></p></span></li></ul><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">undefined</div><ul class="mapgis-sidebar-menus"><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Popup.html">Popup</a><span style="display: none;"><p>二维场景信息弹窗(leaflet引擎)
参考示例:
<a href='#MapView'>[初始化二维场景视图]</a>
[ES6引入方式]:<br/>
import { Popup } from '@mapgis/webclient-leaflet-plugin' <br/>
自定义样式说明:<br/>
zondy-popup__content 弹窗容器样式<br/>
zondy-popup__tip 弹窗对话框箭头样式<br/>
zondy-popup__header 弹窗头部样式<br/>
zondy-popup__content 弹窗主体样式<br/>
zondy-popup__footer 弹窗底部样式<br/></p></span></li></ul><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">草图编辑模块</div><ul class="mapgis-sidebar-menus"><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SketchBaseDrawTool.html">SketchBaseDrawTool</a><span style="display: none;"><p>草图基础绘图工具类</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SketchCircleDrawTool.html">SketchCircleDrawTool</a><span style="display: none;"><p>面绘图工具类</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SketchEditor.html">SketchEditor</a><span style="display: none;"><p>草图编辑基类</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SketchEditorLeaflet.html">SketchEditorLeaflet</a><span style="display: none;"><p>二维场景草图编辑类<br/>
<br>[ES5引入方式]:<br/>
const { SketchEditorLeaflet } = Zondy <br/>
[ES6引入方式]:<br/>
import { SketchEditorLeaflet } from "@mapgis/webclient-leaflet-plugin" <br/></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SketchEditorVideo.html">SketchEditorVideo</a><span style="display: none;">undefined</span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SketchEditorVideoBase.html">SketchEditorVideoBase</a><span style="display: none;">undefined</span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SketchExtentDrawTool.html">SketchExtentDrawTool</a><span style="display: none;"><p>面绘图工具类</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SketchPointDrawTool.html">SketchPointDrawTool</a><span style="display: none;"><p>点绘图工具类</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SketchPolygonDrawTool.html">SketchPolygonDrawTool</a><span style="display: none;"><p>面绘图工具类</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SketchPolylineDrawTool.html">SketchPolylineDrawTool</a><span style="display: none;"><p>面绘图工具类</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SketchStage.html">SketchStage</a><span style="display: none;"><p>草图图形集合</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SketchStyle.html">SketchStyle</a><span style="display: none;"><p>草图样式管理类</p></span></li></ul></div>
</nav>
</div>
<div class="core" id="main-content-wrapper">
<div class="content">
<header id="page-title" class="page-title">
<span class="page-title-main">类名</span>
<span class="page-title-sub">ResourceServer</span>
</header>
<section>
<article>
<div class="container-overview">
<div class='vertical-section'>
<div class="members">
<div class="member">
<h4 class="name" id="ResourceServer">
<a class="href-link" href="#ResourceServer">#</a>
<span class="code-name" style="font-size:30px">
new ResourceServer<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>资源服务,基地址为http://{ip}:{port}/igs/rest/services/system/ResourceServer</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last"><p>构造参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>url</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>服务基地址</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line6">line 6</a>
</span>
</p>
</dl>
</div>
</div>
</div>
</div>
<h3 class="subsection-title">继承关系</h3>
<ul>
<li><a href="BaseServer.html">BaseServer</a></li>
</ul>
<div class='vertical-section'>
<h3 id='member'>成员变量</h3>
<div class="members">
<div class="member">
<span class="method-parameter is-pulled-right">
<label>类型:</label>
<span class="param-type">Boolean</span>
</span>
<h4 class="name" id="clientId">
<a class="href-link" href="#clientId">#</a>
<span class="code-name">
clientId
</span>
</h4>
<div class="description">
<p>客户端id</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="BaseServer.html#clientId">BaseServer#clientId</a>
</li></ul></dd>
<p class="tag-source">
<a href="common_service_BaseServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_BaseServer.js.html">common/service/BaseServer.js</a>, <a href="common_service_BaseServer.js.html#line70">line 70</a>
</span>
</p>
</dl>
</div>
<div class="member">
<span class="method-parameter is-pulled-right">
<label>类型:</label>
<span class="param-type">Boolean</span>
</span>
<h4 class="name" id="enableGlobeFetch">
<a class="href-link" href="#enableGlobeFetch">#</a>
<span class="code-name">
enableGlobeFetch
</span>
</h4>
<div class="description">
<p>是否使用确据唯一的fetch对象,默认为true,当设为false时,会使用自己私有的fetch对象,所有的请求设置不会影响全局</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="BaseServer.html#enableGlobeFetch">BaseServer#enableGlobeFetch</a>
</li></ul></dd>
<p class="tag-source">
<a href="common_service_BaseServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_BaseServer.js.html">common/service/BaseServer.js</a>, <a href="common_service_BaseServer.js.html#line48">line 48</a>
</span>
</p>
</dl>
<h5>示例</h5>
<pre class="prettyprint"><code>//设置请求基地址
// ES5引入方式
const { BaseServer } = Zondy.Service
// ES6引入方式
import { BaseServer } from "@mapgis/webclient-common"
let BaseServer = new BaseServer({
//请求基地址
url: '你的URL',
//使用私有的fetch对象
enableGlobeFetch: false,
//此时设置token等属性,不会影响全局的fetch对象
tokenValue: '你的token'
});
//继续使用全局fetch
BaseServer.enableGlobeFetch = true;</code></pre>
</div>
<div class="member">
<span class="method-parameter is-pulled-right">
<label>类型:</label>
<span class="param-type">String</span>
</span>
<h4 class="name" id="headers">
<a class="href-link" href="#headers">#</a>
<span class="code-name">
headers
</span>
</h4>
<div class="description">
<p>请求头参数</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="BaseServer.html#headers">BaseServer#headers</a>
</li></ul></dd>
<p class="tag-source">
<a href="common_service_BaseServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_BaseServer.js.html">common/service/BaseServer.js</a>, <a href="common_service_BaseServer.js.html#line690">line 690</a>
</span>
</p>
</dl>
<h5>示例</h5>
<pre class="prettyprint"><code>//设置请求头参数
// ES5引入方式
const { BaseServer } = Zondy.Service
// ES6引入方式
import { BaseServer } from "@mapgis/webclient-common"
let BaseServer = new BaseServer({
//请求头
headers: {
//设置Content-Type为multipart/form-data
'Content-Type': 'multipart/form-data',
//设置token
'token': '你的token'
}
});
//动态修改
BaseServer.headers.token = '新token';</code></pre>
</div>
<div class="member">
<span class="method-parameter is-pulled-right">
<label>类型:</label>
<span class="param-type">function</span>
</span>
<h4 class="name" id="requestInterceptor">
<a class="href-link" href="#requestInterceptor">#</a>
<span class="code-name">
requestInterceptor
</span>
</h4>
<div class="description">
<p>请求发送拦截器</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="BaseServer.html#requestInterceptor">BaseServer#requestInterceptor</a>
</li></ul></dd>
<p class="tag-source">
<a href="common_service_BaseServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_BaseServer.js.html">common/service/BaseServer.js</a>, <a href="common_service_BaseServer.js.html#line584">line 584</a>
</span>
</p>
</dl>
<h5>示例</h5>
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
// ES5引入方式
const { BaseServer,RequestInterceptor } = Zondy.Service
// ES6引入方式
import { BaseServer,RequestInterceptor } from "@mapgis/webclient-common"
let BaseServer = new BaseServer({
//设置请求发送拦截器
requestInterceptor: new RequestInterceptor({
//请求发送前进行统一处理
before: function(config) {
//执行你的业务逻辑
//注意必须显示返回config对象,如果返回为空,则不发送请求
return config;
},
//请求发送失败时进行统一处理
failure: function(error) {
//执行你的业务逻辑
}
})
});
//动态修改
BaseServer.requestInterceptor.before = function() {};</code></pre>
</div>
<div class="member">
<span class="method-parameter is-pulled-right">
<label>类型:</label>
<span class="param-type">String</span>
</span>
<h4 class="name" id="requestTimeout">
<a class="href-link" href="#requestTimeout">#</a>
<span class="code-name">
requestTimeout
</span>
</h4>
<div class="description">
<p>请求超时时间,默认45000ms,即45s</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="BaseServer.html#requestTimeout">BaseServer#requestTimeout</a>
</li></ul></dd>
<p class="tag-source">
<a href="common_service_BaseServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_BaseServer.js.html">common/service/BaseServer.js</a>, <a href="common_service_BaseServer.js.html#line662">line 662</a>
</span>
</p>
</dl>
<h5>示例</h5>
<pre class="prettyprint"><code>//设置超时时间
//初始化AddressServer服务对象
// ES5引入方式
const { BaseServer } = Zondy.Service
// ES6引入方式
import { BaseServer } from "@mapgis/webclient-common"
let BaseServer = new BaseServer({
//超时时间
requestTimeout: 2000
});
//动态修改
BaseServer.requestTimeout = 3000;</code></pre>
</div>
<div class="member">
<span class="method-parameter is-pulled-right">
<label>类型:</label>
<span class="param-type">function</span>
</span>
<h4 class="name" id="responseInterceptor">
<a class="href-link" href="#responseInterceptor">#</a>
<span class="code-name">
responseInterceptor
</span>
</h4>
<div class="description">
<p>请求响应拦截器</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="BaseServer.html#responseInterceptor">BaseServer#responseInterceptor</a>
</li></ul></dd>
<p class="tag-source">
<a href="common_service_BaseServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_BaseServer.js.html">common/service/BaseServer.js</a>, <a href="common_service_BaseServer.js.html#line622">line 622</a>
</span>
</p>
</dl>
<h5>示例</h5>
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
// ES5引入方式
const { BaseServer,ResponseInterceptor } = Zondy.Service
// ES6引入方式
import { BaseServer,ResponseInterceptor } from "@mapgis/webclient-common"
let BaseServer = new BaseServer({
//设置请求响应拦截器
responseInterceptor: new ResponseInterceptor({
//执行请求响应,接口调用成功时会执行的回调
success: function(result) {
//执行你的业务逻辑
//注意必须显示返回result对象,如果返回为空,则不执行请求响应成功回调
return result;
},
//请求响应成功,接口调用失败时会执行的函数
failure: function(result) {
//执行你的业务逻辑
//注意必须显示返回result对象,如果返回为空,则不执行回调韩式
return result;
}
})
});
//动态修改
BaseServer.responseInterceptor.success = function() {};</code></pre>
</div>
<div class="member">
<span class="method-parameter is-pulled-right">
<label>类型:</label>
<span class="param-type"><a href="global.html#TokenAttachType">TokenAttachType</a></span>
</span>
<h4 class="name" id="tokenAttachType">
<a class="href-link" href="#tokenAttachType">#</a>
<span class="code-name">
tokenAttachType
</span>
</h4>
<div class="description">
<p>指定token附加到何处</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="BaseServer.html#tokenAttachType">BaseServer#tokenAttachType</a>
</li></ul></dd>
<p class="tag-source">
<a href="common_service_BaseServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_BaseServer.js.html">common/service/BaseServer.js</a>, <a href="common_service_BaseServer.js.html#line776">line 776</a>
</span>
</p>
</dl>
<h5>示例</h5>
<pre class="prettyprint"><code>//设置token值
// ES5引入方式
const { BaseServer } = Zondy.Service
const { TokenAttachType } = Zondy.Enum
// ES6引入方式
import { BaseServer,TokenAttachType } from "@mapgis/webclient-common"
let BaseServer = new BaseServer({
//token名
tokenValue: '你的token值',
//token值
tokenValue: '你的token值',
//指定token附加到url后面
tokenAttachType: TokenAttachType.url
});
//动态修改
BaseServer.tokenAttachType = TokenAttachType.header;</code></pre>
</div>
<div class="member">
<span class="method-parameter is-pulled-right">
<label>类型:</label>
<span class="param-type">String</span>
</span>
<h4 class="name" id="tokenKey">
<a class="href-link" href="#tokenKey">#</a>
<span class="code-name">
tokenKey
</span>
</h4>
<div class="description">
<p>token名</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="BaseServer.html#tokenKey">BaseServer#tokenKey</a>
</li></ul></dd>
<p class="tag-source">
<a href="common_service_BaseServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_BaseServer.js.html">common/service/BaseServer.js</a>, <a href="common_service_BaseServer.js.html#line722">line 722</a>
</span>
</p>
</dl>
<h5>示例</h5>
<pre class="prettyprint"><code>//设置token名
// ES5引入方式
const { BaseServer } = Zondy.Service
// ES6引入方式
import { BaseServer } from "@mapgis/webclient-common"
let BaseServer = new BaseServer({
//token名
tokenKey: '你的tokenKey'
});
//动态修改
BaseServer.tokenKey = '新tokenKey';</code></pre>
</div>
<div class="member">
<span class="method-parameter is-pulled-right">
<label>类型:</label>
<span class="param-type">String</span>
</span>
<h4 class="name" id="tokenValue">
<a class="href-link" href="#tokenValue">#</a>
<span class="code-name">
tokenValue
</span>
</h4>
<div class="description">
<p>token值</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="BaseServer.html#tokenValue">BaseServer#tokenValue</a>
</li></ul></dd>
<p class="tag-source">
<a href="common_service_BaseServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_BaseServer.js.html">common/service/BaseServer.js</a>, <a href="common_service_BaseServer.js.html#line749">line 749</a>
</span>
</p>
</dl>
<h5>示例</h5>
<pre class="prettyprint"><code>//设置token值
// ES5引入方式
const { BaseServer } = Zondy.Service
// ES6引入方式
import { BaseServer } from "@mapgis/webclient-common"
let BaseServer = new BaseServer({
//token值
tokenValue: '你的token值'
});
//动态修改
BaseServer.tokenValue = '新token值';</code></pre>
</div>
<div class="member">
<span class="method-parameter is-pulled-right">
<label>类型:</label>
<span class="param-type">String</span>
</span>
<h4 class="name" id="url">
<a class="href-link" href="#url">#</a>
<span class="code-name">
url
</span>
</h4>
<div class="description">
<p>服务基地址</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="BaseServer.html#url">BaseServer#url</a>
</li></ul></dd>
<p class="tag-source">
<a href="common_service_BaseServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_BaseServer.js.html">common/service/BaseServer.js</a>, <a href="common_service_BaseServer.js.html#line26">line 26</a>
</span>
</p>
</dl>
<h5>示例</h5>
<pre class="prettyprint"><code>//设置请求基地址
// ES5引入方式
const { BaseServer } = Zondy.Service
// ES6引入方式
import { BaseServer } from "@mapgis/webclient-common"
let BaseServer = new BaseServer({
//请求基地址
url: '你的URL'
});
//动态修改
BaseServer.url = '新URL';</code></pre>
</div>
</div>
</div>
<div class='vertical-section'>
<h3 id='function'>方法</h3>
<div class="members">
<div class="member">
<h4 class="name" id="addClass">
<a class="href-link" href="#addClass">#</a>
<span class="code-name" style="font-size:30px">
addClass<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>在数据库中创建一个类</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>数据源名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>gdb名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>数据源用户名</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>layerName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>图层名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>geomType</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>几何类型,必传,igs2.0支持"Pnt" "Lin" "Reg" "Ann" "Surface" "Entity" "Unknown"</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>srs</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>参考系信息,支持mapgis参照系名称和EPSG编号,比如EPSG:4326、WGS1984_度</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>fdsName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>要素集名称</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>fields</code></td>
<td class="type">
<span class="param-type">Array.<Object></span>
</td>
<td class="description last"><p>属性字段结构信息,必传,示例:[{"name": "string","type": "string","alias": "string","length": 0}]</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>featureType</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>要素类型,取值为sfcls 或 acls,默认sfcls,目前仅支持简单要素类和注记类(只支持文本类型注记)</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line964">line 964</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs2.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const addClass = resourceServer.addClass({
method: FetchMethod.post,
datasource: "MapGISLocalPlus",
gdbName: "test",
useName: "",
layerName: "test_0426_feature",
srs: "WGS1984_度",
geomType: "Reg",
fdsName: "test",
fields: [{ name: "string", type: "string", alias: "string", length: 0 }],
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="addGDB">
<a class="href-link" href="#addGDB">#</a>
<span class="code-name" style="font-size:30px">
addGDB<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>新建数据库</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>数据库名,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>gdb名称</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>数据源用户名</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>path</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>gdb路径</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line204">line 204</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs2.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const addGDB = resourceServer.addGDB({
method: FetchMethod.post,
datasource: "MapGISLocalPlus",
gdbName: "test_0426",
path: "e://数据源",
useName: "",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code> // ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const addGDB = resourceServer.addGDB({
method: FetchMethod.get,
datasource: "MapGISLocalPlus",
gdbName: "test_04261",
path: "d:\\",
useName: "",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="addMapLayer">
<a class="href-link" href="#addMapLayer">#</a>
<span class="code-name" style="font-size:30px">
addMapLayer<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>添加图层到文档中指定地图,仅支持igs1.0</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>docName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>地图文档名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>mapIndex</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>地图索引,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>updateObject</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last"><p>更新参数,必传</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line2744">line 2744</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const addMapLayer = resourceServer.addMapLayer({
method: FetchMethod.post,
docName: "sz",
mapIndex: "新地图1",
updateObject:{},
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="attachGDB">
<a class="href-link" href="#attachGDB">#</a>
<span class="code-name" style="font-size:30px">
attachGDB<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>附加数据库</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>数据源用户名</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>数据源名,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>gdb名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>path</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>gdb路径,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>数据源用户名</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line318">line 318</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs2.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer ,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const attachGDB = resourceServer.attachGDB({
method: FetchMethod.post,
datasource: 'MapGISLocalPlus',
gdbName: 'test_0426',
path: 'e://数据源//test_0426.hdb',
useName: '',
success: function (res) {
console.log('res: ', res)
}
})</code></pre>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code> // ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer ,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const attachGDB = resourceServer.attachGDB({
method: FetchMethod.get,
datasource: "MapGISLocalPlus",
gdbName: "test_0426",
path: "e:\\数据源\\test_0426.hdb",
useName: "",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="createGdbLayer">
<a class="href-link" href="#createGdbLayer">#</a>
<span class="code-name" style="font-size:30px">
createGdbLayer<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>在GDB数据库中创建一个图层,仅支持igs1.0</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbSvrName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>数据源名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>GDB数据名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>featureType</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>要素类型,必传。FeatureDS(要素数据集)、SfeatureCls(简单要素类)、ObjectCls(对象类)、AnnotationCls(注记类)、RasterDataset(栅格数据集)、RasterCatalog(栅格目录)、GnetCls(几何网络)、AddrBaseCls(地名库)等。</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>layerName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>图层名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>geoType</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>几何类型,必传。区图层为Reg、线图层为Lin、点图层为Pnt</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>srefName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>参考系名称</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>dsName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>要素数据集名称</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>attStruct</code></td>
<td class="type">
<span class="param-type">CAttStruct</span>
</td>
<td class="description last"><p>图层数据结构</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line2161">line 2161</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
const { CAttStruct } = Zondy.Object
// ES6引入方式
import { ResourceServer ,FetchMethod ,CAttStruct } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const createGdbLayer = resourceServer.createGdbLayer({
method: FetchMethod.post,
gdbSvrName: "MapGISLocalPlus",
gdbName: "sample",
featureType: "SfeatureCls",
layerName: "新图层",
dsName: "地图综合",
geoType: "Reg",
srefName: "WGS1984_度",
attStruct: new CAttStruct({
FldName: ["ID", "面积", "周长", "LayerID"],
FldNumber: 4,
FldType: ["FldLong", "FldDouble", "FldDouble", "FldLong"],
}),
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="createLayerInGdbp">
<a class="href-link" href="#createLayerInGdbp">#</a>
<span class="code-name" style="font-size:30px">
createLayerInGdbp<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>在GDB数据库中创建一个图层,仅支持igs1.0</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbSvrName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>数据源名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>gdb名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>featureType</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>要素类型,必传,要素数据集为FeatureDS、简单要素类为SFeatureCls,对象类为ObjectCls,注记类为AnnotationCls,网络类为GNetCls…..。</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>layerName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>图层名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>geoType</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>几何类型,必传,区图层为Reg、线图层为Lin、点图层为Pnt</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>srefName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>参考系名称</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>dsName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>要素名称</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>attStruct</code></td>
<td class="type">
<span class="param-type">CAttStruct</span>
</td>
<td class="description last"><p>属性结构</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line2395">line 2395</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
const { CAttStruct } = Zondy.Object
// ES6引入方式
import { ResourceServer ,FetchMethod ,CAttStruct } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const createLayerInGdbp = resourceServer.createLayerInGdbp({
method: FetchMethod.post,
gdbSvrName: "MapGISLocalPlus",
gdbName: "sample",
featureType: "SfeatureCls",
layerName: "新图层",
dsName: "地图综合",
geoType: "Reg",
srefName: "WGS1984_度",
attStruct: new CAttStruct({
FldName: ["ID", "面积", "周长", "LayerID"],
FldNumber: 4,
FldType: ["FldLong", "FldDouble", "FldDouble", "FldLong"],
}),
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="deleteGDB">
<a class="href-link" href="#deleteGDB">#</a>
<span class="code-name" style="font-size:30px">
deleteGDB<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>删除数据库</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>数据源名,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>gdb名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>数据源用户名</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line435">line 435</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs2.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer ,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const deleteGDB = resourceServer.deleteGDB({
method: FetchMethod.delete,
datasource: "MapGISLocalPlus",
gdbName: "test_0426",
useName: "",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code> // ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer ,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const deleteGDB = resourceServer.deleteGDB({
method: FetchMethod.get,
datasource: "MapGISLocalPlus",
gdbName: "test_0426",
useName: "",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="deleteLayerInGdbp">
<a class="href-link" href="#deleteLayerInGdbp">#</a>
<span class="code-name" style="font-size:30px">
deleteLayerInGdbp<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>删除GDB数据库中的一个图层,仅支持igs1.0</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbSvrName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>数据源名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>gdb名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>featureType</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>要素类型,必传,要素数据集为FeatureDS、简单要素类为SFeatureCls,对象类为ObjectCls,注记类为AnnotationCls,网络类为GNetCls…..。</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>layerName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>图层名称,必传</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line2485">line 2485</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code> // ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer ,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const deleteLayerInGdbp = resourceServer.deleteLayerInGdbp({
method: FetchMethod.get,
gdbSvrName: "MapGISLocalPlus",
gdbName: "sample",
featureType: "SfeatureCls",
layerName: "等值线",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="deleteSimpleFeature">
<a class="href-link" href="#deleteSimpleFeature">#</a>
<span class="code-name" style="font-size:30px">
deleteSimpleFeature<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>删除简单要素类</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>gdb名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>gdb名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>featureSetName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>简单要素类名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>数据源用户名</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line1209">line 1209</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer ,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const deleteSimpleFeature = resourceServer.deleteSimpleFeature({
method: FetchMethod.delete,
datasource: "MapGISLocalPlus",
gdbName: "sample",
featureSetName: "等值线",
useName: "",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="detachGDB">
<a class="href-link" href="#detachGDB">#</a>
<span class="code-name" style="font-size:30px">
detachGDB<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>注销数据库</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>数据源名,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>gdb名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>数据源用户名</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line544">line 544</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs2.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer ,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const detachGDB = resourceServer.detachGDB({
method: FetchMethod.put,
datasource: "MapGISLocalPlus",
gdbName: "test_0426",
useName: "",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code> // ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer ,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const detachGDB = resourceServer.detachGDB({
method: FetchMethod.get,
datasource: "MapGISLocalPlus",
gdbName: "test_0426",
useName: "",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="editLayerSystemLib">
<a class="href-link" href="#editLayerSystemLib">#</a>
<span class="code-name" style="font-size:30px">
editLayerSystemLib<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>修改图层的系统库,仅支持igs1.0</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>systemLib</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>系统库id或名称</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbps</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>图层列表,多个用英文逗号隔开</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line3340">line 3340</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer ,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const editLayerSystemLib = resourceServer.editLayerSystemLib({
method: FetchMethod.get,
systemLib: "0",
gdbps: "gdbp://MapGISLocalPlus/test/ds/test/sfcls/test_0426_feature1",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="editMapLayerIndex">
<a class="href-link" href="#editMapLayerIndex">#</a>
<span class="code-name" style="font-size:30px">
editMapLayerIndex<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>修改文档中指定地图下图层的索引,仅支持igs1.0</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>docName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>地图文档名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>mapIndex</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>地图索引,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>guid</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>用户会话id</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>updateObject</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>更新参数,必传</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line2870">line 2870</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer ,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const editMapLayerIndex = resourceServer.editMapLayerIndex({
method: FetchMethod.post,
docName: "sz",
mapIndex: "新地图1",
layerIndexs: "0",
updateObject:{},
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="editMapLayerSystemLib">
<a class="href-link" href="#editMapLayerSystemLib">#</a>
<span class="code-name" style="font-size:30px">
editMapLayerSystemLib<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>修改文档下图层的系统库,仅支持igs1.0</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>docName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>地图文档名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>mapIndex</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>地图索引,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>systemLib</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>系统库id或名称</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>layerIndexs</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>图层索引列表(多个用英文逗号分隔)</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>guid</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>用户会话id</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line2628">line 2628</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer ,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const editMapLayerSystemLib = resourceServer.editMapLayerSystemLib({
method: FetchMethod.get,
docName: "sz",
mapIndex: "新地图1",
systemLib: "DefaultSystemLib",
layerIndexs: "0",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="editTempDataInfo">
<a class="href-link" href="#editTempDataInfo">#</a>
<span class="code-name" style="font-size:30px">
editTempDataInfo<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>修改系统库</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>urls</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>图层列表,必传,可能是gdbp、filePath,多个用","分隔</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>systemLibId</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>系统库id</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>systemLibName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>系统库的名称,systemLibId参数为空时有效</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line2101">line 2101</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer ,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const editTempDataInfo = resourceServer.editTempDataInfo({
method: FetchMethod.put,
urls: "gdbp://MapGISLocalPlus/sample/sfcls/等值线1",
systemLibName: "DefaultSystemLib",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="getColorByIndex">
<a class="href-link" href="#getColorByIndex">#</a>
<span class="code-name" style="font-size:30px">
getColorByIndex<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>根据颜色号获取RGB值</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>sysLib</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>系统库id,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>colorIndex</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>颜色号,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line1772">line 1772</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer ,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const querySystemColorList = resourceServer.querySystemColorList({
method: FetchMethod.get,
sysLib: "DefaultSystemLib",
page: 1,
pageSize: 20,
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code> // ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer ,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const querySystemColorList = resourceServer.querySystemColorList({
method: FetchMethod.get,
sysLib: "DefaultSystemLib",
page: 1,
pageSize: 20,
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="getColorIndex">
<a class="href-link" href="#getColorIndex">#</a>
<span class="code-name" style="font-size:30px">
getColorIndex<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>根据RGB值获取颜色号</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th style="min-width: 100px;">默认值</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="default">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>sysLib</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="default">
</td>
<td class="description last"><p>系统库id,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>color</code></td>
<td class="type">
<span class="param-type"><a href="Color.html">Color</a></span>
</td>
<td class="default">
</td>
<td class="description last"><p>颜色值,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="default">
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="default">
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="default">
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>addIfNotExist</code></td>
<td class="type">
<span class="param-type">Boolean</span>
</td>
<td class="default">
false
</td>
<td class="description last"><p>如果查找到的颜色不存在,是否新增</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line1660">line 1660</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs2.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
const { Color } = Zondy
// ES6引入方式
import { ResourceServer ,FetchMethod ,Color } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const getColorIndex = resourceServer.getColorIndex({
method: FetchMethod.get,
sysLib: "DefaultSystemLib",
color: new Color(225, 221, 20, 1),
addIfNotExist: false,
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code> // ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
const { Color } = Zondy
// ES6引入方式
import { ResourceServer ,FetchMethod ,Color } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const getColorIndex = resourceServer.getColorIndex({
method: FetchMethod.get,
sysLib: "DefaultSystemLib",
color: new Color(225, 221, 20, 1),
addIfNotExist: false,
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="getSimpleFeature">
<a class="href-link" href="#getSimpleFeature">#</a>
<span class="code-name" style="font-size:30px">
getSimpleFeature<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>获取简单要素类</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>数据源名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>gdb名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>featureSetName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>简单要素类名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>数据源用户名</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line1067">line 1067</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer ,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const getSimpleFeature = resourceServer.getSimpleFeature({
method: FetchMethod.get,
datasource: "MapGISLocalPlus",
gdbName: "sample",
featureSetName: "等值线1",
useName: "",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="operaGdbp">
<a class="href-link" href="#operaGdbp">#</a>
<span class="code-name" style="font-size:30px">
operaGdbp<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>GDB操作接口,仅支持igs1.0</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>operType</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>操作类型,必传(分为:attach、create、delete、detach)</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>GDB数据名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbServerName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>GDB数据源名称</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>useName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>用户名</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>password</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>密码,igs1.0有效</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>path</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>hdf路径或67文件夹路径</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line3265">line 3265</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer ,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const operaGdbp = resourceServer.operaGdbp({
method: FetchMethod.get,
gdbServerName: "MapGISLocalPlus",
gdbName: "test",
dsName: "test",
operType: "detach",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryDataSourceFeatureClassList">
<a class="href-link" href="#queryDataSourceFeatureClassList">#</a>
<span class="code-name" style="font-size:30px">
queryDataSourceFeatureClassList<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>获取数据集下的要素类列表,仅支持igs1.0</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbServerName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>GDB数据源名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>GDB数据名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>dsName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>要素数据集名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>useName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>用户名</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>password</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>密码,igs1.0有效</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line3195">line 3195</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer ,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryDataSourceFeatureClassList =
resourceServer.queryDataSourceFeatureClassList({
method: FetchMethod.get,
gdbServerName: "MapGISLocalPlus",
gdbName: "test",
dsName: "test",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryDataSourceInfo">
<a class="href-link" href="#queryDataSourceInfo">#</a>
<span class="code-name" style="font-size:30px">
queryDataSourceInfo<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>查询数据源信息</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>数据库名,必传</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line85">line 85</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs2.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
// ES6引入方式
import { ResourceServer } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const dataSourceInfo = resourceServer.queryDataSourceInfo({
datasource: "MapGISLocalPlus",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryDataSourceList">
<a class="href-link" href="#queryDataSourceList">#</a>
<span class="code-name" style="font-size:30px">
queryDataSourceList<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>获取数据源列表,支持igs1.0和igs2.0</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line25">line 25</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs2.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
// ES6引入方式
import { ResourceServer } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const dataSourceList = resourceServer.queryDataSourceList({
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code> // ES5引入方式
const { ResourceServer } = Zondy.Service
// ES6引入方式
import { ResourceServer } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const dataSourceList = resourceServer.queryDataSourceList({
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryDsAllData">
<a class="href-link" href="#queryDsAllData">#</a>
<span class="code-name" style="font-size:30px">
queryDsAllData<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>获取GDB下某类型的所有数据,仅支持igs1.0</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbSvrName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>数据源名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>gdb名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>clsType</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>要素数据类型,必传。数据类型(分为:ds、rcat、ras、sfcls、fcls、acls、ocls、rds、rcs、ncls、sfcls_new)或者为srefID 参考系id</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>useName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>用户名</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>password</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>密码,igs1.0有效</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>dsName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>要素数据集名称,必传</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line2321">line 2321</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer, FetchMethod} from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryDsAllData = resourceServer.queryDsAllData({
method: FetchMethod.get,
gdbSvrName: "MapGISLocalPlus",
gdbName: "sample",
clsType: "sfcls",
dsName: "地图综合",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryFeatureDataSourceList">
<a class="href-link" href="#queryFeatureDataSourceList">#</a>
<span class="code-name" style="font-size:30px">
queryFeatureDataSourceList<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>查询要素数据集列表</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>数据源名,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>gdb名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>数据源用户名</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line653">line 653</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs2.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const queryFeatureDataSourceList =
resourceServer.queryFeatureDataSourceList({
method: FetchMethod.get,
datasource: 'MapGISLocalPlus',
gdbName: 'sample',
useName: '',
success: function (res) {
console.log('res: ', res)
}
})</code></pre>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code> // ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryFeatureDataSourceList =
resourceServer.queryFeatureDataSourceList({
method: FetchMethod.get,
datasource: 'MapGISLocalPlus',
gdbName: 'sample',
useName: '',
success: function (res) {
console.log('res: ', res)
}
})</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryGDBList">
<a class="href-link" href="#queryGDBList">#</a>
<span class="code-name" style="font-size:30px">
queryGDBList<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>查询GDB列表</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>数据源名,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>数据源用户名</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line132">line 132</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs2.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
// ES6引入方式
import { ResourceServer } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const queryGDBList = resourceServer.queryGDBList({
datasource: 'MapGISLocalPlus',
success: function (res) {
console.log('res: ', res)
}
})</code></pre>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code> // ES5引入方式
const { ResourceServer } = Zondy.Service
// ES6引入方式
import { ResourceServer } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const dataSourceInfo = resourceServer.queryDataSourceInfo({
datasource: "MapGISLocalPlus",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryGdbpAllData">
<a class="href-link" href="#queryGdbpAllData">#</a>
<span class="code-name" style="font-size:30px">
queryGdbpAllData<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>获取GDB下某类型的所有数据,仅支持igs1.0</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbSvrName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>数据源名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>gdb名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>clsType</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>要素数据类型,必传。数据类型(分为:ds、rcat、ras、sfcls、fcls、acls、ocls、rds、rcs、ncls、sfcls_new)或者为srefID 参考系id</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>useName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>用户名</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>password</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>密码,igs1.0有效</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>containAll</code></td>
<td class="type">
<span class="param-type">Boolean</span>
</td>
<td class="description last"><p>是否返回hdf下所有的对应数据,false表示只返回对应节点下的数据,默认值为true</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line2250">line 2250</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryGdbpAllData = resourceServer.queryGdbpAllData({
method: FetchMethod.get,
gdbSvrName: "MapGISLocalPlus",
gdbName: "sample",
clsType: "sfcls",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryGDBPInfo">
<a class="href-link" href="#queryGDBPInfo">#</a>
<span class="code-name" style="font-size:30px">
queryGDBPInfo<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>获取GDB下某个图层的详细信息,仅支持igs1.0</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbpUrl</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>gdbp地址</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>proj</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>对shp图层支持投影,获取到投影后的范围,传参考系名称</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line3393">line 3393</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer ,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryGDBPInfo = resourceServer.queryGDBPInfo({
method: FetchMethod.get,
gdbpUrl:
"gdbp://MapGISLocalPlus/test/sfcls/metro.json_Lin,gdbp://MapGISLocalPlus/test/sfcls/中国地级县x",
proj: "WGS1984_度",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryLegendInfo">
<a class="href-link" href="#queryLegendInfo">#</a>
<span class="code-name" style="font-size:30px">
queryLegendInfo<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>获取地图文档服务的图例信息,仅支持igs1.0</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>docName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>服务名</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>layerIndex</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>生成图例的图层索引号(多个用英文逗号分隔)</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>size</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>格式:width,height</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>guid</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>用户会话id</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>maxCount</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>返回图例项最大数量</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>page</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>页码</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>pageSize</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>分页大小</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>where</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>过滤条件</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>range</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>范围</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line3447">line 3447</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer ,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryLegendInfo = resourceServer.queryLegendInfo({
method: FetchMethod.get,
docName: "地图文档_1",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryMapDocList">
<a class="href-link" href="#queryMapDocList">#</a>
<span class="code-name" style="font-size:30px">
queryMapDocList<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>获取发布的文档列表,仅支持igs1.0</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>version</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>版本信息,默认为'1.0',可缺省(缺省时只返回直接发布的文档列表,如果v=2列表中将会包含目录形式发布的文档</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line2696">line 2696</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer, FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryMapDocList = resourceServer.queryMapDocList({
method: FetchMethod.get,
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryMapInfo">
<a class="href-link" href="#queryMapInfo">#</a>
<span class="code-name" style="font-size:30px">
queryMapInfo<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>获取文档详细信息,仅支持igs1.0</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>docName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>文档名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>tree</code></td>
<td class="type">
<span class="param-type">Boolean</span>
</td>
<td class="description last"><p>是否按树形显示,缺省false</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>include</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last"><p>返回中要求包含的属性 {"IncludeDetails":true,"IncludeSubs":true}</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>returnFullStyle</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>是否返回全部信息的标志位e</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>guid</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>用户会话id,可以缺省</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line2935">line 2935</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer, FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryMapInfo = resourceServer.queryMapInfo({
method: FetchMethod.get,
docName: "sz",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryMapInfoByIndex">
<a class="href-link" href="#queryMapInfoByIndex">#</a>
<span class="code-name" style="font-size:30px">
queryMapInfoByIndex<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>获取指定地图的详细信息,仅支持igs1.0</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>docName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>地图文档名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>mapIndex</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>地图索引,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>include</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last"><p>返回中要求包含的属性 {"IncludeDetails":true,"IncludeSubs":true}</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>returnFullStyle</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>是否返回全部信息的标志位e</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>guid</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>用户会话id,可以缺省</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line3001">line 3001</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryMapInfoByIndex = resourceServer.queryMapInfoByIndex({
method: FetchMethod.get,
docName: "sz",
mapIndex: "0",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryMapLayerInfo">
<a class="href-link" href="#queryMapLayerInfo">#</a>
<span class="code-name" style="font-size:30px">
queryMapLayerInfo<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>获取指定地图下所有图层的信息,仅支持igs1.0</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>docName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>地图文档名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>mapIndex</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>地图索引,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>guid</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>用户会话id,可以缺省</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line3070">line 3070</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer, FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryMapLayerInfo = resourceServer.queryMapLayerInfo({
method: FetchMethod.get,
docName: "sz",
mapIndex: "0",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryMapLayerInfoByIndex">
<a class="href-link" href="#queryMapLayerInfoByIndex">#</a>
<span class="code-name" style="font-size:30px">
queryMapLayerInfoByIndex<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>获取指定地图下指定图层的信息,仅支持igs1.0</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>docName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>地图文档名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>mapIndex</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>地图索引,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>layerId</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>图层索引,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>guid</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>用户会话id,可以缺省</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>returnFullStyle</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>是否返回全部信息的标志位e</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line3128">line 3128</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer, FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryMapLayerInfoByIndex = resourceServer.queryMapLayerInfoByIndex({
method: FetchMethod.get,
docName: "sz",
mapIndex: "0",
layerIndex: "0",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryServerInfo">
<a class="href-link" href="#queryServerInfo">#</a>
<span class="code-name" style="font-size:30px">
queryServerInfo<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>获取服务信息,IGS2.0新增服务</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th style="min-width: 100px;">默认值</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="default">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="default">
无
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="default">
无
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="BaseServer.html#queryServerInfo">BaseServer#queryServerInfo</a>
</li></ul></dd>
<p class="tag-source">
<a href="common_service_BaseServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_BaseServer.js.html">common/service/BaseServer.js</a>, <a href="common_service_BaseServer.js.html#line157">line 157</a>
</span>
</p>
</dl>
<h5>示例</h5>
<p class="code-caption"><h5>获取服务信息-回调方式</h5></p>
<pre class="prettyprint"><code>server.queryServerInfo({
success: function (result) {
console.log('请求成功:', result);
},
failure: function (result) {
console.log('请求失败:', result);
}
});</code></pre>
<p class="code-caption"><h5>获取服务信息-promise方式</h5></p>
<pre class="prettyprint"><code>server.queryServerInfo({
})
.then(function (result) {
console.log('请求成功:', result);
}).catch(function (result) {
console.log('请求失败:', result);
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="querySimpleFeatureList">
<a class="href-link" href="#querySimpleFeatureList">#</a>
<span class="code-name" style="font-size:30px">
querySimpleFeatureList<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>简单要素类列表</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th style="min-width: 100px;">默认值</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="default">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="default">
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="default">
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="default">
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="default">
</td>
<td class="description last"><p>数据源名,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="default">
</td>
<td class="description last"><p>gdb名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="default">
</td>
<td class="description last"><p>数据源用户名</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>fdsName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="default">
</td>
<td class="description last"><p>要素数据集名称,如果不为空,则仅获取指定要素数据下的数据</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>includeAll</code></td>
<td class="type">
<span class="param-type">Boolean</span>
</td>
<td class="default">
false
</td>
<td class="description last"><p>是否包含要素数据集下及非要素数据集下的简单要素类数据,仅当fdsName为空时有效</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line853">line 853</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs2.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer, FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new .ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const querySimpleFeatureList = resourceServer.querySimpleFeatureList({
method: FetchMethod.get,
datasource: "MapGISLocalPlus",
gdbName: "sample",
useName: "",
fdsName: "影像数据",
includeAll: true,
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code> // ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer, FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const querySimpleFeatureList = resourceServer.querySimpleFeatureList({
method: FetchMethod.get,
datasource: "MapGISLocalPlus",
gdbName: "sample",
useName: "",
fdsName: "影像数据",
includeAll: true,
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="querySrsInfo">
<a class="href-link" href="#querySrsInfo">#</a>
<span class="code-name" style="font-size:30px">
querySrsInfo<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>查询参考系信息</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>数据源名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>gdb名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>srsName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>参考系名称,必传,在使用igs1.0服务时,需要传入参考系id</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>数据源用户名</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line1380">line 1380</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs2.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer, FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const querySrsInfo = resourceServer.querySrsInfo({
method: FetchMethod.get,
datasource: "MapGISLocalPlus",
gdbName: "sample",
srsName: "WGS1984_度",
useName: "",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code> // ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer, FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const querySrsInfo = resourceServer.querySrsInfo({
method: FetchMethod.get,
datasource: "MapGISLocalPlus",
gdbName: "sample",
srsName: "7",
useName: "",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="querySrsList">
<a class="href-link" href="#querySrsList">#</a>
<span class="code-name" style="font-size:30px">
querySrsList<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>查询参考系列表</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>数据源名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>gdb名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>数据源用户名</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line1275">line 1275</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs2.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer, FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const querySrsList = resourceServer.querySrsList({
method: FetchMethod.get,
datasource: "MapGISLocalPlus",
gdbName: "sample",
useName: "",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code> // ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer, FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const querySrsList = resourceServer.querySrsList({
method: FetchMethod.get,
datasource: "MapGISLocalPlus",
gdbName: "sample",
useName: "",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="querySymbol">
<a class="href-link" href="#querySymbol">#</a>
<span class="code-name" style="font-size:30px">
querySymbol<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>修改图层的系统库,仅支持igs1.0</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>systemLib</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>系统库guid或者名称</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>type</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>类型SymbolGeomType(GeomEnt3D,GeomLin,GeomPnt,GeomReg,GeomSur3D,Unknown)</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>systemNo</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>符号序号</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>systemSubNo</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>符号子序号</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line3528">line 3528</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer, FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const querySymbol = resourceServer.querySymbol({
method: FetchMethod.get,
systemLib: "DefaultSystemLib",
type: "GeomPnt",
systemNo: "0",
systemSubNo: "0",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="querySymbolList">
<a class="href-link" href="#querySymbolList">#</a>
<span class="code-name" style="font-size:30px">
querySymbolList<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>修改图层的系统库,仅支持igs1.0</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>systemLib</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>系统库guid或者名称</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>page</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>页码(默认0)</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>size</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>分页量(默认20)</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>type</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>类型SymbolGeomType(GeomEnt3D,GeomLin,GeomPnt,GeomReg,GeomSur3D,Unknown)</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line3591">line 3591</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
// ES6引入方式
import { ResourceServer } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="querySystemColorList">
<a class="href-link" href="#querySystemColorList">#</a>
<span class="code-name" style="font-size:30px">
querySystemColorList<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>查询系统颜色列表</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th style="min-width: 100px;">默认值</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="default">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>sysLib</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="default">
</td>
<td class="description last"><p>系统库id,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="default">
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="default">
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="default">
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>page</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="default">
1
</td>
<td class="description last"><p>页码</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>pageSize</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="default">
20
</td>
<td class="description last"><p>每页数量</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line1556">line 1556</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs2.0</h5></p>
<pre class="prettyprint"><code> // ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const querySystemColorList = resourceServer.querySystemColorList({
method: FetchMethod.get,
sysLib: "DefaultSystemLib",
page: 1,
pageSize: 20,
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code> // ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const querySystemColorList = resourceServer.querySystemColorList({
method: FetchMethod.get,
sysLib: "DefaultSystemLib",
page: 0,
pageSize: 20,
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="querySystemLibList">
<a class="href-link" href="#querySystemLibList">#</a>
<span class="code-name" style="font-size:30px">
querySystemLibList<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>查询系统库资源列表</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line1494">line 1494</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs2.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const querySystemLibList = resourceServer.querySystemLibList({
method: FetchMethod.get,
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code> // ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const querySystemLibList = resourceServer.querySystemLibList({
method: FetchMethod.get,
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryTempDataFeatures">
<a class="href-link" href="#queryTempDataFeatures">#</a>
<span class="code-name" style="font-size:30px">
queryTempDataFeatures<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>获取临时图层要素信息</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th style="min-width: 100px;">默认值</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="default">
</td>
<td class="description last"><p>要素查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>method</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="default">
FetchMethod.get
</td>
<td class="description last"><p>请求类型</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="default">
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="default">
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>geometry</code></td>
<td class="type">
<span class="param-type"><a href="Geometry.html">Geometry</a></span>
</td>
<td class="default">
</td>
<td class="description last"><p>要素查询几何条件</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>url</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="default">
</td>
<td class="description last"><p>图层资源的路径,可能是gdbp、filePath</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>mapResource</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="default">
</td>
<td class="description last"><p>地图文档的资源,与urls二选一,mapResource优先,示例:"{"url": "/root/wuhan.mapx","mapIndex ": 0,"layerId": "string"}"</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>where</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="default">
</td>
<td class="description last"><p>要素查询where条件</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>outFields</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="default">
</td>
<td class="description last"><p>输出属性字段,可为*表示所有,多个用英文逗号分隔</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>objectIds</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="default">
</td>
<td class="description last"><p>过滤id,多个用英文逗号分隔(参数优先级很高,可能导致其它筛选条件失效)</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>distance</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="default">
0
</td>
<td class="description last"><p>几何缓冲的距离,geometry为point、line时有效(若数据源为大数据PG数据,且geometryType为line或者point时为必填数据)</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>geometryPrecision</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="default">
</td>
<td class="description last"><p>返回要素几何信息中坐标xy的精度</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>spatialRel</code></td>
<td class="type">
<span class="param-type"><a href="global.html#SpatialRelation">SpatialRelation</a></span>
</td>
<td class="default">
</td>
<td class="description last"><p>几何条件的空间判定规则,Intersects(相交)、EnvelopeIntersects(外包矩形相交)、Contains(包含)、Disjoint(相离)</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>orderByFields</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="default">
</td>
<td class="description last"><p>排序字段,格式: fieldName [ASC|DESC]</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>groupByFieldsForStatistics</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="default">
</td>
<td class="description last"><p>分组统计的字段信息,格式为field1,field2</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>resultRecordCount</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="default">
20
</td>
<td class="description last"><p>分页参数:结果返回条数,默认20</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>resultOffset</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="default">
</td>
<td class="description last"><p>分页参数:跳过条数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>outStatistics</code></td>
<td class="type">
<span class="param-type">Array</span>
</td>
<td class="default">
</td>
<td class="description last"><p>计算一个或多个基于字段的统计信息结构,统计类型包括:FUNCTION_MAX/FUNCTION_MIN/FUNCTION_SUM/FUNCTION_AVG/FUNCTION_COUNT/FUNCTION_MAX_OID,示例:"[{"statisticType": "FUNCTION_SUM","onStatisticField": "field1","outStatisticFieldName":"fieldName1"}]"</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>returnGeometry</code></td>
<td class="type">
<span class="param-type">Boolean</span>
</td>
<td class="default">
true
</td>
<td class="description last"><p>是否返回几何,默认为true</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>returnAttribute</code></td>
<td class="type">
<span class="param-type">Boolean</span>
</td>
<td class="default">
true
</td>
<td class="description last"><p>是否返回属性,默认为true</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>returnStyle</code></td>
<td class="type">
<span class="param-type">Boolean</span>
</td>
<td class="default">
false
</td>
<td class="description last"><p>是否返回图形参数信息,默认为false</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>returnIdsOnly</code></td>
<td class="type">
<span class="param-type">Boolean</span>
</td>
<td class="default">
false
</td>
<td class="description last"><p>是否只返回id,默认为false</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>returnCountOnly</code></td>
<td class="type">
<span class="param-type">Boolean</span>
</td>
<td class="default">
false
</td>
<td class="description last"><p>是否只返回条数,默认为false</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>returnExtentOnly</code></td>
<td class="type">
<span class="param-type">Boolean</span>
</td>
<td class="default">
false
</td>
<td class="description last"><p>是否只返回范围,默认为false</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>returnZ</code></td>
<td class="type">
<span class="param-type">Boolean</span>
</td>
<td class="default">
false
</td>
<td class="description last"><p>是否返回Z轴,默认为false</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>is6xAcls</code></td>
<td class="type">
<span class="param-type">Boolean</span>
</td>
<td class="default">
true
</td>
<td class="description last"><p>图层资源的路径是filePath且后缀是.wt时,需要指定图层资源是否是6x注记,默认为6x点</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line1914">line 1914</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const queryTempDataFeatures1 = resourceServer.queryTempDataFeatures({
method: FetchMethod.get,
url: "gdbp://MapGISLocalPlus/sample/sfcls/等值线1",
where: "高度='80'",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryTempDataInfo">
<a class="href-link" href="#queryTempDataInfo">#</a>
<span class="code-name" style="font-size:30px">
queryTempDataInfo<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>获取临时数据信息</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>url</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>资源url</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line2050">line 2050</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const queryTempDataInfo = resourceServer.queryTempDataInfo({
method: FetchMethod.get,
url: "gdbp://MapGISLocalPlus/sample/sfcls/等值线1",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryTempDataServerInfo">
<a class="href-link" href="#queryTempDataServerInfo">#</a>
<span class="code-name" style="font-size:30px">
queryTempDataServerInfo<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>获取临时数据服务信息</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line1871">line 1871</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs2.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const queryTempDataServerInfo = resourceServer.queryTempDataServerInfo({
method: FetchMethod.get,
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryTileDataSourceList">
<a class="href-link" href="#queryTileDataSourceList">#</a>
<span class="code-name" style="font-size:30px">
queryTileDataSourceList<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>获取栅格数据集列表</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>数据源名,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>gdb名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>数据源用户名</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line754">line 754</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs2.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const queryTileDataSourceList = resourceServer.queryTileDataSourceList({
method: FetchMethod.get,
datasource: "MapGISLocalPlus",
gdbName: "sample",
useName: "",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code> // ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryTileDataSourceList = resourceServer.queryTileDataSourceList({
method: FetchMethod.get,
datasource: "MapGISLocalPlus",
gdbName: "sample",
useName: "",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryTileInfo">
<a class="href-link" href="#queryTileInfo">#</a>
<span class="code-name" style="font-size:30px">
queryTileInfo<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>获取指定瓦片详细信息,仅支持igs1.0</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>version</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>版本信息,默认为'1.0',可缺省(缺省时只返回直接发布的文档列表,如果v=2列表中将会包含目录形式发布的文档</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>name</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>瓦片名称,必传</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line3693">line 3693</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code> // ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryTileInfo = resourceServer.queryTileInfo({
method: FetchMethod.get,
name: "Tile:WorldMKTTile",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryTileList">
<a class="href-link" href="#queryTileList">#</a>
<span class="code-name" style="font-size:30px">
queryTileList<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>获取发布的瓦片列表,仅支持igs1.0</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>version</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>版本信息,默认为'1.0',可缺省(缺省时只返回直接发布的文档列表,如果v=2列表中将会包含目录形式发布的文档</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line3644">line 3644</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryTileList = resourceServer.queryTileList({
method: FetchMethod.get,
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryVectorTileFont">
<a class="href-link" href="#queryVectorTileFont">#</a>
<span class="code-name" style="font-size:30px">
queryVectorTileFont<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>矢量瓦片-获取字体,仅支持igs1.0</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>fontstack</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>字体名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>range</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>字体范围,必传</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line3789">line 3789</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryVectorTileFont = resourceServer.queryVectorTileFont({
method: FetchMethod.get,
fontstack: "黑体",
range: "0-255.pbf",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryVectorTileFontList">
<a class="href-link" href="#queryVectorTileFontList">#</a>
<span class="code-name" style="font-size:30px">
queryVectorTileFontList<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>矢量瓦片-获取字体列表,仅支持igs1.0</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line3747">line 3747</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryVectorTileFontList = resourceServer.queryVectorTileFontList({
method: FetchMethod.get,
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryVectorTileServiceFont">
<a class="href-link" href="#queryVectorTileServiceFont">#</a>
<span class="code-name" style="font-size:30px">
queryVectorTileServiceFont<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>矢量瓦片-获取指定服务的字体,仅支持igs1.0</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>serviceName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>矢量瓦片服务名,必传</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line3934">line 3934</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryVectorTileServiceFont = resourceServer.queryVectorTileServiceFont({
method: FetchMethod.get,
serviceName: "统一专题图",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryVectorTileServiceSprite">
<a class="href-link" href="#queryVectorTileServiceSprite">#</a>
<span class="code-name" style="font-size:30px">
queryVectorTileServiceSprite<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>矢量瓦片-获取服务的sprite图,仅支持igs1.0</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>serviceName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>矢量瓦片服务名,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>format</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>格式,支持后缀为.json或.png,必传</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line3982">line 3982</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryVectorTileServiceSprite =
resourceServer.queryVectorTileServiceSprite({
method: FetchMethod.get,
serviceName: "统一专题图",
format: ".json",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryVectorTileServiceStyle">
<a class="href-link" href="#queryVectorTileServiceStyle">#</a>
<span class="code-name" style="font-size:30px">
queryVectorTileServiceStyle<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>矢量瓦片-获取指定服务的样式,仅支持igs1.0</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>serviceName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>矢量瓦片服务名,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>tpl</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>自定义地图模板的索引号,必传</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line4095">line 4095</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryVectorTileServiceStyle = resourceServer.queryVectorTileServiceStyle({
method: FetchMethod.get,
serviceName: "统一专题图",
tpl: "0",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryVectorTileStyle">
<a class="href-link" href="#queryVectorTileStyle">#</a>
<span class="code-name" style="font-size:30px">
queryVectorTileStyle<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>矢量瓦片-获取上传样式,仅支持igs1.0</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>fileName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>样式文件名</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line3886">line 3886</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryVectorTileStyle = resourceServer.queryVectorTileStyle({
method: FetchMethod.get,
fileName: "统一专题图",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="queryVectorTileStyleList">
<a class="href-link" href="#queryVectorTileStyleList">#</a>
<span class="code-name" style="font-size:30px">
queryVectorTileStyleList<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>矢量瓦片-获取所有上传样式列表,仅支持igs1.0</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line3844">line 3844</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const queryVectorTileStyleList = resourceServer.queryVectorTileStyleList({
method: FetchMethod.get,
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="removeMapLayer">
<a class="href-link" href="#removeMapLayer">#</a>
<span class="code-name" style="font-size:30px">
removeMapLayer<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>删除文档中指定地图中指定图层,仅支持igs1.0</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>docName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>地图文档名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>mapIndex</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>地图索引,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>layerIndexs</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>图层索引列表(多个用英文逗号分隔)</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>guid</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>用户会话id</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line2806">line 2806</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const removeMapLayer = resourceServer.removeMapLayer({
method: FetchMethod.get,
docName: "sz",
mapIndex: "新地图1",
layerIndexs: "0",
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="updateLayerInGdbp">
<a class="href-link" href="#updateLayerInGdbp">#</a>
<span class="code-name" style="font-size:30px">
updateLayerInGdbp<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>更新GDB数据库中的一个图层,仅支持igs1.0</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbSvrName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>数据源名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>gdb名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>featureType</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>要素类型,必传,要素类型:SFeatureCls或AnnotationCls</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>layerName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>图层名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>updateObject</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last"><p>更新参数,必传,例如{"SrsName":"WGS1984_度","LayerName":"图层名"}</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line2548">line 2548</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const updateLayerInGdbp = resourceServer.updateLayerInGdbp({
method: FetchMethod.get,
gdbSvrName: "MapGISLocalPlus",
gdbName: "sample",
featureType: "SfeatureCls",
layerName: "等值线",
updateObject: {
SrsName: "WGS1984_度",
LayerName: "图层名",
},
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="updateSimpleFeature">
<a class="href-link" href="#updateSimpleFeature">#</a>
<span class="code-name" style="font-size:30px">
updateSimpleFeature<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>更新单个简单要素类信息</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>datasource</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>数据源名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>gdbName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>gdb名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>featureSetName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>简单要素类名称,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>updateInfo</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last"><p>更新的信息,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>userName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>数据源用户名</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line1132">line 1132</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<pre class="prettyprint"><code>// ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/services/system/ResourceServer",
});
const updateSimpleFeature = resourceServer.updateSimpleFeature({
method: FetchMethod.put,
datasource: "MapGISLocalPlus",
gdbName: "sample",
featureSetName: "等值线1",
updateInfo: {
name: "等值线",
srs: "WGS1984_度",
},
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
<div class="member">
<h4 class="name" id="updateVectorTileServiceStyle">
<a class="href-link" href="#updateVectorTileServiceStyle">#</a>
<span class="code-name" style="font-size:30px">
updateVectorTileServiceStyle<span class="signature">(options)</span>
</span>
</h4>
<div class="description">
<p>更新指定服务的样式,仅支持igs1.0</p>
</div>
<h4>参数:</h4>
<div class="table-container">
<table class="params table">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th class="last">描述</th>
</tr>
</thead>
<tbody>
<tr class="deep-level-0">
<td class="name"><code>options</code></td>
<td class="type">
</td>
<td class="description last"><p>查询参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>headers</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>请求头参数</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>success</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询成功回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>failure</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>查询失败回调函数,若使用Promise方式则不必填写</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>serviceName</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>矢量瓦片服务名,必传</p></td>
</tr>
<tr class="deep-level-1">
<td class="name"><code>updateObject</code></td>
<td class="type">
<span class="param-type">Object</span>
</td>
<td class="description last"><p>更新参数,必传</p></td>
</tr>
</tbody>
</table>
</div>
<dl class="details">
<p class="tag-source">
<a href="common_service_igs_ResourceServer.js.html" class="button">查看源代码</a>
<span>
<a href="common_service_igs_ResourceServer.js.html">common/service/igs/ResourceServer.js</a>, <a href="common_service_igs_ResourceServer.js.html#line4037">line 4037</a>
</span>
</p>
</dl>
<div class='columns method-parameter'>
<div class="column is-2"><label>返回值:</label></div>
<div class="column is-10">
<div class="columns">
<div class='column is-5 has-text-left'>
<label>类型: </label>
<span class="param-type">Promise.<Object></span>
</div>
</div>
</div>
</div>
<h5>示例</h5>
<p class="code-caption"><h5>igs1.0</h5></p>
<pre class="prettyprint"><code> // ES5引入方式
const { ResourceServer } = Zondy.Service
const { FetchMethod } = Zondy.Enum
// ES6引入方式
import { ResourceServer,FetchMethod } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//服务地址
url: "http://localhost:8089/igs/rest/mrcs",
});
const updateVectorTileServiceStyle =
resourceServer.updateVectorTileServiceStyle({
method: FetchMethod.post,
serviceName: "统一专题图",
updateObject: {},
success: function (res) {
console.log("res: ", res);
},
});</code></pre>
</div>
</div>
</div>
</article>
</section>
</div>
<footer class="footer">
<div class="content has-text-centered">
<p>文档生成<a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a></p>
<p class="sidebar-created-by">
<a href="http://www.smaryun.com" target="_blank">司马云</a> <span>© 2023 云生态圈</span>
<a href="http://192.168.82.89:8086/#/index" target="_blank">MapGIS Client for JavaScript</a>
</p>
</div>
</footer>
</div>
<div id="side-nav" class="side-nav">
<div style="margin-bottom: 10px;">
<img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#page-title">构造函数</a>
</div>
<div style="margin-bottom: 10px;">
<img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#member">成员变量</a>
</div>
<div style="margin-bottom: 10px;">
<img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#function">方法</a>
</div>
<div>
<img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#event">事件</a>
</div>
</div>
</div>
<script src="scripts/linenumber.js"> </script>
<script src="scripts/search.js"> </script>
</body>
</html>