Class: SymbolLib

SymbolLib

A symbol for a given style


new SymbolLib(options)

Constructor

Parameters:
Name Type Description
options options
Properties
Name Type Argument Description
name string

symbol name

feature Feature <optional>

feature the feature to get symbol, if none give a style / type

style ignStyle <optional>

style to apply (if no feature)

type string <optional>

geometry type Point|LineString|Polygon

size Array.<number> <optional>

symbol size, default [60,45]

Source:
style/SymbolLib.js
Fires:
  • event:load

Extends

  • ol_Object

Methods


getIgnStyle()

Get ign style

Source:
style/SymbolLib.js
Returns:
Type
ignStyle

getImage( [clone])

Get symbol image

Parameters:
Name Type Argument Default Description
clone boolean <optional>
false
Source:
style/SymbolLib.js
Returns:
Type
HTMLCanvasElement

getType()

Get geometry type

Source:
style/SymbolLib.js
Returns:

Point|LineString|Polygon

Type
string

setFeatureProperties(prop)

Set properties associated with the style

Parameters:
Name Type Description
prop Object

a list of properties

Source:
style/SymbolLib.js

setIgnStyle(style)

Set ign style

Parameters:
Name Type Description
style ignStyle
Source:
style/SymbolLib.js

stringify()

Get as string

Source:
style/SymbolLib.js
Returns:
Type
string