Class: VectorTile

ol.VectorTile

Extends

Methods

getFeatures(){Array.<(ol.Feature|ol.render.Feature)>}

src/ol/vectortile.js, line 97

Get the features for this tile. Geometries will be in the projection returned by #getProjection.

Returns:
Features.

getFormat(){ol.format.Feature}

src/ol/vectortile.js, line 86

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

Returns:
Feature format.

getProjection(){ol.proj.Projection}

src/ol/vectortile.js, line 115

Get the feature projection of features returned by #getFeatures.

Returns:
Feature projection.

getTileCoord(){ol.TileCoord} inherited

src/ol/tile.js, line 136

Get the tile coordinate for this tile.

Returns:
The tile coordinate.

load() inherited

src/ol/tile.js, line 163

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)

src/ol/vectortile.js, line 160
Name Type Description
features Array.<ol.Feature>

Features.

setLoader(loader)

src/ol/vectortile.js, line 186

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

Name Type Description
loader ol.FeatureLoader

Feature loader.

setProjection(projection)

src/ol/vectortile.js, line 171

Set the projection of the features that were added with #setFeatures.

Name Type Description
projection ol.proj.Projection

Feature projection.