Class: Tile

.xyz.maps.providers.TileProvider. Tile

new Tile(quadkey, type)

Tile.
Parameters:
Name Type Description
quadkey String
type String type of tile

Members Summary

bounds :Array.<Integer>

Bounding box has the coordinates in order: [minLon, minLat, maxLon, maxLat].

expired

Checks if tile expires at given time point. by default, check if the tile expires at the time point when this function is called.

quadkey :String

quadkey of this tile.

type :String

type of the tile.

x :Integer

x of the tile.

y :Integer

y of the tile.

z :Integer

z of the tile. (level)

Methods Summary

add(feature)

add feature to tile.

getContentBounds() → {Array.<Number>}

get tile bound including margin.

isLoaded() → {Boolean}

validate if the tile is loaded

remove(feature)

remove feature to tile.

Members Details

bounds :Array.<Integer>

Bounding box has the coordinates in order: [minLon, minLat, maxLon, maxLat].
Type:
Array.<Integer>

expired

Checks if tile expires at given time point. by default, check if the tile expires at the time point when this function is called.

quadkey :String

quadkey of this tile.
Type:
String

type :String

type of the tile.
Type:
String

x :Integer

x of the tile.
Type:
Integer

y :Integer

y of the tile.
Type:
Integer

z :Integer

z of the tile. (level)
Type:
Integer

Methods Details

add(feature)

add feature to tile.
Parameters:
Name Type Description
feature here.xyz.maps.providers.FeatureProvider.Feature

getContentBounds() → {Array.<Number>}

get tile bound including margin.
Returns:
the bounding box has the coordinates in the order: [minLon, minLat, maxLon, maxLat]
Type:
Array.<Number>

isLoaded() → {Boolean}

validate if the tile is loaded
Returns:
Type:
Boolean

remove(feature)

remove feature to tile.
Parameters:
Name Type Description
feature here.xyz.maps.providers.FeatureProvider.Feature