Class: TileProvider

.xyz.maps.providers. TileProvider

new TileProvider(options)

Provider.
Parameters:
Name Type Description
options here.xyz.maps.providers.TileProvider.Options

Classes

Options
Tile

Members Summary

id :String

Provider id.

level :Integer

provider request tiles at this zoomlevel.

margin :Integer

default tile margin.

name :String

Provider name.

url :String

url for requesting tiles.

Methods Summary

addEventListener()

Add event listener to provider, valid events: "featureAdd", "featureRemove", "featureCoordinatesChange", "clear" and "error"

clear()

Clear all features.

config(cfg) → {here.xyz.maps.providers.TileProvider}

set config for provider.

createTile(quadkey) → {here.xyz.maps.providers.TileProvider.Tile}

create tile.

createTile(quadkey) → {here.xyz.maps.providers.TileProvider.Tile}

create tile.

createTile(quadkey) → {here.xyz.maps.providers.TileProvider.Tile}

create tile.

getCachedTile(quadkey) → {here.xyz.maps.providers.TileProvider.Tile}

get cached tile by quadkey.

getCachedTilesOfBBox(bbox, level) → {Array.<here.xyz.maps.providers.TileProvider.Tile>}

get cached tile by bounding box.

removeEventListener()

Remove event listener from provider, valid events: "featureadd", "featureRemove", "featureCoordinatesChange", "clear" and "error"

setMargin(margin)

set tile margin.

Members Details

id :String

Provider id.
Type:
String

level :Integer

provider request tiles at this zoomlevel.
Type:
Integer

margin :Integer

default tile margin.
Type:
Integer

name :String

Provider name.
Type:
String

url :String

url for requesting tiles.
Type:
String

Methods Details

addEventListener()

Add event listener to provider, valid events: "featureAdd", "featureRemove", "featureCoordinatesChange", "clear" and "error"

clear()

Clear all features.

config(cfg) → {here.xyz.maps.providers.TileProvider}

set config for provider.
Parameters:
Name Type Description
cfg here.xyz.maps.providers.TileProvider.Options
Returns:
Type:
here.xyz.maps.providers.TileProvider

createTile(quadkey) → {here.xyz.maps.providers.TileProvider.Tile}

create tile.
Parameters:
Name Type Description
quadkey String
Returns:
created tile
Type:
here.xyz.maps.providers.TileProvider.Tile

createTile(quadkey) → {here.xyz.maps.providers.TileProvider.Tile}

create tile.
Parameters:
Name Type Description
quadkey String
Returns:
created tile
Type:
here.xyz.maps.providers.TileProvider.Tile

createTile(quadkey) → {here.xyz.maps.providers.TileProvider.Tile}

create tile.
Parameters:
Name Type Description
quadkey String
Returns:
created tile
Type:
here.xyz.maps.providers.TileProvider.Tile

getCachedTile(quadkey) → {here.xyz.maps.providers.TileProvider.Tile}

get cached tile by quadkey.
Parameters:
Name Type Description
quadkey String
Returns:
Type:
here.xyz.maps.providers.TileProvider.Tile

getCachedTilesOfBBox(bbox, level) → {Array.<here.xyz.maps.providers.TileProvider.Tile>}

get cached tile by bounding box.
Parameters:
Name Type Argument Description
bbox Array.<Number> array of coordinates in order: [minLon, minLat, maxLon, maxLat]
level Integer <optional>
get tiles at specified level
Returns:
array of tiles
Type:
Array.<here.xyz.maps.providers.TileProvider.Tile>

removeEventListener()

Remove event listener from provider, valid events: "featureadd", "featureRemove", "featureCoordinatesChange", "clear" and "error"

setMargin(margin)

set tile margin.
Parameters:
Name Type Description
margin Integer in pixel