L.supermap.components.search(options)
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
Optional parameters.
|
- Version:
- 9.1.1
Fires
Extends
Events
-
geocodesucceeded
SearchView.js, line 498 -
Triggered after the data stream service successfully returns data
Properties:
Name Type Description resultObject The GeoJSON formatted data object returned by the event.
-
searchfailed
SearchView.js, line 517 -
Fires when the layer attribute query failed.
Properties:
Name Type Description messagestring The reason for the failure.
-
searchlayersucceeded
SearchView.js, line 472 -
Triggered after the layer query succeeds.
Properties:
Name Type Description resultObject The GeoJSON formatted data object returned by the event.
Methods
-
addSearchLayer(layers)
SearchView.js, line 70 -
Add a queryable layer.
Name Type Description layersArray.<L.GeoJSON> | L.GeoJSON Queryable layers.
-
clearSearchResult()
SearchView.js, line 644 -
Clear the results of the current query, etc.
-
inherited off(eventType, callback)
ComponentsViewBase.js, line 73 -
Close the event.
Name Type Description eventTypestring Listening event name.
callbackfunction bCallback function for listening to events.
-
inherited on(eventType, callback)
ComponentsViewBase.js, line 64 -
Name Type Description eventTypestring Type of listen event.
callbackfunction Callback function for listening to events.
-
inherited onAdd()
ComponentsViewBase.js, line 53 -
Add components to the basemap
-
inherited onAdd()
ComponentsViewBase.js, line 53 -
Add components to the basemap