new ReverseGeocode(options)
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | Object |
ReverseGeocode control options
|
Fires:
- reversegeocode:compute
- reversegeocode:onclickresult
Example
var iso = ol.control.ReverseGeocode({
"collapsed" : false,
"draggable" : true,
"resources" : ["StreetAddress", "PositionOfInterest"],
"delimitations" : ["Point", "Circle"],
"reverseGeocodeOptions" : {}
});
Extends
- ol.control.Control
Members
-
collapsed
-
{Boolean} specify if reverseGeocoding control is collapsed (true) or not (false)
-
draggable
-
{Boolean} specify if reverseGeocoding control is draggable (true) or not (false)
Methods
-
getCollapsed(){Boolean}
Controls/ReverseGeocode/ReverseGeocode.js, line 125 -
Returns true if widget is collapsed (minimized), false otherwise
Returns:
- true if widget is collapsed
-
getContainer(){DOMElement}
Controls/ReverseGeocode/ReverseGeocode.js, line 220 -
Get container
-
getData(){Object}
Controls/ReverseGeocode/ReverseGeocode.js, line 211 -
Get locations data
Returns:
- locations
-
setCollapsed(collapsed)
Controls/ReverseGeocode/ReverseGeocode.js, line 134 -
Collapse or display widget main container
Name Type Description collapsed Boolean True to collapse widget, False to display it
-
setMap(map)
Controls/ReverseGeocode/ReverseGeocode.js, line 155 -
Overwrite OpenLayers setMap method
Name Type Description map ol.Map Map.