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}
OpenLayers/Controls/ReverseGeocode.js, line 139 -
Returns true if widget is collapsed (minimized), false otherwise
Returns:
- true if widget is collapsed
-
getData(){Object}
OpenLayers/Controls/ReverseGeocode.js, line 210 -
Get locations data
Returns:
- locations
-
setCollapsed(collapsed)
OpenLayers/Controls/ReverseGeocode.js, line 148 -
Collapse or display widget main container
Name Type Description collapsed Boolean True to collapse widget, False to display it
-
setMap(map)
OpenLayers/Controls/ReverseGeocode.js, line 169 -
Overwrite OpenLayers setMap method
Name Type Description map ol.Map Map.