Class: Image

ol.style.Image

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

new ol.style.Image(options) experimental

src/ol/style/imagestyle.js, line 36
Name Type Description
options ol.style.ImageOptions

Options.

Subclasses

Methods

getOpacity(){number} experimental

src/ol/style/imagestyle.js, line 76

Get the symbolizer opacity.

Returns:
Opacity.

getRotateWithView(){boolean} experimental

src/ol/style/imagestyle.js, line 86

Determine whether the symbolizer rotates with the map.

Returns:
Rotate with map.

getRotation(){number} experimental

src/ol/style/imagestyle.js, line 96

Get the symoblizer rotation.

Returns:
Rotation.

getScale(){number} experimental

src/ol/style/imagestyle.js, line 106

Get the symbolizer scale.

Returns:
Scale.

getSnapToPixel(){boolean} experimental

src/ol/style/imagestyle.js, line 116

Determine whether the symbolizer should be snapped to a pixel.

Returns:
The symbolizer should snap to a pixel.

setRotation(rotation) experimental

src/ol/style/imagestyle.js, line 201

Set the rotation.

Name Type Description
rotation number

Rotation.

setScale(scale) experimental

src/ol/style/imagestyle.js, line 212

Set the scale.

Name Type Description
scale number

Scale.