Class: Image

ol.style.Image

A base class used for creating subclasses and not instantiated in apps. Base class for ol.style.Icon, ol.style.Circle and ol.style.RegularShape.

new ol.style.Image(options) experimental

src/ol/style/image.js, line 14
Name Type Description
options ol.StyleImageOptions

Options.

Subclasses

Methods

getOpacity(){number} experimental

src/ol/style/image.js, line 54

Get the symbolizer opacity.

Returns:
Opacity.

getRotateWithView(){boolean} experimental

src/ol/style/image.js, line 64

Determine whether the symbolizer rotates with the map.

Returns:
Rotate with map.

getRotation(){number} experimental

src/ol/style/image.js, line 74

Get the symoblizer rotation.

Returns:
Rotation.

getScale(){number} experimental

src/ol/style/image.js, line 84

Get the symbolizer scale.

Returns:
Scale.

getSnapToPixel(){boolean} experimental

src/ol/style/image.js, line 94

Determine whether the symbolizer should be snapped to a pixel.

Returns:
The symbolizer should snap to a pixel.

setOpacity(opacity) experimental

src/ol/style/image.js, line 168

Set the opacity.

Name Type Description
opacity number

Opacity.

setRotation(rotation) experimental

src/ol/style/image.js, line 189

Set the rotation.

Name Type Description
rotation number

Rotation.

setScale(scale) experimental

src/ol/style/image.js, line 200

Set the scale.

Name Type Description
scale number

Scale.