Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TrafficLayer

Represents a layer that is responsible for displaying traffic tiles from the tile server.

Hierarchy

Implements

Index

Constructors

constructor

Properties

geostream

geostream: ITrafficProvider

layerSettings

layerSettings: LayerSettings = this.defaultLayerSettings()

The settings for this layer.

name

name: string

source

source: string

time

time: string

Methods

defaultLayerSettings

extraLayerParams

  • extraLayerParams(): string[]

getBounds

getCopyrightString

  • getCopyrightString(): string

getDatasetHash

getExpiryTime

getLayerTemplateUrl

  • getLayerTemplateUrl(serverInfo: ServerInfo, authToken: string): when.Promise<string>

getQueryString

  • getQueryString(serverInfo: ServerInfo, authToken: string): string
  • Returns the template query string for this layer.

    Parameters

    Returns string

getTilePage

  • getTilePage(): string
  • Returns the server page for the top layer's map tiles.

    Returns string

getType

  • getType(): string
  • Returns the type of this layer; in this case 'Traffic'.

    Returns string

includeDatasetParams

  • includeDatasetParams(): boolean

layerKey

  • layerKey(): string
  • Returns string

makeParam

  • makeParam(key: string, value: string): string
  • Parameters

    • key: string
    • value: string

    Returns string

prepareRequest

  • prepareRequest(): when.Promise<any>

shouldUseExtraParamsInCompositeLayer

  • shouldUseExtraParamsInCompositeLayer(): boolean

tryCombine

  • tryCombine(lowerLayers: any[]): Layer
  • Attempts to combine this layer with other layers to form a composite layer.

    Parameters

    • lowerLayers: any[]

    Returns Layer

Generated using TypeDoc