Members
(protected) scene
- Source:
Methods
(protected) addTextStyle(layer, featurenon-null, geometrynon-null, stylenon-null, primitivenon-null) → (non-null) {Cesium.PrimitiveCollection}
Create a Cesium primitive if style has a text component.
Eventually return a PrimitiveCollection including current primitive.
Parameters:
Name | Type | Description |
---|---|---|
layer |
ol.layer.Vector | ol.layer.Image | |
feature |
ol.Feature | OpenLayers feature.. |
geometry |
ol.geom.Geometry | |
style |
ol.style.Style | |
primitive |
Cesium.Primitive | current primitive |
- Source:
Returns:
- Type
- Cesium.PrimitiveCollection
computePlainStyle(layer, featurenon-null, fallbackStyleFunction, resolution) → {Array.<!ol.style.Style>}
Compute OpenLayers plain style.
Evaluates style function, blend arrays, get default style.
Parameters:
Name | Type | Description |
---|---|---|
layer |
ol.layer.Vector | ol.layer.Image | |
feature |
ol.Feature | |
fallbackStyleFunction |
ol.StyleFunction | undefined | |
resolution |
number |
- Source:
Returns:
null if no style is available
- Type
- Array.<!ol.style.Style>
convert(layernon-null, viewnon-null, featurenon-null, contextnon-null) → {Cesium.Primitive}
Convert an OpenLayers feature to Cesium primitive collection.
Parameters:
Name | Type | Description |
---|---|---|
layer |
ol.layer.Vector | ol.layer.Image | |
view |
ol.View | |
feature |
ol.Feature | |
context |
olcsx.core.OlFeatureToCesiumContext |
- Source:
Returns:
- Type
- Cesium.Primitive
(protected) createColoredPrimitive(layer, featurenon-null, olGeometrynon-null, geometrynon-null, colornon-null, opt_lineWidthopt) → {Cesium.Primitive}
Basics primitive creation using a color attribute.
Note that Cesium has 'interior' and outline geometries.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
layer |
ol.layer.Vector | ol.layer.Image | ||
feature |
ol.Feature | OpenLayers feature. | |
olGeometry |
ol.geom.Geometry | OpenLayers geometry. | |
geometry |
Cesium.Geometry | ||
color |
Cesium.Color | ||
opt_lineWidth |
number |
<optional> |
- Source:
Returns:
- Type
- Cesium.Primitive
csAddBillboard(billboardsnon-null, bbOptionsnon-null, layer, featurenon-null, geometrynon-null, stylenon-null) → (non-null) {Cesium.Billboard}
Add a billboard to a Cesium.BillboardCollection.
Overriding this wrapper allows manipulating the billboard options.
Parameters:
Name | Type | Description |
---|---|---|
billboards |
Cesium.BillboardCollection | |
bbOptions |
Cesium.optionsBillboardCollectionAdd | |
layer |
ol.layer.Vector | ol.layer.Image | |
feature |
ol.Feature | OpenLayers feature. |
geometry |
ol.geom.Geometry | |
style |
ol.style.Style |
- Source:
Returns:
newly created billboard
- Type
- Cesium.Billboard
(protected) extractColorFromOlStyle(style, outline) → (non-null) {Cesium.Color}
Return the fill or stroke color from a plain ol style.
Parameters:
Name | Type | Description |
---|---|---|
style |
ol.style.Style | ol.style.Text | |
outline |
boolean |
- Source:
Returns:
- Type
- Cesium.Color
(protected) extractLineWidthFromOlStyle(style) → {number}
Return the width of stroke from a plain ol style.
Parameters:
Name | Type | Description |
---|---|---|
style |
ol.style.Style | ol.style.Text |
- Source:
Returns:
- Type
- number
(protected) getGeometryFromFeature(featurenon-null, stylenon-null, opt_geomopt, non-null) → {ol.geom.Geometry|undefined}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
feature |
ol.Feature | ||
style |
ol.style.Style | ||
opt_geom |
ol.geom.Geometry |
<optional> |
Geometry to be converted. |
- Source:
Returns:
- Type
- ol.geom.Geometry | undefined
getHeightReference(layer, feature, geometrynon-null) → (non-null) {Cesium.HeightReference}
Parameters:
Name | Type | Description |
---|---|---|
layer |
ol.layer.Vector | ol.layer.Image | |
feature |
ol.Feature | OpenLayers feature.. |
geometry |
ol.geom.Geometry |
- Source:
Returns:
- Type
- Cesium.HeightReference
olCircleGeometryToCesium(layer, featurenon-null, olGeometrynon-null, projectionnon-null, olStylenon-null) → (non-null) {Cesium.PrimitiveCollection}
Convert an OpenLayers circle geometry to Cesium.
Parameters:
Name | Type | Description |
---|---|---|
layer |
ol.layer.Vector | ol.layer.Image | |
feature |
ol.Feature | OpenLayers feature.. |
olGeometry |
ol.geom.Circle | OpenLayers circle geometry. |
projection |
ol.ProjectionLike | |
olStyle |
ol.style.Style |
- Source:
Returns:
primitives
- Type
- Cesium.PrimitiveCollection
olFeatureToCesium(layer, featurenon-null, stylenon-null, contextnon-null, opt_geomopt, non-null) → {Cesium.Primitive}
Convert one OpenLayers feature up to a collection of Cesium primitives.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
layer |
ol.layer.Vector | ol.layer.Image | ||
feature |
ol.Feature | OpenLayers feature. | |
style |
ol.style.Style | ||
context |
olcsx.core.OlFeatureToCesiumContext | ||
opt_geom |
ol.geom.Geometry |
<optional> |
Geometry to be converted. |
- Source:
Returns:
primitives
- Type
- Cesium.Primitive
olGeometry4326TextPartToCesium(layer, featurenon-null, geometrynon-null, stylenon-null) → {Cesium.LabelCollection}
Convert an OpenLayers text style to Cesium.
Parameters:
Name | Type | Description |
---|---|---|
layer |
ol.layer.Vector | ol.layer.Image | |
feature |
ol.Feature | OpenLayers feature.. |
geometry |
ol.geom.Geometry | |
style |
ol.style.Text |
- Source:
Returns:
Cesium primitive
- Type
- Cesium.LabelCollection
olLineStringGeometryToCesium(layer, featurenon-null, olGeometrynon-null, projectionnon-null, olStylenon-null) → (non-null) {Cesium.PrimitiveCollection}
Convert an OpenLayers line string geometry to Cesium.
Parameters:
Name | Type | Description |
---|---|---|
layer |
ol.layer.Vector | ol.layer.Image | |
feature |
ol.Feature | OpenLayers feature.. |
olGeometry |
ol.geom.LineString | OpenLayers line string geometry. |
projection |
ol.ProjectionLike | |
olStyle |
ol.style.Style |
- Source:
Returns:
primitives
- Type
- Cesium.PrimitiveCollection
olMultiGeometryToCesium(layer, featurenon-null, geometrynon-null, projectionnon-null, olStylenon-null, billboardsnon-null, opt_newBillboardCallbackopt) → {Cesium.Primitive}
Convert an OpenLayers multi-something geometry to Cesium.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
layer |
ol.layer.Vector | ol.layer.Image | ||
feature |
ol.Feature | OpenLayers feature.. | |
geometry |
ol.geom.Geometry | OpenLayers geometry. | |
projection |
ol.ProjectionLike | ||
olStyle |
ol.style.Style | ||
billboards |
Cesium.BillboardCollection | ||
opt_newBillboardCallback |
function |
<optional> |
Called when the new billboard is added. |
- Source:
Returns:
primitives
- Type
- Cesium.Primitive
olPointGeometryToCesium(layer, featurenon-null, olGeometrynon-null, projectionnon-null, stylenon-null, billboardsnon-null, opt_newBillboardCallbackopt) → {Cesium.Primitive}
Convert a point geometry to a Cesium BillboardCollection.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
layer |
ol.layer.Vector | ol.layer.Image | ||
feature |
ol.Feature | OpenLayers feature.. | |
olGeometry |
ol.geom.Point | OpenLayers point geometry. | |
projection |
ol.ProjectionLike | ||
style |
ol.style.Style | ||
billboards |
Cesium.BillboardCollection | ||
opt_newBillboardCallback |
function |
<optional> |
Called when the new billboard is added. |
- Source:
Returns:
primitives
- Type
- Cesium.Primitive
olPolygonGeometryToCesium(layer, featurenon-null, olGeometrynon-null, projectionnon-null, olStylenon-null) → (non-null) {Cesium.PrimitiveCollection}
Convert an OpenLayers polygon geometry to Cesium.
Parameters:
Name | Type | Description |
---|---|---|
layer |
ol.layer.Vector | ol.layer.Image | |
feature |
ol.Feature | OpenLayers feature.. |
olGeometry |
ol.geom.Polygon | OpenLayers polygon geometry. |
projection |
ol.ProjectionLike | |
olStyle |
ol.style.Style |
- Source:
Returns:
primitives
- Type
- Cesium.PrimitiveCollection
olStyleToCesium(feature, stylenon-null, outline) → {Cesium.Material}
Convert an OpenLayers style to a Cesium Material.
Parameters:
Name | Type | Description |
---|---|---|
feature |
ol.Feature | OpenLayers feature.. |
style |
ol.style.Style | |
outline |
boolean |
- Source:
Returns:
- Type
- Cesium.Material
olVectorLayerToCesium(olLayernon-null, olViewnon-null, featurePrimitiveMapnon-null) → (non-null) {olcs.core.VectorLayerCounterpart}
Convert an OpenLayers vector layer to Cesium primitive collection.
For each feature, the associated primitive will be stored in
`featurePrimitiveMap`.
Parameters:
Name | Type | Description |
---|---|---|
olLayer |
ol.layer.Vector | ol.layer.Image | |
olView |
ol.View | |
featurePrimitiveMap |
Object.<number, !Cesium.Primitive> |
- Source:
Returns:
- Type
- olcs.core.VectorLayerCounterpart
(protected) setReferenceForPicking(layer, featurenon-null, primitive)
Parameters:
Name | Type | Description |
---|---|---|
layer |
ol.layer.Vector | ol.layer.Image | |
feature |
ol.Feature | OpenLayers feature. |
primitive |
Cesium.Primitive | Cesium.Label | Cesium.Billboard |
- Source:
(protected) wrapFillAndOutlineGeometries(layer, featurenon-null, olGeometrynon-null, fillGeometrynon-null, outlineGeometrynon-null, olStylenon-null) → (non-null) {Cesium.PrimitiveCollection}
Create a primitive collection out of two Cesium geometries.
Only the OpenLayers style colors will be used.
Parameters:
Name | Type | Description |
---|---|---|
layer |
ol.layer.Vector | ol.layer.Image | |
feature |
ol.Feature | OpenLayers feature. |
olGeometry |
ol.geom.Geometry | OpenLayers geometry. |
fillGeometry |
Cesium.Geometry | |
outlineGeometry |
Cesium.Geometry | |
olStyle |
ol.style.Style |
- Source:
Returns:
- Type
- Cesium.PrimitiveCollection