Class: Image

ol.style.Image


import Image from '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)

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

Options.

Subclasses

Methods

getOpacity(){number}

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

Get the symbolizer opacity.

Returns:
Opacity.

getRotateWithView(){boolean}

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

Determine whether the symbolizer rotates with the map.

Returns:
Rotate with map.

getRotation(){number}

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

Get the symoblizer rotation.

Returns:
Rotation.

getScale(){number}

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

Get the symbolizer scale.

Returns:
Scale.

getSnapToPixel(){boolean}

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

Determine whether the symbolizer should be snapped to a pixel.

Returns:
The symbolizer should snap to a pixel.

setOpacity(opacity)

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

Set the opacity.

Name Type Description
opacity number

Opacity.

setRotation(rotation)

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

Set the rotation.

Name Type Description
rotation number

Rotation.

setScale(scale)

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

Set the scale.

Name Type Description
scale number

Scale.