new MeasureLength(options)
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | Object |
options for function call.
|
Example
var measureLength = new ol.control.MeasureLength({
geodesic : false
});
Extends
- ol.control.Control
Methods
-
getContainer(){DOMElement}
Controls/Measures/MeasureLength.js, line 167 -
Get container
-
setMap(map)
Controls/Measures/MeasureLength.js, line 96 -
Overwrite OpenLayers setMap method
Name Type Description map ol.Map Map.