Class: Arrow

alk.style.Arrow

An instance of this class represents an OpenLayers style that forms an arrow.

new alk.style.Arrow(options)

This constructor creates a Regular Shape Style object that represents an arrow.

Option Type Description
fill ol.style.Fill | undefined

Fill style.

radius number | undefined

Radius of a regular polygon.

angle number | undefined

Shape's angle in radians. A value of 0 will have one of the shape's point facing up. Default value is 0.

snapToPixel boolean | undefined

If true integral numbers of pixels are used as the X and Y pixel coordinate when drawing the shape in the output canvas. If false fractional numbers may be used. Using true allows for "sharp" rendering (no blur), while using false allows for "accurate" rendering. Note that accuracy is important if the shape's position is animated. Without it, the shape may jitter noticeably. Default value is true.

stroke ol.style.Stroke | undefined

Stroke style.

rotation number | undefined

Rotation in radians (positive rotation clockwise). Default is 0.

rotateWithView boolean | undefined

Whether to rotate the shape with the view. Default is false.

atlasManager ol.style.AtlasManager | undefined

The atlas manager to use for this symbol. When using WebGL it is recommended to use an atlas manager to avoid texture switching. If an atlas manager is given, the symbol is added to an atlas. By default no atlas manager is used.

scale number | undefined

Scale. Default is 1.

Extends

  • ol.style.RegularShape