Reusable Accessible Mapping Platform

API Docs for: 2.0.0
Show:

MapClickHandler Class

Map click handler class.

The mapClickHandler registers WMS layers for combined getFeatureInfo request. It makes a single subscription to Map.CLICK and triggers a set of requests and joins the results together.

Item Index

Methods

registerWMSClick

(
  • map
)

This function should be called after the map has been created. It will subscribe to the Map.CLICK event and trigger GUI.SUBPANEL_OPEN events for displaying the response data.

Parameters:

  • map Object

    an EsriMap instance

registerWMSClick

(
  • wmsData
)

This function is called to register a WMS layer for feature info click events. The parameter wmsData should include wmsLayer (an instance of an ESRI WMSLayer) and layerConfig (a reference to the configuration node for the WMS layer).

Parameters: