Class: ResetButton

Cadcorp.UI.OpenLayers.ResetButton

new ResetButton(config)

Resets the map by turning all data layers off, removing all user drawn deatures and zooming to the initial location and resolution/scale.
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

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.
Resets the map
Parameters:
Name Type Description
eventArgs Object The jQuery event object
Overrides:
Fires:

(protected) mapAfterInitHandler(eventArgs)

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

Events

reset

Reset event
Type:
  • Object
Properties:
Name Type Description
object Cadcorp.UI.OpenLayers.ResetButton The sender of the event
innerEvent Object jQuery event object