Class Measurement
Object
|
+--WidgetBase
|
+--ButtonBase
|
+--EditButtonBase
|
+--Measurement
- class
Measurement
- extends EditButtonBase
Defined in Measurement.js
Author: Imke Doerge AT geodan.nl
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(pointGeometry)
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 ButtonBase.js.
|
cursor
Object cursor
Measurement
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
Parameters:
widgetNode
- The widget from the Config XML file.
model
- The parent model for this widget.
Author: Imke Doerge AT geodan.nl
clearMeasurementLine
void clearMeasurementLine(objRef)
createControl
Object createControl(objRef)
Interactive EditLine control.
Parameters:
objRef
- reference to this object.
Returns:
{OpenLayers.Control} class of the OL control.
doAction
void doAction(pointGeometry)
Append a point to a line and calculate the distance between all
points on the line. This will be called by the OpenLayers control
for this widget in the context of the control.
Parameters:
pointGeometry
- OpenLayers Geometry of the point to add
instantiateControl
Object instantiateControl(objRef, Control)
setFeature
void setFeature(objRef, feature)
This will be called as defined in ButtonBase.js. It is called
when measurement is finished (ie. when user double-clicks on the map)
Parameters:
objRef
- reference to this widget
feature
- complete measurement path - currently unused.
Documentation generated by
JSDoc on Tue Aug 21 08:12:28 2007