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

Name Type Description
options ol.StyleImageOptions

Options.

Subclasses

Methods

getOpacity(){number} experimental

Get the symbolizer opacity.

Returns:
Opacity.

getRotateWithView(){boolean} experimental

Determine whether the symbolizer rotates with the map.

Returns:
Rotate with map.

getRotation(){number} experimental

Get the symoblizer rotation.

Returns:
Rotation.

getScale(){number} experimental

Get the symbolizer scale.

Returns:
Scale.

getSnapToPixel(){boolean} experimental

Determine whether the symbolizer should be snapped to a pixel.

Returns:
The symbolizer should snap to a pixel.

setOpacity(opacity) experimental

Set the opacity.

Name Type Description
opacity number

Opacity.

setRotation(rotation) experimental

Set the rotation.

Name Type Description
rotation number

Rotation.

setScale(scale) experimental

Set the scale.

Name Type Description
scale number

Scale.