Class layerOptions

A layerOptions object is a method for constructing a tile layer for immediate use, for example by passing it to the jQuery widget or in the knockout binding.

class

layerOptions

Index

Constructor methods

Methods

Constructor methods

constructor(id: string, options: { useBackdrop?: boolean; maxConcurrentRequests?: number; requestor?: 'mapsjs'.tile.requestor; descriptor?: any; renderer?: 'mapsjs'.tile.renderer; requestProcessor?: any; visible?: boolean; opacity?: number; minZoomLevel?: number; maxZoomLevel?: number; tileBleedPix?: number; retainInterlevelContent?: boolean; enableTileFadeIn?: boolean; notifyErrorAction?: (msg?: string) => void; notifyLoadingQueueHasEmptiedAction?: () => void; }): layerOptions

Parameters

  • id: string
  • options: { useBackdrop?: boolean; maxConcurrentRequests?: number; requestor?: 'mapsjs'.tile.requestor; descriptor?: any; renderer?: 'mapsjs'.tile.renderer; requestProcessor?: any; visible?: boolean; opacity?: number; minZoomLevel?: number; maxZoomLevel?: number; tileBleedPix?: number; retainInterlevelContent?: boolean; enableTileFadeIn?: boolean; notifyErrorAction?: (msg?: string) => void; notifyLoadingQueueHasEmptiedAction?: () => void; }

Returns

layerOptions

Methods

public getId(): string

Gets ID associated with the underlying tile layer.

Returns

string

ID of the layer.

public getOptions(): any

Gets this layerOptions object as a JavaScript object.

Returns

any

public getTileLayer(): layer

Returns the underlying tile layer.

Returns

layer

The underlying tile layer.