Module: ol/layer/VectorTileRenderType

ol/layer/VectorTileRenderType


Members

VectorTileRenderType{string}

Render mode for vector tiles:

Properties:
Name Type Default Description
IMAGE string image

Vector tiles are rendered as images. Great performance, but point symbols and texts are always rotated with the view and pixels are scaled during zoom animations

HYBRID string hybrid

Polygon and line elements are rendered as images, so pixels are scaled during zoom animations. Point symbols and texts are accurately rendered as vectors and can stay upright on rotated views.

VECTOR string vector

Everything is rendered as vectors. Use this mode for improved performance on vector tile layers with only a few rendered features (e.g. for highlighting a subset of features of another layer with the same source).

module:ol/layer/VectorTileRenderType.HYBRID{string}

Polygon and line elements are rendered as images, so pixels are scaled during zoom animations. Point symbols and texts are accurately rendered as vectors and can stay upright on rotated views.

Default Value:
  • hybrid

module:ol/layer/VectorTileRenderType.IMAGE{string}

Vector tiles are rendered as images. Great performance, but point symbols and texts are always rotated with the view and pixels are scaled during zoom animations

Deprecated
  • Yes
Default Value:
  • image

module:ol/layer/VectorTileRenderType.VECTOR{string}

Everything is rendered as vectors. Use this mode for improved performance on vector tile layers with only a few rendered features (e.g. for highlighting a subset of features of another layer with the same source).

Default Value:
  • vector