Class: MeasureAreaButton

Cadcorp.UI.OpenLayers.MeasureAreaButton

new MeasureAreaButton(config)

A button that raises measureareaclicked event when clicked.
Parameters:
Name Type Description
config Object Configuration for this object. The config supplied directly extends the control

Extends

Members

buttonOptions

Properties:
Name Type Description
buttonOptions Object Passed to the jQuery UI button constructor
Inherited From:

events

Properties:
Name Type Description
events Cadcorp.Util.Events The events object
Inherited From:

id

Properties:
Name Type Description
id string The id for this control
Inherited From:

map

Properties:
Name Type Description
map OpenLayers.Map The map this button will interact with
Inherited From:

Methods

(protected) buttonClickedHandler(eventArgs)

Called when the button is clicked.
Parameters:
Name Type Description
eventArgs Object The jQuery event object
Overrides:
Fires:

(protected) checkChangeHandler(eventArgs)

Event handler for button change event
Parameters:
Name Type Description
eventArgs Object The jQuery event object
Inherited From:

(protected) deactivateOtherControlsAndActivateCurrent(currentControl)

Deactivates other controls in the map ans activates to supplied one.
The following is a list of control types the are not deactivated.
OpenLayers.Control.Navigation, OpenLayers.Control.ScaleLine, OpenLayers.Control.MousePosition, OpenLayers.Control.OverviewMap, OpenLayers.Control.ModifyFeature OpenLayers.Control.ZoomIn, OpenLayers.Control.ZoomOut, OpenLayers.Control.Panel
Parameters:
Name Type Description
currentControl OpenLayers.Control The OpenLayers control to activate
Inherited From:

(protected) mapAfterInitHandler(eventArgs)

Event handler for mapafterinit
Parameters:
Name Type Description
eventArgs Object The event arguments
Inherited From:

Events

measureareaclicked

Measure area clicked event
Type:
  • Object
Properties:
Name Type Description
object Cadcorp.UI.OpenLayers.MeasureAreaButton The sender of the event