Interface GridLayer

Index

Methods

Methods

public active(): boolean

Returns

boolean

public addTo(map: Map): any

Parameters

Returns

any

public getData(latlng: LatLng, callback: Function): any

Load data for a given latitude, longitude point on the map, and call the callback function with that data, if any.

Parameters

  • latlng: LatLng
  • callback: Function

Returns

any

public getTileJSON(): any

Returns this layer's TileJSON object which determines its tile source, zoom bounds and other metadata.

Returns

any

public on(event: string, handler: Function, context?: any): any

Bind an event handler to a given event on this L.mapbox.gridLayer instance. GridLayers expose a number of useful events that give you access to UTFGrid data as the user interacts with the map.

Parameters

  • event: string
  • handler: Function
  • context?: any optional

Returns

any

public onAdd(map: Map): any

Parameters

Returns

any

public onRemove(): any

Returns

any