Community Map Builder 27 Apr 2008

Class Measurement

Object
   |
   +--WidgetBase
         |
         +--ButtonBase
               |
               +--EditButtonBase
                     |
                     +--Measurement

class Measurement
extends EditButtonBase

Defined in Measurement.js

Author: Imke Doerge AT geodan.nl


Field Summary
 Object cursor
          
   
Fields inherited from class EditButtonBase
cursor, trm, defaultModelUrl, featureXpath, appendOnEdit
   
Fields inherited from class ButtonBase
htmlTagId, panelHtmlTagId, buttonType, olButtonType, action, cursor, selected, control, active, superclass, objRef, panel_div, div
   
Fields inherited from class WidgetBase
model, widgetNode, id, outputNodeId, htmlTagId, autoRefresh, debug
 
Constructor Summary
Measurement (widgetNode, model)
            When this button is selected, clicks on the MapPane will add a new point to a line and the total distance of the line will be calculated
 
Method Summary
 void clearMeasurementLine(objRef)
          
 Object createControl(objRef)
           Interactive EditLine control.
 void doAction(objRef)
           Append a point to a line and calculate the distance between all points on the line.
 Object instantiateControl(objRef, Control)
          
 void setFeature(objRef, feature)
           This will be called as defined in EditButtonBase.js.
 void startAction(pointGeometry)
          
 
Methods inherited from class EditButtonBase
doSelect, newSession, handleFeatureInsert, setEditingLayer, initButton
   
Methods inherited from class ButtonBase
getButtonClass, select, attachToOL, buttonInit
   
Methods inherited from class WidgetBase
getProperty, getNode, initTargetModel, prePaint, postPaint, clearWidget
 

Field Detail

cursor

Object cursor

Constructor Detail

Measurement

Measurement(widgetNode, model)

Method Detail

clearMeasurementLine

void clearMeasurementLine(objRef)

createControl

Object createControl(objRef)

doAction

void doAction(objRef)

instantiateControl

Object instantiateControl(objRef, Control)

setFeature

void setFeature(objRef, feature)

startAction

void startAction(pointGeometry)

Community Map Builder 27 Apr 2008

Documentation generated by JSDoc on Sun Apr 27 20:30:54 2008