new Drawing(options)
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | Object |
options for function call.
|
Extends
- ol.control.Control
Members
-
collapsed
-
{Boolean} specify if Drawing control is collapsed (true) or not (false)
Methods
-
exportFeatures(){String}
Ol3/Controls/Drawing.js, line 265 -
Export features of current drawing layer in KML.
Returns:
KML representation of drawn features or null if not possible.
-
getExportName(){String}
Ol3/Controls/Drawing.js, line 333 -
getter for Export Name.
Returns:
name
-
setCollapsed(collapsed)
Ol3/Controls/Drawing.js, line 306 -
Collapse or display control main container
Name Type Description collapsed Boolean True to collapse control, False to display it
-
setExportName(name)
Ol3/Controls/Drawing.js, line 324 -
Setter for Export Name.
Name Type Description name String Export Name. By default, "Croquis".
-
setLayer(vlayer)
Ol3/Controls/Drawing.js, line 606 -
Sets vector layer to hosts feature.
Name Type Description vlayer ol.layer.Vector vector layer
-
setMap(map)
Ol3/Controls/Drawing.js, line 220 -
Overload of ol.control.Control.setMap() method, called when control is added to or removed from map.
Name Type Description map Object ol.Map object.