Namespace: layer

ol.layer


import layer from 'ol/layer';

Classes

Base
Group
Heatmap
Image
Layer
Tile
Vector
VectorTile

Type Definitions

ol.layer.VectorRenderType{string}

Render mode for vector layers:

  • 'image': Vector layers are rendered as images. Great performance, but point symbols and texts are always rotated with the view and pixels are scaled during zoom animations.
  • 'vector': Vector layers are rendered as vectors. Most accurate rendering even during animations, but slower performance.

ol.layer.VectorTileRenderType{string}

Render mode for vector tiles:

  • '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': 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': Vector tiles are rendered as vectors. Most accurate rendering even during animations, but slower performance than the other options.