Options
All
  • Public
  • Public/Protected
  • All
Menu

Optional parameters for creating Data.Feature objects.

Hierarchy

  • FeatureOptions

Index

Properties

geometry?: null | LatLng | LatLngLiteral | Geometry

The feature geometry. If none is specified when a feature is constructed, the feature's geometry will be null. If a LatLng object or LatLngLiteral is given, this will be converted to a Data.Point geometry.

id?: string | number

Feature ID is optional. If provided, it can be used to look up the feature in a Data object using the getFeatureById() method. Note that a feature's ID cannot be subsequently changed.

properties?: null | object

The feature properties. This is an arbitrary mapping of property names to values.

Generated using TypeDoc