Geoportal Extension for OpenLayers API Reference

Module: ReverseGeocode

module:~Controls/ReverseGeocode

Example

import ReverseGeocode from "src/OpenLayers/Controls/ReverseGeocode"

Events

reversegeocode:compute

OpenLayers/Controls/ReverseGeocode.js, line 1106

event triggered when the compute is finished

Properties:
Name Type Description
type Object

event

target Object

instance ReverseGeocode

Example
ReverseGeocode.on("reversegeocode:compute", function (e) {
  console.log(e.target.getData());
})

reversegeocode:onclickresult

OpenLayers/Controls/ReverseGeocode.js, line 1456

event triggered when an element of the results is clicked

Properties:
Name Type Description
type Object

event

location Object

location

target Object

instance ReverseGeocode

Example
Reverse.on("reverse:onclickresult", function (e) {
  console.log(e.location);
})