Options
All
  • Public
  • Public/Protected
  • All
Menu

DataOptions object used to define the properties that a developer can set on a Data object.

Hierarchy

  • DataOptions

Index

Properties

controlPosition?: ControlPosition

The position of the drawing controls on the map.

defaultvalue

google.maps.ControlPosition.TOP_LEFT

controls?: null | string[]

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".

defaultvalue

null

drawingMode?: null | string

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".

defaultvalue

null

featureFactory?: null | ((a: Geometry) => google.maps.Data.Feature)

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: Map

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