Class: ImageLayer

ol/layer/Image~ImageLayer


import ImageLayer from 'ol/layer/Image';

Server-rendered images that are available for arbitrary extents and resolutions. Note that any property set in the options is set as a module:ol/Object~BaseObject property on the layer object; for example, setting title: 'My Title' in the options means that title is observable, and has get/set accessors.

new ImageLayer(opt_options)

layer/Image.js, line 39
Name Type Description
options

Layer options.

Name Type Default Description
opacity number 1

Opacity (0, 1).

visible boolean true

Visibility.

extent module:ol/extent~Extent

The bounding extent for layer rendering. The layer will not be rendered outside of this extent.

zIndex number 0

The z-index for layer rendering. At rendering time, the layers will be ordered, first by Z-index and then by position.

minResolution number

The minimum resolution (inclusive) at which this layer will be visible.

maxResolution number

The maximum resolution (exclusive) below which this layer will be visible.

map module:ol/PluggableMap~PluggableMap

Sets the layer as overlay on a map. The map will not manage this layer in its layers collection, and the layer will be rendered on top. This is useful for temporary layers. The standard way to add a layer to a map and have it managed by the map is to use module:ol/Map#addLayer.

source module:ol/source/Image~ImageSource

Source for this layer.

Fires:

Methods

getSource(){module:ol/source/Image~ImageSource}

layer/Image.js, line 66

Return the associated source of the image layer.

Returns:
Source.