RuntimeMap

WiseMapServer0. RuntimeMap

new RuntimeMap(WiseMapServer0, resourceId, viewer, optionsopt)

Parameters:
Name Type Attributes Default Description
WiseMapServer0 WiseMapServer0
resourceId String
viewer Cesium.Viewer
options Object <optional>
{}

参数

Properties
Name Type Attributes Default Description
REQUESTEDFEATURES Number <optional>
1

调用CREATERuntimeMap时需要的参数

Methods

(static) RuntimeMap#add2DLayerByServerIds(serverIds, options) → {Promise}

添加WiseMapServer0中的多个二维图层,当做一个图层

Parameters:
Name Type Description
serverIds String

图层ID

options Object

相关的一些设置

Returns:
Type
Promise

(static) RuntimeMap#addLayerByServerId(id, options) → {Promise}

通过图层ID添加Map中的图层

Parameters:
Name Type Description
id String

图层ID

options object

相关的一些设置

Returns:
Type
Promise

(static) RuntimeMap#getAllLayers()

初始化,得到图层信息

(static) RuntimeMap#getAllLayersTree()

初始化,得到图层信息,带树结构,tid和ptid

(static) RuntimeMap#requestQXSYPickInfo(serverLayerID, position)

获取倾斜摄影点选属性

Parameters:
Name Type Description
serverLayerID *

WiseMapServer0返回图层ID

position *

点选位置

getFeatureTable(resourceId, className, filter) → {Promise}

得到资源表中的所有数据

Parameters:
Name Type Description
resourceId String

资源Id

className String

表名/类名

filter String

过滤条件

Returns:
Type
Promise

getFeatureTablePaged(resourceId, className, filter, index, pageSize) → {Promise}

分页得到资源表中的所有数据

Parameters:
Name Type Description
resourceId String

资源Id

className String

表名/类名

filter String

过滤条件

index Number

当前页码

pageSize Number

每页数据条数

Returns:
Type
Promise

getLayerFeatures(layerid, filter) → {Promise}

得到图层的属性信息

Parameters:
Name Type Description
layerid String

图层ID

filter String

过滤条件

Returns:
Type
Promise

setConnectInfo(url, session)

不创建WiseMapServer0,直接使用RuntimeMap

Parameters:
Name Type Description
url String

服务器的url 类似 "http://192.168.0.1:8013/WiseMap/mapagent/mapagent.fcgi?"

session String

预先生成的session,外部保证其不会过期