L.supermap.components.dataServiceQueryViewModel(dataserviceUrl)
DataServiceQueryViewModel.js, line 9
| Name | Type | Description |
|---|---|---|
dataserviceUrl |
string |
Data service URL. |
- Version:
- 9.1.1
Fires
Extends
dataServiceQueryViewModel
-> L.Evented
Events
-
getfeaturesfailed
DataServiceQueryViewModel.js, line 68 -
Triggered when features get failed.
Properties:
Name Type Description errorstring The error returned by the server.
-
getfeaturessucceeded
DataServiceQueryViewModel.js, line 85 -
Triggered when features get succeed.
Properties:
Name Type Description resultObject The result returned by the server.
Methods
-
clearLayers()
DataServiceQueryViewModel.js, line 93 -
Clear all result layers.
-
getFeatures(queryParam, map)
DataServiceQueryViewModel.js, line 26 -
Get features.
Name Type Description queryParamL.supermap.GetFeaturesByIDsParameters | L.supermap.GetFeaturesByBufferParameters | L.supermap.GetFeaturesByBoundsParameters | L.supermap.GetFeaturesBySQLParameters | L.supermap.GetFeaturesByGeometryParameters Query parameters.
mapL.Map Leaflet Map object.