new vcs.vcm.util.style.VectorStyleItem(options)
| Name | Type | Description |
|---|---|---|
options |
vcs.vcm.util.style.VectorStyleItem.Options |
Extends
Members
-
cesiumFillColor{Cesium.Color}
-
the current fill color as a cesium color
-
cesiumStyle{Cesium.Cesium3DTileStyle}
-
The 3D representation of this style
-
-
fillColor{ol.Color} {null}
-
the current fill color, not the pattern
-
image{ol.style.Icon} {ol.style.RegularShape}
-
-
label{string}
-
-
legend{Array.<vcs.vcm.util.style.StyleItem.LegendEntry>}
-
Legend entries
-
name{string} {number}
-
The name of the style
-
-
stroke{ol.style.Stroke}
-
-
style{ol.style.Style} {ol.StyleFunction}
-
-
styleChanged{Cesium.Event}
-
Fired on style updates
- TODO
-
- this is not yet the case for all vector style properties
-
text{ol.style.Text}
-
Methods
-
assign(result){vcs.vcm.util.style.VectorStyleItem}
-
assigns the sections defined on this style to another style
Name Type Description resultvcs.vcm.util.style.VectorStyleItem -
clone(result){vcs.vcm.util.style.VectorStyleItem}
-
Clones this style
Name Type Description resultvcs.vcm.util.style.VectorStyleItem -
getOptions(sections){vcs.vcm.util.style.VectorStyleItem.Options}
-
Name Type Description sectionsObject.<string, boolean> -
getReference(){vcs.vcm.util.style.Reference} inherited
-
gets a reference to this style by its name. should only be used for static styles, aka styles already part of the config
-
unset(section)
-
Exclude a section from this style. Excluded section are not returned and cannot be assigned via .assign. Setting the section over a property will remove it from the excluded sections.
Name Type Description sectionstring one of fill, stroke, image
Type Definitions
-
vcs.vcm.util.style.VectorStyleItem.Exclusion{Object}
-
Properties:
Name Type Description fillboolean strokeboolean imageboolean -
vcs.vcm.util.style.VectorStyleItem.Fill{Object}
-
Properties:
Name Type Description colorol.Color | ol.ColorLike patternvcs.vcm.util.style.VectorStyleItem.Pattern | undefined -
vcs.vcm.util.style.VectorStyleItem.Image{Object}
-
This is either olx.style.IconOptions or olx.style.CircleOptions
Properties:
Name Type Description srcstring | undefined scalenumber | undefined opacitynumber | undefined colorol.Color | undefined fillolx.style.FillOptions | ol.style.Fill | undefined strokeolx.style.StrokeOptions | ol.style.Stroke | undefined radiusnumber | undefined pointsnumber | undefined anglenumber | undefined -
vcs.vcm.util.style.VectorStyleItem.Options
-
Properties:
Name Type Description fillvcs.vcm.util.style.VectorStyleItem.Fill | false | undefined strokeolx.style.StrokeOptions | false | undefined imagevcs.vcm.util.style.VectorStyleItem.Image | false | undefined textvcs.vcm.util.style.VectorStyleItem.Text | undefined labelstring | undefined -
vcs.vcm.util.style.VectorStyleItem.Pattern{Object}
-
Properties:
Name Type Description typevcs.vcm.util.style.PatternType colorol.Color | ol.ColorLike widthnumber sizenumber -
vcs.vcm.util.style.VectorStyleItem.Text{Object}
-
Properties:
Name Type Description textstring | undefined fontstring | vcs.vcm.util.style.FontObject | undefined fillolx.style.FillOptions | ol.style.Fill | undefined strokeolx.style.StrokeOptions | ol.style.Stroke | undefined textBaselinestring | undefined offsetXnumber | undefined offsetYnumber | undefined
virtualcityMAP 3.6