new RoutingGeoportail( [options])
Search Control. This is the base class for search controls. You can use it for simple custom search or as base to new class.
Parameters:
| Name | Type | Argument | Description | |||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
Properties
|
Fires:
- event:select
- change:input
Extends
Methods
-
ajax(url, onsuccess, onerror)
-
Send an ajax request (GET)
Parameters:
Name Type Description urlstring onsuccessfunction callback
onerrorfunction callback
-
setMap(map)
-
Set the map instance the control is associated with and add its controls associated to this map.
Parameters:
Name Type Description map_ol_Map_ The map instance.
ol-ext