Options
All
  • Public
  • Public/Protected
  • All
Menu

A feature has a geometry, an id, and a set of properties.

Access by calling const {Data} = await google.maps.importLibrary("maps"). See https://developers.google.com/maps/documentation/javascript/libraries.

Hierarchy

  • Feature

Index

Constructors

Methods

  • forEachProperty(callback: ((a: unknown, b: string) => void)): void
  • Repeatedly invokes the given function, passing a property value and name on each invocation. The order of iteration through the properties is undefined.

    Parameters

    • callback: ((a: unknown, b: string) => void)
        • (a: unknown, b: string): void
        • Parameters

          • a: unknown
          • b: string

          Returns void

    Returns void

  • Returns the feature's geometry.

    Returns null | Geometry

  • getId(): undefined | string | number
  • Returns the feature ID.

    Returns undefined | string | number

  • getProperty(name: string): unknown
  • Returns the value of the requested property, or undefined if the property does not exist.

    Parameters

    • name: string

    Returns unknown

  • removeProperty(name: string): void
  • Removes the property with the given name.

    Parameters

    • name: string

    Returns void

  • setProperty(name: string, newValue: unknown): void
  • Sets the value of the specified property. If newValue is undefined this is equivalent to calling removeProperty.

    Parameters

    • name: string
    • newValue: unknown

    Returns void

  • toGeoJson(callback: ((a: object) => void)): void
  • Exports the feature to a GeoJSON object.

    Parameters

    • callback: ((a: object) => void)
        • (a: object): void
        • Parameters

          • a: object

          Returns void

    Returns void

Generated using TypeDoc