new mapboxgl.supermap.QueryService(url, options)
            mapboxgl/services/QueryService.js, line 19
        
        
    | Name | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| url | string | 地图查询服务访问地址。 | ||||||||||||||||||||||||
| options | Object | 服务交互时所需的可选参数。 
 | 
Example
new mapboxgl.supermap.QueryService(url)
.queryByBounds(param,function(result){
    //doSomething
})Extends
Events
- 
    inherited initializedmapboxgl/services/ServiceBase.js, line 26
- 
    
    
    构造函数构造成功之后触发。 Properties:Name Type Description thisObject this 对象。 
Methods
- 
    queryByBounds(params, callback, resultFormat)mapboxgl/services/QueryService.js, line 43
- 
    
    
    Bounds 查询地图服务。 Name Type Default Description paramsSuperMap.QueryByBoundsParameters 通过 Bounds 查询的相关参数类。 callbackRequestCallback 回调函数。 resultFormatSuperMap.DataFormat SuperMap.DataFormat.GEOJSON 可选 返回结果类型。 
- 
    queryByDistance(params, callback, resultFormat)mapboxgl/services/QueryService.js, line 70
- 
    
    
    地图距离查询服务。 Name Type Default Description paramsSuperMap.QueryByDistanceParameters Distance 查询相关参数类。 callbackRequestCallback 回调函数。 resultFormatSuperMap.DataFormat SuperMap.DataFormat.GEOJSON 可选 返回结果类型 
- 
    queryByGeometry(params, callback, resultFormat)mapboxgl/services/QueryService.js, line 122
- 
    
    
    地图几何查询服务。 Name Type Default Description paramsSuperMap.QueryByGeometryParameters Geometry 查询相关参数类。 callbackRequestCallback 回调函数。 resultFormatSuperMap.DataFormat SuperMap.DataFormat.GEOJSON 可选 返回结果类型。 
- 
    queryBySQL(params, callback, resultFormat)mapboxgl/services/QueryService.js, line 96
- 
    
    
    地图 SQL 查询服务。 Name Type Default Description paramsSuperMap.QueryBySQLParameters SQL 查询相关参数类。 callbackRequestCallback 回调函数。 resultFormatSuperMap.DataFormat SuperMap.DataFormat.GEOJSON 可选 返回结果类型。