Constructor
new MeasureArea(format, [opt_options]opt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
format |
ngeox.unitPrefix | The format function |
|
[opt_options] |
ngeox.interaction.MeasureOptions= |
<optional> |
Options |
Extends
Members
continueMsg: Element
Message to show after the first point is clicked.
- Overrides:
(protected) decimals: number|undefined
Defines the number of decimals to keep in the measurement. If not defined, then the default behaviour occurs depending on the measure type.
- Inherited From:
format: ngeox.unitPrefix
The format function
(protected) precision: number|undefined
Defines the number of precision to keep in the measurement. If not defined, then the default behaviour occurs depending on the measure type.
- Inherited From:
(protected) sketchFeature: ol.Feature
The sketch feature.
- Inherited From:
startMsg: Element
The message to show when user is about to start drawing.
- Inherited From:
Methods
(protected) createDrawInteraction(style, source)
Creates the draw interaction.
Parameters:
Name | Type | Description |
---|---|---|
style |
ol.style.Style|Array. |
The sketchStyle used for the drawing interaction. |
source |
ol.source.Vector | Vector source. |
Returns:
getDrawInteraction()
- Inherited From:
Returns:
getTooltipElement()
Get a reference to the tooltip element.
- Inherited From:
Returns:
Tooltip Element.
(protected) handleMeasure(callback)
Function implemented in inherited classes to compute measurement, determine where to place the tooltip and determine which help message to display.
Parameters:
Name | Type | Description |
---|---|---|
callback |
function(string, ?ol.Coordinate) | The function to be called. |
- Overrides:
setMap()
- Inherited From: