Class: Shadow

ol.style. Shadow

Set Shadow style for point vector features.


new Shadow(options)

Parameters:
Name Type Description
options

Options.

Properties
Name Type Argument Default Description
fill ol.style.Fill | undefined

fill style, default rgba(0,0,0,0.5)

radius number

point radius

blur number

lur radius, default radius/3

declutterMode string <optional>

Declutter mode "declutter" | "obstacle" | "none" | undefined

displacement Array.<number> <optional>

to use with ol > 6

offsetX number <optional>
0

Horizontal offset in pixels, deprecated use displacement with ol>6

offsetY number <optional>
0

Vertical offset in pixels, deprecated use displacement with ol>6

Extends

  • ol.style.RegularShape

Methods


clone()

Clones the style.

Returns:
Type
ol.style.Shadow

getImage(pixelRatio)

Get the image icon.

Parameters:
Name Type Description
pixelRatio number

Pixel ratio.

Returns:

Image or Canvas element.

Type
HTMLCanvasElement