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 266 -
Export features of current drawing layer in KML.
Returns:
KML representation of drawn features or null if not possible.
-
setCollapsed(collapsed)
Ol3/Controls/Drawing.js, line 301 -
Collapse or display control main container
Name Type Description collapsed Boolean True to collapse control, False to display it
-
setLayer(vlayer)
Ol3/Controls/Drawing.js, line 579 -
Sets vector layer to hosts feature.
Name Type Description vlayer ol.layer.Vector vector layer
-
setMap(map)
Ol3/Controls/Drawing.js, line 209 -
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.