Class: dataServiceQueryViewModel

dataServiceQueryViewModel

The functional class of the data service query component.

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
error string

The error returned by the server.

getfeaturessucceeded

DataServiceQueryViewModel.js, line 85

Triggered when features get succeed.

Properties:
Name Type Description
result Object

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
queryParam L.supermap.GetFeaturesByIDsParameters | L.supermap.GetFeaturesByBufferParameters | L.supermap.GetFeaturesByBoundsParameters | L.supermap.GetFeaturesBySQLParameters | L.supermap.GetFeaturesByGeometryParameters

Query parameters.

map L.Map

Leaflet Map object.