IITC.map.DebugTiles()

new DebugTiles()

Contains functions for rendering debug tiles on the map. These are used for debugging map data tiles.

Methods

create(id, bounds)

Creates a new debug tile with the specified ID and bounds.

Parameters:
Name Type Description
id string

The ID of the debug tile.

bounds L.LatLngBounds

The geographical bounds of the tile.

reset()

Resets the debug tiles by clearing all layers, rectangles and clear times.

runClearPass()

Executes a pass to clear debug tiles that have exceeded their fade time. This function adjusts the opacity of the tiles and removes them if necessary.

setColour(id, bordercol, fillcol)

Sets the color of the border and fill for a specific debug tile.

Parameters:
Name Type Description
id string

The ID of the debug tile.

bordercol string

The color for the border.

fillcol string

The color for the fill.

setState(id, state)

Sets the state of a specific debug tile. Changes its color based on the state.

Parameters:
Name Type Description
id string

The ID of the debug tile.

state string

The state of the tile (e.g., 'ok', 'error', 'requested').

startTimer(waitTime)

Starts a timer to run the clear pass function after a specified wait time.

Parameters:
Name Type Description
waitTime number

The wait time in milliseconds before running the clear pass.