MeasurementButton
Expression Extends:
class MeasurementButton extends mixin(Control, ActivatableMixin)
Enables the user to draw lines or polygons on the map and displays the length or area.
Constructor Summary
Public Constructor | ||
public |
constructor(options: MeasurementButtonOptions) |
Member Summary
Private Members | ||
private |
$unitPlaceholder_: jQuery |
|
private |
$valueDisplay_: jQuery |
|
private |
|
|
private |
|
|
private |
drawInteraction_: ol.interaction.Draw |
|
private |
layer_: VectorLayer |
|
private |
source_: ol.source.Vector |
|
private |
|
|
private |
|
|
private |
|
Method Summary
Public Methods | ||
public |
clear() Clears any measurement |
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
|
Public Constructors
public constructor(options: MeasurementButtonOptions) source
Params:
Name | Type | Attribute | Description |
options | MeasurementButtonOptions |