# new ResourceServer(options)
èµ„æºæœåŠ¡ï¼ŒåŸºåœ°å€ä¸ºhttp://{ip}:{port}/igs/rest/services/system/ResourceServer
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
Object | æž„é€ å‚æ•° |
url |
String | æœåŠ¡åŸºåœ°å€ |
继承关系
æˆå‘˜å˜é‡
æˆå‘˜å˜é‡æ¦‚è¿°
åç§° | 类型 | æè¿° |
---|---|---|
clientId |
Boolean
|
|
enableGlobeFetch |
Boolean
|
|
headers |
String
|
|
requestInterceptor |
function
|
|
requestTimeout |
String
|
|
responseInterceptor |
function
|
|
tokenAttachType |
TokenAttachType
|
|
tokenKey |
String
|
|
tokenValue |
String
|
|
url |
String
|
|
æˆå‘˜å˜é‡è¯¦æƒ…
# enableGlobeFetch
是å¦ä½¿ç”¨ç¡®æ®å”¯ä¸€çš„fetch对象,默认为true,当设为falseæ—¶ï¼Œä¼šä½¿ç”¨è‡ªå·±ç§æœ‰çš„fetch对象,所有的请求设置ä¸ä¼šå½±å“全局
- Inherited From:
示例
//设置请求基地å€
// 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;
# headers
è¯·æ±‚å¤´å‚æ•°
- Inherited From:
示例
//è®¾ç½®è¯·æ±‚å¤´å‚æ•°
// 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';
# requestInterceptor
请求å‘逿‹¦æˆªå™¨
- Inherited From:
示例
//设置拦截器,任何一个继承自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() {};
# requestTimeout
请求超时时间,默认45000ms,å³45s
- Inherited From:
示例
//设置超时时间
//åˆå§‹åŒ–AddressServeræœåŠ¡å¯¹è±¡
// ES5引入方å¼
const { BaseServer } = zondy.service
// ES6引入方å¼
import { BaseServer } from "@mapgis/webclient-common"
let BaseServer = new BaseServer({
//è¶…æ—¶æ—¶é—´
requestTimeout: 2000
});
//动æ€ä¿®æ”¹
BaseServer.requestTimeout = 3000;
# responseInterceptor
请求å“应拦截器
- Inherited From:
示例
//设置拦截器,任何一个继承自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() {};
# tokenAttachType
指定tokené™„åŠ åˆ°ä½•å¤„
- Inherited From:
示例
//设置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;
# tokenKey
tokenå
- Inherited From:
示例
//设置tokenå
// ES5引入方å¼
const { BaseServer } = zondy.service
// ES6引入方å¼
import { BaseServer } from "@mapgis/webclient-common"
let BaseServer = new BaseServer({
//tokenå
tokenKey: 'ä½ çš„tokenKey'
});
//动æ€ä¿®æ”¹
BaseServer.tokenKey = 'æ–°tokenKey';
# tokenValue
token值
- Inherited From:
示例
//设置token值
// ES5引入方å¼
const { BaseServer } = zondy.service
// ES6引入方å¼
import { BaseServer } from "@mapgis/webclient-common"
let BaseServer = new BaseServer({
//token值
tokenValue: 'ä½ çš„token值'
});
//动æ€ä¿®æ”¹
BaseServer.tokenValue = '新token值';
# url
æœåŠ¡åŸºåœ°å€
- Inherited From:
示例
//设置请求基地å€
// ES5引入方å¼
const { BaseServer } = zondy.service
// ES6引入方å¼
import { BaseServer } from "@mapgis/webclient-common"
let BaseServer = new BaseServer({
//请求基地å€
url: 'ä½ çš„URL'
});
//动æ€ä¿®æ”¹
BaseServer.url = 'æ–°URL';
方法
方法概述
åç§° | 返回值类型 | æè¿° |
---|---|---|
addClass |
Promise.<Object>
|
|
addGDB |
Promise.<Object>
|
|
addMapLayer |
Promise.<Object>
|
|
attachGDB |
Promise.<Object>
|
|
createGdbLayer |
Promise.<Object>
|
|
createLayerInGdbp |
Promise.<Object>
|
|
deleteGDB |
Promise.<Object>
|
|
deleteLayerInGdbp |
Promise.<Object>
|
|
deleteSimpleFeature |
Promise.<Object>
|
|
detachGDB |
Promise.<Object>
|
|
editLayerSystemLib |
Promise.<Object>
|
|
editMapLayerIndex |
Promise.<Object>
|
|
editMapLayerSystemLib |
Promise.<Object>
|
|
editTempDataInfo |
Promise.<Object>
|
|
getColorByIndex |
Promise.<Object>
|
|
getColorIndex |
Promise.<Object>
|
|
getSimpleFeature |
Promise.<Object>
|
|
operaGdbp |
Promise.<Object>
|
|
queryDataSourceFeatureClassList |
Promise.<Object>
|
|
queryDataSourceInfo |
Promise.<Object>
|
|
queryDataSourceList |
Promise.<Object>
|
|
queryDsAllData |
Promise.<Object>
|
|
queryFeatureDataSourceList |
Promise.<Object>
|
|
queryGDBList |
Promise.<Object>
|
|
queryGdbpAllData |
Promise.<Object>
|
|
queryGDBPInfo |
Promise.<Object>
|
|
queryLegendInfo |
Promise.<Object>
|
|
queryMapDocList |
Promise.<Object>
|
|
queryMapInfo |
Promise.<Object>
|
|
queryMapInfoByIndex |
Promise.<Object>
|
|
queryMapLayerInfo |
Promise.<Object>
|
|
queryMapLayerInfoByIndex |
Promise.<Object>
|
|
queryServerInfo |
|
|
querySimpleFeatureList |
Promise.<Object>
|
|
querySrsInfo |
Promise.<Object>
|
|
querySrsList |
Promise.<Object>
|
|
querySymbol |
Promise.<Object>
|
|
querySymbolList |
Promise.<Object>
|
|
querySystemColorList |
Promise.<Object>
|
|
querySystemLibList |
Promise.<Object>
|
|
queryTempDataFeatures |
Promise.<Object>
|
|
queryTempDataInfo |
Promise.<Object>
|
|
queryTempDataServerInfo |
Promise.<Object>
|
|
queryTileDataSourceList |
Promise.<Object>
|
|
queryTileInfo |
Promise.<Object>
|
|
queryTileList |
Promise.<Object>
|
|
queryVectorTileFont |
Promise.<Object>
|
|
queryVectorTileFontList |
Promise.<Object>
|
|
queryVectorTileServiceFont |
Promise.<Object>
|
|
queryVectorTileServiceSprite |
Promise.<Object>
|
|
queryVectorTileServiceStyle |
Promise.<Object>
|
|
queryVectorTileStyle |
Promise.<Object>
|
|
queryVectorTileStyleList |
Promise.<Object>
|
|
removeMapLayer |
Promise.<Object>
|
|
updateLayerInGdbp |
Promise.<Object>
|
|
updateSimpleFeature |
Promise.<Object>
|
|
updateVectorTileServiceStyle |
Promise.<Object>
|
|
方法详情
# addClass(options)
在数æ®åº“ä¸åˆ›å»ºä¸€ä¸ªç±»
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
datasource |
String | æ•°æ®æºåç§°ï¼Œå¿…ä¼ |
gdbName |
String | gdbåç§°ï¼Œå¿…ä¼ |
userName |
String | æ•°æ®æºç”¨æˆ·å |
layerName |
String | 图层åç§°ï¼Œå¿…ä¼ |
geomType |
String | å‡ ä½•ç±»åž‹ï¼Œå¿…ä¼ ï¼Œigs2.0支æŒ"Pnt" "Lin" "Reg" "Ann" "Surface" "Entity" "Unknown" |
srs |
String | å‚考系信æ¯ï¼Œæ”¯æŒmapgiså‚ç…§ç³»åç§°å’ŒEPSGç¼–å·,比如EPSG:4326ã€WGS1984_度 |
fdsName |
String | è¦ç´ 集åç§° |
fields |
Array.<Object> | å±žæ€§å—æ®µç»“构信æ¯ï¼Œå¿…ä¼ ï¼Œç¤ºä¾‹:[{"name": "string","type": "string","alias": "string","length": 0}] |
featureType |
String | è¦ç´ 类型,å–值为sfcls 或 acls,默认sfcls,目å‰ä»…支æŒç®€å•è¦ç´ 类和注记类(åªæ”¯æŒæ–‡æœ¬ç±»åž‹æ³¨è®°) |
示例
igs2.0
// 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);
},
});
# addGDB(options)
新建数æ®åº“
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
datasource |
String | æ•°æ®åº“åï¼Œå¿…ä¼ |
gdbName |
String | gdbåç§° |
userName |
String | æ•°æ®æºç”¨æˆ·å |
path |
String | gdb路径 |
示例
igs2.0
// 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);
},
});
igs1.0
// 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);
},
});
# addMapLayer(options)
æ·»åŠ å›¾å±‚åˆ°æ–‡æ¡£ä¸æŒ‡å®šåœ°å›¾,仅支æŒigs1.0
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
docName |
String | 地图文档åç§°ï¼Œå¿…ä¼ |
mapIndex |
String | åœ°å›¾ç´¢å¼•ï¼Œå¿…ä¼ |
updateObject |
Object | æ›´æ–°å‚æ•°ï¼Œå¿…ä¼ |
示例
igs1.0
// 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);
},
});
# attachGDB(options)
é™„åŠ æ•°æ®åº“
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
userName |
String | æ•°æ®æºç”¨æˆ·å |
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
datasource |
String | æ•°æ®æºåï¼Œå¿…ä¼ |
gdbName |
String | gdbåç§°ï¼Œå¿…ä¼ |
path |
String | gdbè·¯å¾„ï¼Œå¿…ä¼ |
userName |
String | æ•°æ®æºç”¨æˆ·å |
示例
igs2.0
// 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)
}
})
igs1.0
// 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);
},
});
# createGdbLayer(options)
在GDBæ•°æ®åº“ä¸åˆ›å»ºä¸€ä¸ªå›¾å±‚,仅支æŒigs1.0
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
gdbSvrName |
String | æ•°æ®æºåç§°,å¿…ä¼ |
gdbName |
String | GDBæ•°æ®åç§°,å¿…ä¼ |
featureType |
String | è¦ç´ ç±»åž‹ï¼Œå¿…ä¼ ã€‚FeatureDS(è¦ç´ æ•°æ®é›†ï¼‰ã€SfeatureCls(简å•è¦ç´ 类)ã€ObjectCls(对象类)ã€AnnotationCls(注记类)ã€RasterDatasetï¼ˆæ …æ ¼æ•°æ®é›†ï¼‰ã€RasterCatalogï¼ˆæ …æ ¼ç›®å½•ï¼‰ã€GnetClsï¼ˆå‡ ä½•ç½‘ç»œï¼‰ã€AddrBaseCls(地å库)ç‰ã€‚ |
layerName |
String | 图层åç§°,å¿…ä¼ |
geoType |
String | å‡ ä½•ç±»åž‹,å¿…ä¼ ã€‚åŒºå›¾å±‚ä¸ºRegã€çº¿å›¾å±‚为Linã€ç‚¹å›¾å±‚为Pnt |
srefName |
String | å‚考系åç§° |
dsName |
String | è¦ç´ æ•°æ®é›†åç§° |
attStruct |
CAttStruct | 图层数æ®ç»“æž„ |
示例
igs1.0
// 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);
},
});
# createLayerInGdbp(options)
在GDBæ•°æ®åº“ä¸åˆ›å»ºä¸€ä¸ªå›¾å±‚,仅支æŒigs1.0
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
gdbSvrName |
String | æ•°æ®æºåç§°,å¿…ä¼ |
gdbName |
String | gdbåç§°,å¿…ä¼ |
featureType |
String | è¦ç´ 类型,å¿…ä¼ ,è¦ç´ æ•°æ®é›†ä¸ºFeatureDSã€ç®€å•è¦ç´ 类为SFeatureCls,对象类为ObjectCls,注记类为AnnotationCls,网络类为GNetCls…..。 |
layerName |
String | 图层åç§°,å¿…ä¼ |
geoType |
String | å‡ ä½•ç±»åž‹ï¼Œå¿…ä¼ ï¼ŒåŒºå›¾å±‚ä¸ºRegã€çº¿å›¾å±‚为Linã€ç‚¹å›¾å±‚为Pnt |
srefName |
String | å‚考系åç§° |
dsName |
String | è¦ç´ åç§° |
attStruct |
CAttStruct | 属性结构 |
示例
igs1.0
// 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);
},
});
# deleteGDB(options)
åˆ é™¤æ•°æ®åº“
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
datasource |
String | æ•°æ®æºåï¼Œå¿…ä¼ |
gdbName |
String | gdbåç§°ï¼Œå¿…ä¼ |
userName |
String | æ•°æ®æºç”¨æˆ·å |
示例
igs2.0
// 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);
},
});
igs1.0
// 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);
},
});
# deleteLayerInGdbp(options)
åˆ é™¤GDBæ•°æ®åº“ä¸çš„一个图层,仅支æŒigs1.0
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
gdbSvrName |
String | æ•°æ®æºåç§°,å¿…ä¼ |
gdbName |
String | gdbåç§°,å¿…ä¼ |
featureType |
String | è¦ç´ 类型,å¿…ä¼ ,è¦ç´ æ•°æ®é›†ä¸ºFeatureDSã€ç®€å•è¦ç´ 类为SFeatureCls,对象类为ObjectCls,注记类为AnnotationCls,网络类为GNetCls…..。 |
layerName |
String | 图层åç§°,å¿…ä¼ |
示例
igs1.0
// 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);
},
});
# deleteSimpleFeature(options)
åˆ é™¤ç®€å•è¦ç´ ç±»
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
datasource |
String | gdbåç§°ï¼Œå¿…ä¼ |
gdbName |
String | gdbåç§°ï¼Œå¿…ä¼ |
featureSetName |
String | 简å•è¦ç´ ç±»åç§°ï¼Œå¿…ä¼ |
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
userName |
String | æ•°æ®æºç”¨æˆ·å |
示例
// 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);
},
});
# detachGDB(options)
注销数æ®åº“
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
datasource |
String | æ•°æ®æºåï¼Œå¿…ä¼ |
gdbName |
String | gdbåç§°ï¼Œå¿…ä¼ |
userName |
String | æ•°æ®æºç”¨æˆ·å |
示例
igs2.0
// 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);
},
});
igs1.0
// 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);
},
});
# editLayerSystemLib(options)
修改图层的系统库,仅支æŒigs1.0
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
systemLib |
String | 系统库id或åç§° |
gdbps |
String | 图层列表,多个用英文逗å·éš”å¼€ |
示例
igs1.0
// 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);
},
});
# editMapLayerIndex(options)
ä¿®æ”¹æ–‡æ¡£ä¸æŒ‡å®šåœ°å›¾ä¸‹å›¾å±‚的索引,仅支æŒigs1.0
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
docName |
String | 地图文档åç§°ï¼Œå¿…ä¼ |
mapIndex |
String | åœ°å›¾ç´¢å¼•ï¼Œå¿…ä¼ |
guid |
String | 用户会è¯id |
updateObject |
String | æ›´æ–°å‚æ•°ï¼Œå¿…ä¼ |
示例
igs1.0
// 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);
},
});
# editMapLayerSystemLib(options)
修改文档下图层的系统库,仅支æŒigs1.0
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
docName |
String | 地图文档åç§°ï¼Œå¿…ä¼ |
mapIndex |
String | åœ°å›¾ç´¢å¼•ï¼Œå¿…ä¼ |
systemLib |
String | 系统库id或åç§° |
layerIndexs |
String | 图层索引列表(多个用英文逗å·åˆ†éš”) |
guid |
String | 用户会è¯id |
示例
igs1.0
// 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);
},
});
# editTempDataInfo(options)
修改系统库
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
urls |
String | å›¾å±‚åˆ—è¡¨ï¼Œå¿…ä¼ ï¼Œå¯èƒ½æ˜¯gdbpã€filePath,多个用","分隔 |
systemLibId |
String | 系统库id |
systemLibName |
String | 系统库的å称,systemLibId傿•°ä¸ºç©ºæ—¶æœ‰æ•ˆ |
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
示例
// 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);
},
});
# getColorByIndex(options)
æ ¹æ®é¢œè‰²å·èŽ·å–RGB值
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
sysLib |
String | 系统库idï¼Œå¿…ä¼ |
colorIndex |
String | 颜色å·ï¼Œå¿…ä¼ |
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
示例
igs1.0
// 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);
},
});
igs1.0
// 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);
},
});
# getColorIndex(options)
æ ¹æ®RGB值获å–颜色å·
傿•°
åç§° | 类型 | 默认值 | æè¿° |
---|---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
||
sysLib |
String | 系统库idï¼Œå¿…ä¼ |
|
color |
Color | é¢œè‰²å€¼ï¼Œå¿…ä¼ |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
|
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
|
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
|
addIfNotExist |
Boolean | false | 如果查找到的颜色ä¸å˜åœ¨ï¼Œæ˜¯å¦æ–°å¢ž |
示例
igs2.0
// 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);
},
});
igs1.0
// 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);
},
});
# getSimpleFeature(options)
获å–简å•è¦ç´ ç±»
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
datasource |
String | æ•°æ®æºåç§°ï¼Œå¿…ä¼ |
gdbName |
String | gdbåç§°ï¼Œå¿…ä¼ |
featureSetName |
String | 简å•è¦ç´ ç±»åç§°ï¼Œå¿…ä¼ |
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
userName |
String | æ•°æ®æºç”¨æˆ·å |
示例
// 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);
},
});
# operaGdbp(options)
GDBæ“作接å£,仅支æŒigs1.0
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
operType |
String | æ“作类型,å¿…ä¼ ï¼ˆåˆ†ä¸ºï¼šattachã€createã€deleteã€detach) |
gdbName |
String | GDBæ•°æ®åç§°,å¿…ä¼ |
gdbServerName |
String | GDBæ•°æ®æºåç§° |
useName |
String | 用户å |
password |
String | 密ç ,igs1.0有效 |
path |
String | hdf路径或67文件夹路径 |
示例
igs1.0
// 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);
},
});
# queryDataSourceFeatureClassList(options)
èŽ·å–æ•°æ®é›†ä¸‹çš„è¦ç´ 类列表,仅支æŒigs1.0
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
gdbServerName |
String | GDBæ•°æ®æºåç§°ï¼Œå¿…ä¼ |
gdbName |
String | GDBæ•°æ®åç§°,å¿…ä¼ |
dsName |
String | è¦ç´ æ•°æ®é›†åç§°,å¿…ä¼ |
useName |
String | 用户å |
password |
String | 密ç ,igs1.0有效 |
示例
igs1.0
// 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);
},
});
# queryDataSourceInfo(options)
æŸ¥è¯¢æ•°æ®æºä¿¡æ¯
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
datasource |
String | æ•°æ®åº“åï¼Œå¿…ä¼ |
示例
igs2.0
// 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);
},
});
# queryDataSourceList(options)
èŽ·å–æ•°æ®æºåˆ—表,支æŒigs1.0å’Œigs2.0
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
示例
igs2.0
// 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);
},
});
igs1.0
// 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);
},
});
# queryDsAllData(options)
获å–GDB下æŸç±»åž‹çš„æ‰€æœ‰æ•°æ®,仅支æŒigs1.0
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
gdbSvrName |
String | æ•°æ®æºåç§°,å¿…ä¼ |
gdbName |
String | gdbåç§°,å¿…ä¼ |
clsType |
String | è¦ç´ æ•°æ®ç±»åž‹,å¿…ä¼ ã€‚æ•°æ®ç±»åž‹ï¼ˆåˆ†ä¸ºï¼šdsã€rcatã€rasã€sfclsã€fclsã€aclsã€oclsã€rdsã€rcsã€nclsã€sfcls_new)或者为srefID å‚考系id |
useName |
String | 用户å |
password |
String | 密ç ,igs1.0有效 |
dsName |
String | è¦ç´ æ•°æ®é›†åç§°,å¿…ä¼ |
示例
igs1.0
// 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);
},
});
# queryFeatureDataSourceList(options)
查询è¦ç´ æ•°æ®é›†åˆ—表
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
datasource |
String | æ•°æ®æºåï¼Œå¿…ä¼ |
gdbName |
String | gdbåç§°ï¼Œå¿…ä¼ |
userName |
String | æ•°æ®æºç”¨æˆ·å |
示例
igs2.0
// 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)
}
})
igs1.0
// 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)
}
})
# queryGDBList(options)
查询GDB列表
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
datasource |
String | æ•°æ®æºåï¼Œå¿…ä¼ |
userName |
String | æ•°æ®æºç”¨æˆ·å |
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
示例
igs2.0
// 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)
}
})
igs1.0
// 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);
},
});
# queryGdbpAllData(options)
获å–GDB下æŸç±»åž‹çš„æ‰€æœ‰æ•°æ®,仅支æŒigs1.0
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
gdbSvrName |
String | æ•°æ®æºåç§°,å¿…ä¼ |
gdbName |
String | gdbåç§°,å¿…ä¼ |
clsType |
String | è¦ç´ æ•°æ®ç±»åž‹,å¿…ä¼ ã€‚æ•°æ®ç±»åž‹ï¼ˆåˆ†ä¸ºï¼šdsã€rcatã€rasã€sfclsã€fclsã€aclsã€oclsã€rdsã€rcsã€nclsã€sfcls_new)或者为srefID å‚考系id |
useName |
String | 用户å |
password |
String | 密ç ,igs1.0有效 |
containAll |
Boolean | 是å¦è¿”回hdf下所有的对应数æ®,false表示åªè¿”回对应节点下的数æ®ï¼Œé»˜è®¤å€¼ä¸ºtrue |
示例
igs1.0
// 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);
},
});
# queryGDBPInfo(options)
获å–GDB下æŸä¸ªå›¾å±‚的详细信æ¯,仅支æŒigs1.0
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
gdbpUrl |
String | gdbpåœ°å€ |
proj |
String | 对shpå›¾å±‚æ”¯æŒæŠ•å½±ï¼ŒèŽ·å–到投影åŽçš„èŒƒå›´ï¼Œä¼ å‚考系åç§° |
示例
igs1.0
// 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);
},
});
# queryLegendInfo(options)
获å–地图文档æœåŠ¡çš„å›¾ä¾‹ä¿¡æ¯,仅支æŒigs1.0
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
docName |
String | æœåŠ¡å |
layerIndex |
String | 生æˆå›¾ä¾‹çš„图层索引å·(多个用英文逗å·åˆ†éš”) |
size |
String | æ ¼å¼ï¼šwidth,height |
guid |
String | 用户会è¯id |
maxCount |
String | è¿”å›žå›¾ä¾‹é¡¹æœ€å¤§æ•°é‡ |
page |
String | 页ç |
pageSize |
String | åˆ†é¡µå¤§å° |
where |
String | 过滤æ¡ä»¶ |
range |
String | 范围 |
示例
igs1.0
// 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);
},
});
# queryMapDocList(options)
获å–å‘布的文档列表,仅支æŒigs1.0
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
version |
String | 版本信æ¯ï¼Œé»˜è®¤ä¸º'1.0',å¯ç¼ºçœï¼ˆç¼ºçœæ—¶åªè¿”回直接å‘布的文档列表,如果v=2列表ä¸å°†ä¼šåŒ…å«ç›®å½•å½¢å¼å‘布的文档 |
示例
igs1.0
// 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);
},
});
# queryMapInfo(options)
èŽ·å–æ–‡æ¡£è¯¦ç»†ä¿¡æ¯,仅支æŒigs1.0
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
docName |
String | 文档åç§°,å¿…ä¼ |
tree |
Boolean | æ˜¯å¦æŒ‰æ ‘形显示,缺çœfalse |
include |
Object | 返回ä¸è¦æ±‚包å«çš„属性 {"IncludeDetails":true,"IncludeSubs":true} |
returnFullStyle |
String | 是å¦è¿”回全部信æ¯çš„æ ‡å¿—ä½e |
guid |
String | 用户会è¯id,å¯ä»¥ç¼ºçœ |
示例
igs1.0
// 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);
},
});
# queryMapInfoByIndex(options)
èŽ·å–æŒ‡å®šåœ°å›¾çš„详细信æ¯,仅支æŒigs1.0
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
docName |
String | 地图文档åç§°ï¼Œå¿…ä¼ |
mapIndex |
String | åœ°å›¾ç´¢å¼•ï¼Œå¿…ä¼ |
include |
Object | 返回ä¸è¦æ±‚包å«çš„属性 {"IncludeDetails":true,"IncludeSubs":true} |
returnFullStyle |
String | 是å¦è¿”回全部信æ¯çš„æ ‡å¿—ä½e |
guid |
String | 用户会è¯id,å¯ä»¥ç¼ºçœ |
示例
igs1.0
// 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);
},
});
# queryMapLayerInfo(options)
èŽ·å–æŒ‡å®šåœ°å›¾ä¸‹æ‰€æœ‰å›¾å±‚的信æ¯,仅支æŒigs1.0
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
docName |
String | 地图文档åç§°ï¼Œå¿…ä¼ |
mapIndex |
String | åœ°å›¾ç´¢å¼•ï¼Œå¿…ä¼ |
guid |
String | 用户会è¯id,å¯ä»¥ç¼ºçœ |
示例
igs1.0
// 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);
},
});
# queryMapLayerInfoByIndex(options)
èŽ·å–æŒ‡å®šåœ°å›¾ä¸‹æŒ‡å®šå›¾å±‚的信æ¯,仅支æŒigs1.0
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
docName |
String | 地图文档åç§°ï¼Œå¿…ä¼ |
mapIndex |
String | åœ°å›¾ç´¢å¼•ï¼Œå¿…ä¼ |
layerId |
String | å›¾å±‚ç´¢å¼•ï¼Œå¿…ä¼ |
guid |
String | 用户会è¯id,å¯ä»¥ç¼ºçœ |
returnFullStyle |
String | 是å¦è¿”回全部信æ¯çš„æ ‡å¿—ä½e |
示例
igs1.0
// 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);
},
});
# queryServerInfo(options)
èŽ·å–æœåŠ¡ä¿¡æ¯ï¼ŒIGS2.0新增æœåŠ¡
傿•°
åç§° | 类型 | 默认值 | æè¿° |
---|---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
||
success |
function | æ— | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | æ— | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
- Inherited From:
示例
èŽ·å–æœåŠ¡ä¿¡æ¯-回调方å¼
server.queryServerInfo({
success: function (result) {
console.log('请求æˆåŠŸï¼š', result);
},
failure: function (result) {
console.log('请求失败:', result);
}
});
èŽ·å–æœåŠ¡ä¿¡æ¯-promiseæ–¹å¼
server.queryServerInfo({
})
.then(function (result) {
console.log('请求æˆåŠŸï¼š', result);
}).catch(function (result) {
console.log('请求失败:', result);
});
# querySimpleFeatureList(options)
简å•è¦ç´ 类列表
傿•°
åç§° | 类型 | 默认值 | æè¿° |
---|---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
||
headers |
String | è¯·æ±‚å¤´å‚æ•° |
|
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
|
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
|
datasource |
String | æ•°æ®æºåï¼Œå¿…ä¼ |
|
gdbName |
String | gdbåç§°ï¼Œå¿…ä¼ |
|
userName |
String | æ•°æ®æºç”¨æˆ·å |
|
fdsName |
String | è¦ç´ æ•°æ®é›†å称,如果ä¸ä¸ºç©ºï¼Œåˆ™ä»…èŽ·å–æŒ‡å®šè¦ç´ æ•°æ®ä¸‹çš„æ•°æ® |
|
includeAll |
Boolean | false | 是å¦åŒ…å«è¦ç´ æ•°æ®é›†ä¸‹åŠéžè¦ç´ æ•°æ®é›†ä¸‹çš„简å•è¦ç´ 类数æ®ï¼Œä»…当fdsName为空时有效 |
示例
igs2.0
// 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);
},
});
igs1.0
// 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);
},
});
# querySrsInfo(options)
查询å‚考系信æ¯
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
datasource |
String | æ•°æ®æºåç§°ï¼Œå¿…ä¼ |
gdbName |
String | gdbåç§°ï¼Œå¿…ä¼ |
srsName |
String | å‚考系åç§°ï¼Œå¿…ä¼ ,在使用igs1.0æœåŠ¡æ—¶ï¼Œéœ€è¦ä¼ å…¥å‚考系id |
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
userName |
String | æ•°æ®æºç”¨æˆ·å |
示例
igs2.0
// 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);
},
});
igs1.0
// 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);
},
});
# querySrsList(options)
查询å‚考系列表
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
datasource |
String | æ•°æ®æºåç§°ï¼Œå¿…ä¼ |
gdbName |
String | gdbåç§°ï¼Œå¿…ä¼ |
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
userName |
String | æ•°æ®æºç”¨æˆ·å |
示例
igs2.0
// 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);
},
});
igs1.0
// 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);
},
});
# querySymbol(options)
修改图层的系统库,仅支æŒigs1.0
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
systemLib |
String | 系统库guid或者åç§° |
type |
String | 类型SymbolGeomType(GeomEnt3D,GeomLin,GeomPnt,GeomReg,GeomSur3D,Unknown) |
systemNo |
String | 符å·åºå· |
systemSubNo |
String | 符å·ååºå· |
示例
igs1.0
// 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);
},
});
# querySymbolList(options)
修改图层的系统库,仅支æŒigs1.0
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
systemLib |
String | 系统库guid或者åç§° |
page |
String | 页ç (默认0) |
size |
String | 分页é‡(默认20) |
type |
String | 类型SymbolGeomType(GeomEnt3D,GeomLin,GeomPnt,GeomReg,GeomSur3D,Unknown) |
示例
igs1.0
// ES5引入方å¼
const { ResourceServer } = zondy.service
// ES6引入方å¼
import { ResourceServer } from "@mapgis/webclient-common"
const resourceServer = new ResourceServer({
//æœåŠ¡åœ°å€
url: "http://localhost:8089/igs/rest/mrcs",
});
# querySystemColorList(options)
查询系统颜色列表
傿•°
åç§° | 类型 | 默认值 | æè¿° |
---|---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
||
sysLib |
String | 系统库idï¼Œå¿…ä¼ |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
|
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
|
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
|
page |
Number | 1 | 页ç |
pageSize |
Number | 20 | æ¯é¡µæ•°é‡ |
示例
igs2.0
// 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);
},
});
igs1.0
// 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);
},
});
# querySystemLibList(options)
查询系统库资æºåˆ—表
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
示例
igs2.0
// 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);
},
});
igs1.0
// 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);
},
});
# queryTempDataFeatures(options)
获å–临时图层è¦ç´ ä¿¡æ¯
傿•°
åç§° | 类型 | 默认值 | æè¿° |
---|---|---|---|
options |
è¦ç´ æŸ¥è¯¢å‚æ•° |
||
method |
String | FetchMethod.get | 请求类型 |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
|
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
|
geometry |
Geometry | è¦ç´ æŸ¥è¯¢å‡ ä½•æ¡ä»¶ |
|
url |
String | 图层资æºçš„路径,å¯èƒ½æ˜¯gdbpã€filePath |
|
mapResource |
Object | 地图文档的资æºï¼Œä¸Žurls二选一,mapResource优先,示例:"{"url": "/root/wuhan.mapx","mapIndex ": 0,"layerId": "string"}" |
|
where |
String | è¦ç´ 查询whereæ¡ä»¶ |
|
outFields |
String | è¾“å‡ºå±žæ€§å—æ®µï¼Œå¯ä¸º*表示所有,多个用英文逗å·åˆ†éš” |
|
objectIds |
String | 过滤id,多个用英文逗å·åˆ†éš”(傿•°ä¼˜å…ˆçº§å¾ˆé«˜ï¼Œå¯èƒ½å¯¼è‡´å…¶å®ƒç›é€‰æ¡ä»¶å¤±æ•ˆ) |
|
distance |
Number | 0 | å‡ ä½•ç¼“å†²çš„è·ç¦»ï¼Œgeometry为pointã€lineæ—¶æœ‰æ•ˆï¼ˆè‹¥æ•°æ®æºä¸ºå¤§æ•°æ®PGæ•°æ®ï¼Œä¸”geometryType为line或者point时为必填数æ®ï¼‰ |
geometryPrecision |
Number | 返回è¦ç´ å‡ ä½•ä¿¡æ¯ä¸åæ ‡xy的精度 |
|
spatialRel |
SpatialRelation | å‡ ä½•æ¡ä»¶çš„空间判定规则,Intersects(相交)ã€EnvelopeIntersects(外包矩形相交)ã€Contains(包å«)ã€Disjoint(相离) |
|
orderByFields |
String | 排åºå—段,æ ¼å¼: fieldName [ASC|DESC] |
|
groupByFieldsForStatistics |
String | åˆ†ç»„ç»Ÿè®¡çš„å—æ®µä¿¡æ¯,æ ¼å¼ä¸ºfield1,field2 |
|
resultRecordCount |
Number | 20 | åˆ†é¡µå‚æ•°ï¼šç»“æžœè¿”å›žæ¡æ•°ï¼Œé»˜è®¤20 |
resultOffset |
Number | åˆ†é¡µå‚æ•°ï¼šè·³è¿‡æ¡æ•° |
|
outStatistics |
Array | è®¡ç®—ä¸€ä¸ªæˆ–å¤šä¸ªåŸºäºŽå—æ®µçš„统计信æ¯ç»“æž„,统计类型包括:FUNCTION_MAX/FUNCTION_MIN/FUNCTION_SUM/FUNCTION_AVG/FUNCTION_COUNT/FUNCTION_MAX_OID,示例:"[{"statisticType": "FUNCTION_SUM","onStatisticField": "field1","outStatisticFieldName":"fieldName1"}]" |
|
returnGeometry |
Boolean | true | 是å¦è¿”å›žå‡ ä½•ï¼Œé»˜è®¤ä¸ºtrue |
returnAttribute |
Boolean | true | 是å¦è¿”回属性,默认为true |
returnStyle |
Boolean | false | 是å¦è¿”å›žå›¾å½¢å‚æ•°ä¿¡æ¯ï¼Œé»˜è®¤ä¸ºfalse |
returnIdsOnly |
Boolean | false | 是å¦åªè¿”回id,默认为false |
returnCountOnly |
Boolean | false | 是å¦åªè¿”å›žæ¡æ•°ï¼Œé»˜è®¤ä¸ºfalse |
returnExtentOnly |
Boolean | false | 是å¦åªè¿”回范围,默认为false |
returnZ |
Boolean | false | 是å¦è¿”回Z轴,默认为false |
is6xAcls |
Boolean | true | 图层资æºçš„路径是filePath且åŽç¼€æ˜¯.wtæ—¶ï¼Œéœ€è¦æŒ‡å®šå›¾å±‚èµ„æºæ˜¯å¦æ˜¯6x注记,默认为6x点 |
示例
// 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);
},
});
# queryTempDataInfo(options)
获å–临时数æ®ä¿¡æ¯
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
url |
String | 资æºurl |
示例
// 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);
},
});
# queryTempDataServerInfo(options)
获å–ä¸´æ—¶æ•°æ®æœåŠ¡ä¿¡æ¯
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
示例
igs2.0
// 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);
},
});
# queryTileDataSourceList(options)
èŽ·å–æ …æ ¼æ•°æ®é›†åˆ—表
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
datasource |
String | æ•°æ®æºåï¼Œå¿…ä¼ |
gdbName |
String | gdbåç§°ï¼Œå¿…ä¼ |
userName |
String | æ•°æ®æºç”¨æˆ·å |
示例
igs2.0
// 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);
},
});
igs1.0
// 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);
},
});
# queryTileInfo(options)
èŽ·å–æŒ‡å®šç“¦ç‰‡è¯¦ç»†ä¿¡æ¯,仅支æŒigs1.0
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
version |
String | 版本信æ¯ï¼Œé»˜è®¤ä¸º'1.0',å¯ç¼ºçœï¼ˆç¼ºçœæ—¶åªè¿”回直接å‘布的文档列表,如果v=2列表ä¸å°†ä¼šåŒ…å«ç›®å½•å½¢å¼å‘布的文档 |
name |
String | 瓦片åç§°ï¼Œå¿…ä¼ |
示例
igs1.0
// 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);
},
});
# queryTileList(options)
获å–å‘布的瓦片列表,仅支æŒigs1.0
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
version |
String | 版本信æ¯ï¼Œé»˜è®¤ä¸º'1.0',å¯ç¼ºçœï¼ˆç¼ºçœæ—¶åªè¿”回直接å‘布的文档列表,如果v=2列表ä¸å°†ä¼šåŒ…å«ç›®å½•å½¢å¼å‘布的文档 |
示例
igs1.0
// 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);
},
});
# queryVectorTileFont(options)
矢é‡ç“¦ç‰‡-获å–å—体,仅支æŒigs1.0
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
fontstack |
String | å—体åç§°,å¿…ä¼ |
range |
String | å—ä½“èŒƒå›´ï¼Œå¿…ä¼ |
示例
igs1.0
// 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);
},
});
# queryVectorTileFontList(options)
矢é‡ç“¦ç‰‡-获å–å—体列表,仅支æŒigs1.0
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
示例
igs1.0
// 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);
},
});
# queryVectorTileServiceFont(options)
矢é‡ç“¦ç‰‡-èŽ·å–æŒ‡å®šæœåŠ¡çš„å—体,仅支æŒigs1.0
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
serviceName |
String | 矢é‡ç“¦ç‰‡æœåŠ¡å,å¿…ä¼ |
示例
igs1.0
// 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);
},
});
# queryVectorTileServiceSprite(options)
矢é‡ç“¦ç‰‡-èŽ·å–æœåŠ¡çš„sprite图,仅支æŒigs1.0
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
serviceName |
String | 矢é‡ç“¦ç‰‡æœåŠ¡å,å¿…ä¼ |
format |
String | æ ¼å¼ï¼Œæ”¯æŒåŽç¼€ä¸º.json或.png,å¿…ä¼ |
示例
igs1.0
// 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);
},
});
# queryVectorTileServiceStyle(options)
矢é‡ç“¦ç‰‡-èŽ·å–æŒ‡å®šæœåŠ¡çš„æ ·å¼,仅支æŒigs1.0
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
serviceName |
String | 矢é‡ç“¦ç‰‡æœåŠ¡å,å¿…ä¼ |
tpl |
String | 自定义地图模æ¿çš„索引å·,å¿…ä¼ |
示例
igs1.0
// 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);
},
});
# queryVectorTileStyle(options)
矢é‡ç“¦ç‰‡-获å–ä¸Šä¼ æ ·å¼,仅支æŒigs1.0
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
fileName |
String | æ ·å¼æ–‡ä»¶å |
示例
igs1.0
// 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);
},
});
# queryVectorTileStyleList(options)
矢é‡ç“¦ç‰‡-èŽ·å–æ‰€æœ‰ä¸Šä¼ æ ·å¼åˆ—表,仅支æŒigs1.0
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
示例
igs1.0
// 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);
},
});
# removeMapLayer(options)
åˆ é™¤æ–‡æ¡£ä¸æŒ‡å®šåœ°å›¾ä¸æŒ‡å®šå›¾å±‚,仅支æŒigs1.0
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
docName |
String | 地图文档åç§°ï¼Œå¿…ä¼ |
mapIndex |
String | åœ°å›¾ç´¢å¼•ï¼Œå¿…ä¼ |
layerIndexs |
String | 图层索引列表(多个用英文逗å·åˆ†éš”) |
guid |
String | 用户会è¯id |
示例
igs1.0
// 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);
},
});
# updateLayerInGdbp(options)
æ›´æ–°GDBæ•°æ®åº“ä¸çš„一个图层,仅支æŒigs1.0
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
gdbSvrName |
String | æ•°æ®æºåç§°,å¿…ä¼ |
gdbName |
String | gdbåç§°,å¿…ä¼ |
featureType |
String | è¦ç´ 类型,å¿…ä¼ ,è¦ç´ 类型:SFeatureCls或AnnotationCls |
layerName |
String | 图层åç§°,å¿…ä¼ |
updateObject |
Object | æ›´æ–°å‚æ•°ï¼Œå¿…ä¼ ,例如{"SrsName":"WGS1984_度","LayerName":"图层å"} |
示例
igs1.0
// 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);
},
});
# updateSimpleFeature(options)
æ›´æ–°å•个简å•è¦ç´ 类信æ¯
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
datasource |
String | æ•°æ®æºåç§°ï¼Œå¿…ä¼ |
gdbName |
String | gdbåç§°ï¼Œå¿…ä¼ |
featureSetName |
String | 简å•è¦ç´ ç±»åç§°ï¼Œå¿…ä¼ |
updateInfo |
Object | 更新的信æ¯ï¼Œå¿…ä¼ |
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
userName |
String | æ•°æ®æºç”¨æˆ·å |
示例
// 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);
},
});
# updateVectorTileServiceStyle(options)
更新指定æœåŠ¡çš„æ ·å¼,仅支æŒigs1.0
傿•°
åç§° | 类型 | æè¿° |
---|---|---|
options |
æŸ¥è¯¢å‚æ•° |
|
headers |
String | è¯·æ±‚å¤´å‚æ•° |
success |
function | 查询æˆåŠŸå›žè°ƒå‡½æ•°ï¼Œè‹¥ä½¿ç”¨Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
failure |
function | 查询失败回调函数,若使用Promiseæ–¹å¼åˆ™ä¸å¿…填写 |
serviceName |
String | 矢é‡ç“¦ç‰‡æœåŠ¡å,å¿…ä¼ |
updateObject |
Object | æ›´æ–°å‚æ•°ï¼Œå¿…ä¼ |
示例
igs1.0
// 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);
},
});