Skip to content

Latest commit

 

History

History
46 lines (24 loc) · 2.08 KB

Data.DataOptions.md

File metadata and controls

46 lines (24 loc) · 2.08 KB

See html formatted version

Data.DataOptions interface

google.maps.Data.DataOptions interface

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

Properties

undefined

Type:  ControlPosition optional

The position of the drawing controls on the map. The default position is TOP_LEFT.

undefined

Type:  Array optional

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. Defaults to null. Possible drawing modes are "Point", "LineString" or "Polygon".

undefined

Type:  string optional

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. Defaults to null. Possible drawing modes are null, "Point", "LineString" or "Polygon".

undefined

Type:  function(Data.Geometry): Data.Feature optional

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.

undefined

Type:  Map

Map on which to display the features in the collection.

undefined

Type:  Data.StylingFunction|Data.StyleOptions optional

Style for all features in the collection. For more details, see the setStyle() method above.