new FormStyle(options)
Parameters:
| Name | Type | Description | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | a list of options Properties
|
- Source:
- input/FormStyle.js
Extends
- olObject
Methods
-
<static> addSymbolLibDialog(symbolLib, symbol [, cback])
-
Display a dialog to create a new symbol in a SymbolLib
Parameters:
Name Type Argument Description symbolLibCollection.<SymbolLib> SymbolLib to update
symbolSymbolLib Default symbol
cbackfunction <optional>
a function that takes a SymbolLib
- Source:
- input/FormStyle.js
-
<static> showDialogEditor(symbolLib)
-
Display a dialog to create new symbols in a SymbolLib
Parameters:
Name Type Description symbolLibCollection.<SymbolLib> - Source:
- input/FormStyle.js
-
addSymbol(symbolLib [, cback])
-
Add a new symbol to the symbol lib
Parameters:
Name Type Argument Description symbolLibCollection.<SymbolLib> SymbolLib to update
cbackfunction <optional>
a function that takes a SymbolLib
- Source:
- input/FormStyle.js
-
dispatchEvent()
-
Dispatch event (if not silence)
- Source:
- input/FormStyle.js
-
getStyle()
-
Get currnet style
- Source:
- input/FormStyle.js
Returns:
style
- Type
- Object
-
setFeature(feature)
-
Set style associated with a feature
Parameters:
Name Type Description featureFeature - Source:
- input/FormStyle.js
-
setStyle(style, silence)
-
Set current style and display in the form
Parameters:
Name Type Description styleObject silenceboolean if true don't change point style type
- Source:
- input/FormStyle.js
-
setTypeGeom( [type])
-
Set geom type
Parameters:
Name Type Argument Description typeArray.<string> <optional>
Point,Line,Polygon default all geom
- Source:
- input/FormStyle.js