Spec-Zone.ru › OpenLayers

ol/style/Image~ImageStyle


import ImageStyle from 'ol/style/Image.js';

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

new ImageStyle(options)

style/Image.js, line 25
Name Type Description
opacity number

Opacity.

rotateWithView boolean

If the image should get rotated with the view.

rotation number

Rotation.

scale number | Size

Scale.

displacement Array.<number>

Displacement.

declutterMode DeclutterMode

Declutter mode: declutter, obstacle, none.

Subclasses

  • Icon
  • RegularShape

Methods

clone(){ImageStyle}

style/Image.js, line 78

Clones the style.

Returns:
The cloned style.

getDeclutterMode(){DeclutterMode}

style/Image.js, line 148

Get the declutter mode of the shape

Returns:
Shape's declutter mode

getDisplacement(){Array.<number>}

style/Image.js, line 139

Get the displacement of the shape

Returns:
Shape's center displacement

getOpacity(){number}

style/Image.js, line 95

Get the symbolizer opacity.

Returns:
Opacity.

getRotateWithView(){boolean}

style/Image.js, line 104

Determine whether the symbolizer rotates with the map.

Returns:
Rotate with map.

getRotation(){number}

style/Image.js, line 113

Get the symoblizer rotation.

Returns:
Rotation.

getScale(){number | Size}

style/Image.js, line 122

Get the symbolizer scale.

Returns:
Scale.

setDisplacement(displacement)

style/Image.js, line 229

Set the displacement.

Name Type Description
displacement Array.<number>

Displacement.

setOpacity(opacity)

style/Image.js, line 239

Set the opacity.

Name Type Description
opacity number

Opacity.

setRotateWithView(rotateWithView)

style/Image.js, line 249

Set whether to rotate the style with the view.

Name Type Description
rotateWithView boolean

Rotate with map.

setRotation(rotation)

style/Image.js, line 259

Set the rotation.

Name Type Description
rotation number

Rotation.

setScale(scale)

style/Image.js, line 269

Set the scale.

Name Type Description
scale number | Size

Scale.

© 2005-present, OpenLayers Contributors All rights reserved.Licensed under the BSD 2-Clause License.
https://openlayers.org/en/latest/apidoc/module-ol_style_Image-ImageStyle.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API