new MapSingleClick(options)
An Open Layers control for getting single click eevnt from a map.
Extends OpenLayers.Control
The options passed as a parameter directly extend the control. For example passing the following:
To be notified of a click the options must contain a trigger property.
The value of the property must be the function to be called, or a delegate created with Cadcorp.createDelegate(). For example
Extends OpenLayers.Control
The options passed as a parameter directly extend the control. For example passing the following:
var control = new OpenLayers.Control.MapSingleClick({div: myDiv});
Overrides the default div attribute value of null.To be notified of a click the options must contain a trigger property.
The value of the property must be the function to be called, or a delegate created with Cadcorp.createDelegate(). For example
var control = new OpenLayers.Control.MapSingleClick({trigger:function(eventArgs){alert("I've been clicked");}});
Parameters:
Name | Type | Description |
---|---|---|
options |
Object |
Members
(constant) CLASS_NAME :string
The name of this class
Type:
- string
defaultHandlerOptions
Properties:
Name | Type | Description |
---|---|---|
defaultHandlerOptions |
Object | The default options applied to this controls handler |