Geoportal Extension for OpenLayers
API Reference

Module: ReverseGeocode

module:~controls/ReverseGeocode

Example

import ReverseGeocode from "gpf-ext-ol/controls/ReverseGeocode"
ou
import { ReverseGeocode } from "gpf-ext-ol"

Events

reversegeocode:compute

Controls/ReverseGeocode/ReverseGeocode.js, line 1115

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

Controls/ReverseGeocode/ReverseGeocode.js, line 1467

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);
})