Style function using ign styles
- Source:
- style/ignStyleFn.js
Members
-
<static, constant> defaultIgnStyle
-
default ignStyle
- Source:
- style/ignStyle.js
-
<static, constant> ignStyleDef
-
Ign style def
- Source:
- style/ignStyle.js
-
<static, constant> pointFrameList
-
List of frame form
- Source:
- style/ignStyle.js
-
<static, constant> symbolFormList
-
List of symbol form
- Source:
- style/ignStyle.js
-
<static, constant> textFontList
-
List of symbol form
- Source:
- style/ignStyle.js
Methods
-
<static> clearCache()
-
Clear style cache
- Source:
- style/ignStyleFn.js
-
<static> getIgnStyle(f [, iStyle])
-
Get ignStyle for a feature
Parameters:
Name Type Argument Description f
ol_Feature iStyle
Object <optional>
prevalent style
- Source:
- style/ignStyleFn.js
-
<static> getSelectStyleFn(options)
-
Get select Style
Parameters:
Name Type Description options
* Properties
Name Type Description type
zoom | overlay | highlight | box select style type, default box
showObject
boolean show the object, default true
points
ol.style.Image | function | false | undefined style for lines points or false to hide points, default red points
stroke
ol_style_Stroke | undefined default red, 2px
radius
number | undefined radius for the points, default 5
styleFn
function | undefined a style function
color
ol/colorLike - Source:
- style/ignStyleFn.js
Returns:
style function
- Type
- function
-
<static> getStyleFn(options)
-
Create style function to draw features ie. transform ignStyle in openlayers style
Parameters:
Name Type Description options
* Properties
Name Type Argument Default Description ghost
boolean true to show a ghost feature when size=0
clusterColor
string a color, default red / orange / green
clusterDash
boolean border is dash, default true
zIndex
number <optional>
0 - Source:
- style/ignStyleFn.js
-
<static> ordering(f1, f2)
-
Ordering function that use the ignStyle zindex
Parameters:
Name Type Description f1
Feature f2
Feature - Source:
- style/ignStyleFn.js
Returns:
- Type
- number
-
<static> style2IgnStyle(f [, reset])
-
Transform ol/style to ignStyle Get the style associated with a feature, remove it and set it an ignStyle
Parameters:
Name Type Argument Default Description f
Feature reset
boolean <optional>
false reset the feature style
- Source:
- style/style2IgnStyle.js
Returns:
- Type
- object