RectQueryHandler

BIM attribute box selection query. (used with mServer's query service)

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 Current scene
superMapDataUrl String optional SuperMap data service address
axiosUrl String optional Query service address
Example:
axiosUrl = http://localhost:8090/iserver/services/MGISDataSystemServer/rest/domainComponents/MGISDataQueryImpl/

Methods

deactivate()

deactivate

queryByBounds(pt1, pt2)

Query by rectangle diagonal point
Name Type Description
pt1 MPoint3D Diagonal Point 1
pt2 MPoint3D Diagonal Point 2

queryByDrawRect()

Query using drawn rectangles

setQueryFeatures(queryFeatures)

Set query category
Name Type Description
queryFeatures Array
Example:

    [
    {
    axiosUrl: axiUrl + "/fire/rescue/getInfo",
    datasetNames: ["Fire Brigade: Fire Brigade Central Location 1"]
    },
    {
    axiosUrl: axiUrl + "/community/getInfo",
    datasetNames: ["Building: Building Central Geographic Coordinate 1"]
    },
    ]

Type Definitions

callback(callback)

Activate handler, draw query rectangle
Name Type Description
callback callback Callback Event, Returning Rectangle Diagonal Points Series
Returns: