Methods
public addEventListener( type: string , fn: (e: L.LeafletEvent) => void , context?: any ) : TileLayer
Defined in leaflet/leaflet.d.ts:3602
Parameters
type: string
fn: (e: L.LeafletEvent) => void
context?: any optional
Returns
TileLayer
public addEventListener( eventMap: any , context?: any ) : TileLayer
Defined in leaflet/leaflet.d.ts:3611
Parameters
eventMap: any
context?: any optional
Returns
TileLayer
public addOneTimeEventListener( type: string , fn: (e: L.LeafletEvent) => void , context?: any ) : TileLayer
Defined in leaflet/leaflet.d.ts:3603
Parameters
type: string
fn: (e: L.LeafletEvent) => void
context?: any optional
Returns
TileLayer
Defined in leaflet/leaflet.d.ts:3548
Adds the layer to the map.
Parameters
Returns
TileLayer
public bringToBack( ) : TileLayer
Defined in leaflet/leaflet.d.ts:3558
Brings the tile layer to the bottom of all tile layers.
Returns
TileLayer
public bringToFront( ) : TileLayer
Defined in leaflet/leaflet.d.ts:3553
Brings the tile layer to the top of all tile layers.
Returns
TileLayer
public clearAllEventListeners( ) : TileLayer
Defined in leaflet/leaflet.d.ts:3613
Returns
TileLayer
public fire( type: string , data?: any ) : TileLayer
Defined in leaflet/leaflet.d.ts:3610
Parameters
type: string
data?: any optional
Returns
TileLayer
public fireEvent( type: string , data?: any ) : TileLayer
Defined in leaflet/leaflet.d.ts:3606
Parameters
type: string
data?: any optional
Returns
TileLayer
public getContainer( ) : HTMLElement
Defined in leaflet/leaflet.d.ts:3583
Returns the HTML element that contains the tiles for this layer.
Returns
HTMLElement
public hasEventListeners( type: string ) : boolean
Defined in leaflet/leaflet.d.ts:3605
Parameters
Returns
boolean
public off( type: string , fn?: (e: L.LeafletEvent) => void , context?: any ) : TileLayer
Defined in leaflet/leaflet.d.ts:3609
Parameters
type: string
fn?: (e: L.LeafletEvent) => void optional
context?: any optional
Returns
TileLayer
public off( eventMap?: any , context?: any ) : TileLayer
Defined in leaflet/leaflet.d.ts:3615
Parameters
eventMap?: any optional
context?: any optional
Returns
TileLayer
public on( type: string , fn: (e: L.LeafletEvent) => void , context?: any ) : TileLayer
Defined in leaflet/leaflet.d.ts:3607
Parameters
type: string
fn: (e: L.LeafletEvent) => void
context?: any optional
Returns
TileLayer
public on( eventMap: any , context?: any ) : TileLayer
Defined in leaflet/leaflet.d.ts:3614
Parameters
eventMap: any
context?: any optional
Returns
TileLayer
public onAdd( map: Map )
Defined in leaflet/leaflet.d.ts:3592
Should contain code that creates DOM elements for the overlay, adds them
to map panes where they should belong and puts listeners on relevant map events.
Called on map.addLayer(layer).
Parameters
public onRemove( map: Map )
Defined in leaflet/leaflet.d.ts:3598
Should contain all clean up code that removes the overlay's elements from
the DOM and removes listeners previously added in onAdd. Called on map.removeLayer(layer).
Parameters
public once( type: string , fn: (e: L.LeafletEvent) => void , context?: any ) : TileLayer
Defined in leaflet/leaflet.d.ts:3608
Parameters
type: string
fn: (e: L.LeafletEvent) => void
context?: any optional
Returns
TileLayer
Defined in leaflet/leaflet.d.ts:3573
Causes the layer to clear all the tiles and request them again.
Returns
TileLayer
public removeEventListener( type: string , fn?: (e: L.LeafletEvent) => void , context?: any ) : TileLayer
Defined in leaflet/leaflet.d.ts:3604
Parameters
type: string
fn?: (e: L.LeafletEvent) => void optional
context?: any optional
Returns
TileLayer
public removeEventListener( eventMap?: any , context?: any ) : TileLayer
Defined in leaflet/leaflet.d.ts:3612
Parameters
eventMap?: any optional
context?: any optional
Returns
TileLayer
public setOpacity( opacity: number ) : TileLayer
Defined in leaflet/leaflet.d.ts:3563
Changes the opacity of the tile layer.
Parameters
Returns
TileLayer
public setUrl( urlTemplate: string ) : TileLayer
Defined in leaflet/leaflet.d.ts:3578
Updates the layer's URL template and redraws it.
Parameters
Returns
TileLayer
public setZIndex( zIndex: number ) : TileLayer
Defined in leaflet/leaflet.d.ts:3568
Sets the zIndex of the tile layer.
Parameters
Returns
TileLayer