Class: PlacePointButton

Cadcorp.UI.OpenLayers.PlacePointButton

new PlacePointButton(config)

A button that allows the user to click the map and place a marker at that location.
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

icon

Properties:
Name Type Description
icon Cadcorp.Icon The icon to place when the map is clicked

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:

(constant) MARKER_GROUP :string

The name of the group the icon will be added to
Type:
  • string

Methods

buttonClickedHandler(eventArgs)

Called when the button is clicked. This function is expected to be overridden in child classes
Parameters:
Name Type Description
eventArgs Object The event arguments
Inherited From:

(protected) mapAfterInitHandler(eventArgs)

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

Events

pointPlaced

Point placed event
Type:
  • Object
Properties:
Name Type Description
object Cadcorp.UI.OpenLayers.PlacePointButton The sender of the event
marker OpenLayers.Feature The new feature