RectQueryHandler

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

new Cesium.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

activate(callback)

Name Type Description
callback function 返回矩形对角点串
Returns:

deactivate()

取消激活

queryByBounds(pt1, pt2)

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

queryByDrawRect()

使用绘制的矩形查询

setQueryFeatures(queryFeatures)

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