Constructors

Accessors

  • get layerId(): string
  • Returns string

    Description

    Marker layer id getter.

  • get sourceId(): string
  • Returns string

    Description

    Marker source id getter.

Methods

  • Parameters

    • array: (IMarkerOptions | IMarkerOptionsWithFeatureId)[]

      {IMarkerOptions | IMarkerOptionsWithFeatureId[]} Coordinate and properties arrays of marker[s]. If you need to use updateData(), the parameter must be IMarkerOptionsWithFeatureId[].

    Returns void

    Description

    Draw marker[s] on map.

  • Parameters

    Returns {
        offEventListener: VoidFunction;
    }

    • offEventListener: VoidFunction

    Description

    Add marker event listener.

    Deprecated

    Use 'on' method instead.

  • Returns void

    Description

    Remove marker[s] layer and source.

  • Parameters

    • buildingId: string

      {string | null | undefined}

    • ordinal: string

      {string | null | undefined}

    Returns void

    Description

    Filter marker by buildingId and ordinal. Required 'buildingId' and 'ordinal' in properties. Markers not matched 'buildingId' and 'ordinal' would be hidden; Outdoor markers always are shown.

  • Parameters

    • venueId: string

      {string | null | undefined}

    • ordinal: string

      {string | null | undefined}

    Returns void

    Description

    Filter marker by venueId and ordinal. Required 'venueId' and 'ordinal' in properties. Markers not matched 'venueId' and 'ordinal' would be hidden; Outdoor markers always are shown.

  • Parameters

    • icon: string

      Sprite name in map style or the URL of the image file. Image file must be in png, webp, or jpg format.

    Returns Promise<void>

    Description

    Set custom marker image.

  • Parameters

    Returns void

    Description

    Set marker image anchor. Part of the icon placed closest to the anchor.

  • Parameters

    • imageScale: number

      Default is 1.

    Returns void

    Description

    Set marker image size.

  • Parameters

    • buildingId: string

      {string | null | undefined}

    • ordinal: string

      {string | null | undefined}

    Returns void

    Description

    Set marker's icon-opacity by buildingId and ordinal. Required 'buildingId' and 'ordinal' in properties. Opacities of markers matched 'buildingId' and 'ordinal' are 1, others are 0.5. Outdoor markers' opacity always are 1.

  • Parameters

    • venueId: string

      {string | null | undefined}

    • ordinal: string

      {string | null | undefined}

    Returns void

    Description

    Set marker's icon-opacity by venueId and ordinal. Required 'venueId' and 'ordinal' in properties. Opacities of markers matched 'venueId' and 'ordinal' are 1, others are 0.5. Outdoor markers' opacity always are 1.

  • Parameters

    Returns void

    Description

    Add, delete or update features of this marker layer. This approach requires unique IDs for every feature in the source!!! Including create() parameters.