Class Layer

A map layer defined by an ID and a name

Hierarchy

  • Listener
    • Layer

Methods

  • Parameters

    • event: string
    • listener: Function

    Returns void

  • Disable the infowindow on this layer. This method is useful if you want to implement your own infowindow outside of the map.

    Returns Promise<any>

  • Filter the layer with a where clause. For example 'pop>2000'

    Parameters

    • where: string

      The where clause

    Returns Promise<any>

  • Parameters

    • event: string
    • Optional value: any

    Returns void

  • Returns String

    the dataset ID used by this layer

  • The datasource ID can be: Datahub, CSV, Excel, Shape, GeoJSON, catalog, sql. A datasourceId=CE means the dataset is dynamically loaded by the API.

    Returns String

    the datasource ID of the layer.

  • Returns String

    the unique ID of the layer

  • Returns String

    the name of the layer

  • Returns boolean

    true is the layer's dataset is provided directly through the API

  • Parameters

    • event: string
    • listener: Function

    Returns boolean

  • Parameters

    • visible: boolean

      true to set visible, false to hide the layer

    Returns Promise<any>

Generated using TypeDoc