undefined

API Docs for: 5.4.1
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.

Imports RAMP Modules:

EventManager

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. Tests RAMP.config.ui.mapQueryToggle.show to determine if it should process the query or not.

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: