Class: TileIterator

TileIterator

A TileIterator class, the equivalent of TileIterator in tile-service/binning-utilities.

new TileIterator(spec)

Instantiate a TileIterator object.
Name Type Description
spec Object The specification object.

Methods

getRest(){Array}

Returns an array of all remaining tiles the iterator.
Returns:
tiles left in the iterator.

hasNext(){boolean}

Returns true if there is another tile, false if there isn't.
Returns:
or not a next tile exists.
Returns the next tile in the iterator.
Returns:
next tile object.

toString(){String}

Returns a string containing all remaining tile indices in the iterator.
Returns:
next tile object.

toTileBounds(){Object}

Returns the tile bounds of all tiles within the iterator.
Returns:
tile bounds of the iterator.