new PointStyleModel()
modules/vectorStyle/pointStyle.js, line 16
Class to create ol.style/Style
Properties:
| Name | Type | Description |
|---|---|---|
feature |
ol/feature | Feature to be styled. |
styles |
object | styling properties to overwrite defaults |
isClustered |
Boolean | Flag to show if feature is clustered. |
Extends
Members
-
staticPointStyleModel.clusterTypestring
-
-
staticPointStyleModel.typestring
-
Methods
-
calculateCircleSegment(startAngelDegree, endAngelDegree, circleRadius, size, gap){String}
modules/vectorStyle/pointStyle.js, line 545 -
Create circle segments
Name Type Description startAngelDegreenumber start with circle segment endAngelDegreenumber finish with circle segment circleRadiusnumber radius from circle sizenumber size of the window to be draw gapnumber gap between segments Returns:
circle segments
-
calculateLengthIntervalCircleBar(size, circleBarRadius, stateValue, circleBarScalingFactor){number}
modules/vectorStyle/pointStyle.js, line 625 -
Calculate the length for the bar
Name Type Description sizenumber size of the section to be drawn circleBarRadiusnumber radius from point stateValuenumber value from feature circleBarScalingFactornumber factor is multiplied by the stateValue -
calculateSizeIntervalCircleBar(stateValue, circleBarScalingFactor, circleBarLineStroke, circleBarRadius){number}
modules/vectorStyle/pointStyle.js, line 607 -
Calculate size for intervalscaled circle bar
Name Type Description stateValuenumber value from feature circleBarScalingFactornumber factor is multiplied by the stateValue circleBarLineStrokenumber stroke from bar circleBarRadiusnumber radius from point Returns:
- size of the section to be drawn
-
componentToHex(c){String}
modules/vectorStyle/pointStyle.js, line 339 -
Converts number to hex string.
Name Type Description cNumber Color value as number. Returns:
Converted color number as hex string.
-
createCircleClusterStyle(){ol/style}
modules/vectorStyle/pointStyle.js, line 158 -
Creates circleClusterStyle. all clustered features get same circle.
Returns:
The created style.
-
createCirclePointStyle(){ol/style}
modules/vectorStyle/pointStyle.js, line 211 -
Creates circlePointStyle. all features get same circle.
Returns:
The created style.
-
createIconClusterStyle(){ol/style}
modules/vectorStyle/pointStyle.js, line 124 -
Creates simpleClusterStyle. all clustered features get same image.
Returns:
The created style.
-
createIconPointStyle(){ol/style}
modules/vectorStyle/pointStyle.js, line 183 -
Creates pointStyle as icon. all features get same image.
Returns:
The created style.
-
createIntervalCircleBar(feature){String}
modules/vectorStyle/pointStyle.js, line 578 -
Create interval circle bar
Name Type Description featureol.Feature contains features to draw -
createIntervalPointStyle(){ol.Style}
modules/vectorStyle/pointStyle.js, line 263 -
create interval scaled advanced style for pointFeatures
-
createNominalCircleSegments(feature){String}
modules/vectorStyle/pointStyle.js, line 380 -
Create a svg with colored circle segments by nominal scaling
Name Type Description featureol.Feature feature to be draw Returns:
with colored circle segments
-
createNominalPointStyle(){ol.Style}
modules/vectorStyle/pointStyle.js, line 235 -
create nominal scaled advanced style for pointFeatures
-
createSvgIntervalCircleBar(size, barLength, circleBarCircleFillColor, circleBarCircleStrokeColor, circleBarCircleStrokeWidth, circleBarLineStrokeColor, circleBarLineStroke, circleBarRadius){String}
modules/vectorStyle/pointStyle.js, line 653 -
Create SVG for intervalscaled circle bars
Name Type Description sizenumber size of the section to be drawn barLengthnumber length from bar circleBarCircleFillColorString fill color from circle circleBarCircleStrokeColorString stroke color from circle circleBarCircleStrokeWidthnumber stroke width from circle circleBarLineStrokeColorString stroke color from bar circleBarLineStrokenumber stroke from bar circleBarRadiusnumber radius from point -
createSvgNominalCircleSegments(size, circleSegmentsRadius, circleSegmentsBackgroundColor, circleSegmentsStrokeWidth, circleSegmentsFillOpacity){String}
modules/vectorStyle/pointStyle.js, line 502 -
Create SVG for nominalscaled circle segments
Name Type Description sizenumber size of the section to be drawn circleSegmentsRadiusnumber radius from circlesegment circleSegmentsBackgroundColorString backgroundcolor from circlesegment circleSegmentsStrokeWidthnumber strokewidth from circlesegment circleSegmentsFillOpacityString opacity from circlesegment -
createSVGStyle(svgPath){ol.Style}
modules/vectorStyle/pointStyle.js, line 276 -
create Style for SVG
Name Type Description svgPathString contains the params to be draw -
extendsSvgNominalCircleSegments(svg, circleSegmentsStrokeWidth, strokeColor, d){String}
modules/vectorStyle/pointStyle.js, line 528 -
Extends the SVG with given tags
Name Type Description svgString String with svg tags circleSegmentsStrokeWidthnumber strokewidth from circlesegment strokeColorString strokecolor from circlesegment dString circle segment Returns:
svg
-
fillScalingAttributes(scalingAttributesAsObject, scalingAttribute){Object}
modules/vectorStyle/pointStyle.js, line 450 -
Fills the object with values
Name Type Description scalingAttributesAsObjectobject object with possible attributes as keys and values = 0 scalingAttributestring actual states from feature Returns:
- contains the states
-
getScalingAttributesAsObject(scalingValues){object}
modules/vectorStyle/pointStyle.js, line 478 -
Convert scalingAttributes to object
Name Type Description scalingValuesobject contains attribute with color Returns:
with value 0
-
getStyle(){ol/style}
modules/vectorStyle/pointStyle.js, line 90 -
This function returns a style for each feature.
Returns:
The created style.
-
inherited getValueFromPath(featureProperties, path){*}
modules/vectorStyle/style.js, line 68 -
Returns the value from the given path.
Name Type Description featurePropertiesObject Feature properties. pathString Field as object path. Returns:
Value from given path.
-
hexToRgb(hex){Array.<Number>}
modules/vectorStyle/pointStyle.js, line 350 -
Converts hex value to rgbarray.
Name Type Description hexString Color as hex string. Returns:
Color als rgb array.
-
normalizeRgbColor(newColor){array}
modules/vectorStyle/pointStyle.js, line 369 -
Makes sure that one rgb color always consists of four values
Name Type Description newColorarray Color in rgb -
inherited prepareField(featureProperties, field){*}
modules/vectorStyle/style.js, line 49 -
Returns the value of the given field. Also considers that the field can be an object path.
Name Type Description featurePropertiesObject Feature properties. fieldString Field to get value. Returns:
Value from given field.
-
returnColor(color, dest){String|Array.<Number>}
modules/vectorStyle/pointStyle.js, line 292 -
Returns input color to destinated color. possible values for dest are "rgb" and "hex". color has to come as hex (e.g. "#ffffff" || "#fff") or as array (e.g [255,255,255,0]) or as String ("[255,255,255,0]")
Name Type Description colorArray.<Number> | String The color to return. destString Destination color type. Returns:
The converted color.
-
rgbToHex(r, g, b){String}
modules/vectorStyle/pointStyle.js, line 330 -
Converts rgb to hex.
Name Type Description rNumber Red value. gNumber Green Value. bNumber Blue value. Returns:
Hex color string.
-
setCircleSegmentsBackgroundColor(value){void}
modules/vectorStyle/pointStyle.js, line 684 -
Setter for circleSegmentsBackgroundColor
Name Type Description valueArray.<Number> Color -
setImagePath(value){void}
modules/vectorStyle/pointStyle.js, line 702 -
Setter for imagePath.
Name Type Description valueString Image path. -
setSize(size){void}
modules/vectorStyle/pointStyle.js, line 693 -
Setter for size.
Name Type Description size* Size