Class: VectorTile

ol/VectorTile~VectorTile


Extends

Methods

dispatchEvent(event){boolean|undefined} inherited

events/Target.js, line 96

Dispatches an event and calls all listeners listening for events of this type. The event parameter can either be a string or an Object with a type property.

Name Type Description
event Object | module:ol/events/Event~BaseEvent | string

Event object.

Returns:
false if anyone called preventDefault on the event object or if any of the listeners returned false.

getFeatures(){Array.<module:ol/Feature~FeatureLike>}

VectorTile.js, line 90

Get the features for this tile. Geometries will be in the view projection.

Returns:
Features.

getFormat(){module:ol/format/Feature~FeatureFormat}

VectorTile.js, line 81

Get the feature format assigned for reading this tile's features.

Returns:
Feature format.

getTileCoord(){module:ol/tilecoord~TileCoord} inherited

Tile.js, line 231

Get the tile coordinate for this tile.

Returns:
The tile coordinate.

load() inherited

Tile.js, line 265

Load the image or retry if loading previously failed. Loading is taken care of by the tile queue, and calling this method is only needed for preloading or for reloading in case of an error.

setFeatures(features)

VectorTile.js, line 134

Function for use in an module:ol/source/VectorTile~VectorTile's tileLoadFunction. Sets the features for the tile.

Name Type Description
features Array.<module:ol/Feature~Feature>

Features.

setLoader(loader)

VectorTile.js, line 144

Set the feature loader for reading this tile's features.

Name Type Description
loader module:ol/featureloader~FeatureLoader

Feature loader.

setState(state) inherited

Tile.js, line 250

Sets the state of this tile. If you write your own tileLoadFunction , it is important to set the state correctly to module:ol/TileState~ERROR when the tile cannot be loaded. Otherwise the tile cannot be removed from the tile queue and will block other requests.

Name Type Description
state module:ol/TileState

State.