new FontSymbol(options)
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Options. Properties
|
- Implements:
- ol.structs.IHasChecksum
Extends
- ol.style.RegularShape
Members
-
defs
-
Font defs
Methods
-
<static> addDefs(font, glyphs)
-
Static function : add new font defs
Parameters:
Name Type Description font
String | Object the font desciption
glyphs
a key / value list of glyph definitions. Each key is the name of the glyph, the value is an object that code the font, the caracter code, the name and a search string for the glyph.
-
clone()
-
Clones the style.
Returns:
- Type
- ol.style.FontSymbol
-
getChecksum()
-
-
getFill()
-
Get the fill style for the symbol.
Returns:
Fill style.
- Type
- ol.style.Fill
-
getFontInfo()
-
Get the stroke style for the symbol.
Returns:
Stroke style.
- Type
- _ol_style_Stroke_
-
getGlyph(name)
-
Get the glyph definition for the symbol.
Parameters:
Name Type Description name
string | undefined a glyph name to get the definition, default return the glyph definition for the style.
Returns:
Stroke style.
- Type
- _ol_style_Stroke_
-
getGlyphName()
-
Get the glyph name.
Returns:
the name
- Type
- string
-
getStroke()
-
Get the stroke style for the symbol.
Returns:
Stroke style.
- Type
- _ol_style_Stroke_