Class: CanvasTiles

og/layer/CanvasTiles~CanvasTiles

Layer used to rendering each tile as a separate canvas object.

new CanvasTiles(name, options:)

Name Type Default Description
name String "noname" optional Layer name.
options: Object
options.opacity number 1.0 optional Layer opacity.
options.minZoom number 0 optional Minimal visibility zoom level.
options.maxZoom number 0 optional Maximal visibility zoom level.
options.attribution string optional Layer attribution that displayed in the attribution area on the screen.
options.isBaseLayer boolean false optional Base layer flag.
options.visibility boolean true optional Layer visibility.
options.drawTile layer.CanvasTiles~drawTileCallback optional Draw tile callback.
Fires:
  • - Triggered when current tile image has loaded before rendereing.
  • - Triggered when all tiles have loaded or loading has stopped.

Extends

  • Layer

Members

protected_counternumber

Current creating tiles couter.

protected_pendingsQueueArray.<planetSegment.Material>

Tile pending queue that waiting for create.

drawTilelayer.CanvasTiles~drawTileCallback

Draw tile callback.

Methods

protected_exec(material)

Loads material image and apply it to the planet segment.
Name Type Description
material Material Loads material image.
Abort loading tiles.

abortMaterialLoading(material)

Abort exact material loading.
Name Type Description
material Material Segment material.

abstractloadMaterial(material)

Start to load tile material.
Name Type Description
material Material -

setVisibility(visibility)

Sets layer visibility.
Name Type Description
visibility boolean Layer visibility.