The position of the drawing controls on the map.
Describes which drawing modes are available for the user to select, in
the order they are displayed. This should not include the
null
drawing mode, which is added by default. If
null
, drawing controls are disabled and not displayed.
Possible drawing modes are "Point"
,
"LineString"
or "Polygon"
.
The current drawing mode of the given Data layer. A drawing mode of
null
means that the user can interact with the map as
normal, and clicks do not draw anything. Possible drawing modes are
null
, "Point"
, "LineString"
or
"Polygon"
.
When drawing is enabled and a user draws a Geometry (a Point, Line String
or Polygon), this function is called with that Geometry and should return
a Feature that is to be added to the Data layer. If a featureFactory is
not supplied, a Feature with no id and no properties will be created from
that Geometry instead. Defaults to null
.
Map on which to display the features in the collection.
Style for all features in the collection. For more details, see the
setStyle()
method above.
Generated using TypeDoc
DataOptions object used to define the properties that a developer can set on a
Data
object.