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)
-
Display a dialog to create a new symbol in a SymbolLib
Parameters:
Name Type Description symbolLib
Collection.<SymbolLib> SymbolLib to update
symbol
SymbolLib Default symbol
- Source:
- input/FormStyle.js
-
<static> showDialogEditor(symbolLib)
-
Display a dialog to create new symbols in a SymbolLib
Parameters:
Name Type Description symbolLib
Collection.<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 feature
Feature - Source:
- input/FormStyle.js
-
setStyle(style, silence)
-
Set current style and display in the form
Parameters:
Name Type Description style
Object silence
boolean if true don't change point style type
- Source:
- input/FormStyle.js
-
setTypeGeom( [type])
-
Set geom type
Parameters:
Name Type Argument Description type
Array.<string> <optional>
Point,Line,Polygon default all geom
- Source:
- input/FormStyle.js