Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MapboxPolylineLayer

Hierarchy

Index

Constructors

constructor

Properties

data

data: Record<string, any>

enabled

enabled: boolean

id

id: string

source

source: any

Accessors

isHidden

  • get isHidden(): boolean
  • Returns whether the layer is currently hidden.

    readonly
    memberof

    MapLayer

    Returns boolean

layerId

  • get layerId(): string
  • Layer identifier on the map.

    readonly
    memberof

    MapLayer

    Returns string

map

  • get map(): Map
  • Map currently associated with the layer.

    readonly
    memberof

    MapLayer

    Returns Map

opacity

  • get opacity(): number
  • Returns the current layer opacity.

    readonly
    memberof

    MapLayer

    Returns number

opts

parentId

  • get parentId(): string
  • set parentId(value: string): void
  • The parent layer identifier for the layer, if any. When specified, this layer will be rendered on the map below the layer associated with the parent identifier.

    memberof

    Layer

    Returns string

  • The parent layer identifier for the layer, if any. When specified, this layer will be rendered on the map below the layer associated with the parent identifier.

    memberof

    Layer

    Parameters

    • value: string

    Returns void

renderable

  • get renderable(): Layer
  • Native map object(s) that gets rendered to the map.

    readonly
    memberof

    MapLayer

    Returns Layer

sourceId

  • get sourceId(): string
  • Source identifier on the map.

    readonly
    memberof

    Layer

    Returns string

Methods

addTo

  • addTo(map: Map): void
  • Parameters

    • map: Map

    Returns void

exists

  • exists(): boolean

has

  • has(type: string): boolean
  • Returns whether the listeners are registered for the specified event name.

    memberof

    EventDispatcher

    Parameters

    • type: string

    Returns boolean

hide

  • hide(): void
  • Hides the layer on the map.

    memberof

    MapLayer

    Returns void

invalidate

  • invalidate(): void
  • Returns void

off

  • Removes a registered listener function for the specified event.

    memberof

    EventDispatcher

    Parameters

    • type: string

      Name of the event to remove the listener for.

    • callback: Function

      Handler function to remove so it won't be executed next time the event is triggered.

    • Default value scope: any = null

    Returns EventDispatcher

offAll

on

  • on(type: string, callback: Function, scope?: any, priority?: number): EventDispatcher
  • Registers a listener function to be executed each time an event occurs

    memberof

    EventDispatcher

    Parameters

    • type: string

      Name of the event to listen for. Value can contain multiple event names separated by spaces to trigger the same handler function for each event name.

    • callback: Function

      Handler function to be called when the event occurs

    • Default value scope: any = null
    • Default value priority: number = 0

    Returns EventDispatcher

once

  • once(type: string, callback: Function, scope?: any, priority?: number): EventDispatcher
  • Registers a listener function to be executed the first time an event occurs.

    memberof

    EventDispatcher

    Parameters

    • type: string

      Name of the event to listen for. Value can contain multiple event names separated by spaces to trigger the same handler function for each event name.

    • callback: Function

      Handler function to be called when the event occurs

    • Default value scope: any = null
    • Default value priority: number = 0

    Returns EventDispatcher

remove

  • remove(): void
  • Removes the layer from the map it is currently active on.

    memberof

    MapLayer

    Returns void

setOpacity

  • setOpacity(value: number): void

setZIndex

  • setZIndex(value: number): void

show

  • show(): void
  • Shows the layer on the map.

    memberof

    MapLayer

    Returns void

trigger

  • Triggers the specified event so that all registered listeners will be executed with the specified parameters.

    memberof

    EventDispatcher

    Parameters

    • type: any

      Event name to trigger

    • Default value data: any = null

    Returns EventDispatcher

Generated using TypeDoc