RectQueryHandler

BIM属性框选查询.(配合mServer的查询服务使用)

new SuperMap3D.RectQueryHandler(options, options)

Name Type Description
options RectQueryHandler.ConstructorOptions optional Object describing initialization options
options Object optional Object with the following properties:
Name Type Description
viewer Scene optional 当前场景
superMapDataUrl String optional 超图数据服务地址
axiosUrl String optional 查询服务地址
Example:
axiosUrl = http://localhost:8090/iserver/services/MGISDataSystemServer/rest/domainComponents/MGISDataQueryImpl/

Methods

deactivate()

取消激活

queryByBounds(pt1, pt2)

通过矩形对角点查询
Name Type Description
pt1 MPoint3D 对角点1
pt2 MPoint3D 对角点2

queryByDrawRect()

使用绘制的矩形查询

setQueryFeatures(queryFeatures)

设置查询类别
Name Type Description
queryFeatures Array
Example:
[
  {
     axiosUrl: axiUrl + "/fire/rescue/getInfo",
     datasetNames: ["消防队:消防队_中心点位置_1"]
  },
  {
     axiosUrl: axiUrl + "/community/getInfo",
     datasetNames: ["建筑物:建筑物_中心点地理坐标_1"]
  },
 ]

Type Definitions

callback(callback)

激活handler,绘制查询矩形
Name Type Description
callback callback 回调事件, 返回矩形对角点串}