ol.source. ol.source.ImageVector

new ImageVector

Stability: experimental

An image source whose images are canvas elements into which vector features read from a vector source (ol.source.Vector) are drawn. An ol.source.ImageVector object is to be used as the source of an image layer (ol.layer.Image). Image layers are rotated, scaled, and translated, as opposed to being re-rendered, during animations and interactions. So, like any other image layer, an image layer configured with an ol.source.ImageVector will exhibit this behaviour. This is in contrast to a vector layer, where vector features are re-drawn during animations and interactions.

Parameters:
Name Type Description
options olx.source.ImageVectorOptions

Options.

Properties
Name Type Description
attributions Array.<ol.Attribution> | undefined

Attributions.

extent ol.Extent | undefined

Extent.

logo string | undefined

Logo.

projection ol.proj.ProjectionLike

Projection.

ratio number | undefined

Ratio. 1 means canvases are the size of the map viewport, 2 means twice the size of the map viewport, and so on. Default is 1.5.

resolutions Array.<number> | undefined

Resolutions. If specified, new canvases will be created for these resolutions only.

source ol.source.Vector

The vector source from which the vector features drawn in canvas elements are read.

style ol.style.Style | Array.<ol.style.Style> | ol.feature.StyleFunction | undefined

Style to use when rendering features to the canvas.

Source:
  • imagevectorsource.js, line 34

Extends

Methods

getSource

Stability: experimental
Source:
  • imagevectorsource.js, line 170
Returns:

Source.

Type
ol.source.Vector