addRegionGraphListener

Add a listener for information about the region graph and state of the map.

Note: The first listener that is added triggers the process of determining the region graph. If the region graph cannot be determined, an error is returned. The listener will be called when and if the error is resolved.

Note: For visualization purposes, it is recommended to use CompositeRegionGraph, which can be obtained by registering a CompositeRegionListener from the CompositeRegionsUpdater.

Parameters

listener

The listener to be added.

Throws

if the listener is already added.