Helper functions for Cesium 3D TilesetLayer and VCS Style Handling
Classes
Methods
-
staticCore.ModelList.Layer.Tileset.exports.getDefaultCondition(attribute, isColor){Array.<Array.<string>>}
modules/core/modelList/layer/tilesetHelper.js, line 148 -
returns the cesium3DTilesetStyle Condition with the value as the given Attribute The condition checks for undefined and null
Name Type Description attribute
string - isColor
boolean optional - -
staticCore.ModelList.Layer.Tileset.exports.getStringColor(color){string}
modules/core/modelList/layer/tilesetHelper.js, line 116 -
returns a color string in the form rgba(255,255,255,0)
Name Type Description color
ol.Color | Array.<number> | ol.ColorLike - -
staticCore.ModelList.Layer.Tileset.exports.getTilesetStyle(vcsStyle){Cesium.cesium3DTilesetStyle}
modules/core/modelList/layer/tilesetHelper.js, line 294 -
returns a cesium3DTilesetStyle with the conditions based on the vcs StyleItem Definition is used for vector 3D Tiles Datasets.
Name Type Description vcsStyle
Object - -
staticCore.ModelList.Layer.Tileset.exports.hexToOlColor(h, opacity){ol.Color}
modules/core/modelList/layer/tilesetHelper.js, line 59 -
Converts HEX colors to RGB
Name Type Description h
string - opacity
number optional - -
staticCore.ModelList.Layer.Tileset.exports.parseColor(color){ol.Color}
modules/core/modelList/layer/tilesetHelper.js, line 80 -
parse Color method
Name Type Description color
ol.Color | ol.ColorLike | Array.<number> - -
staticCore.ModelList.Layer.Tileset.exports.setCesiumStyleColor(vcsStyle, style){void}
modules/core/modelList/layer/tilesetHelper.js, line 166 -
sets the color condition for the Cesium3DTileStyle
Name Type Description vcsStyle
Object vcs Styling Object style
Cesium.Cesium3DTileStyle Cesium Style Instance -
staticCore.ModelList.Layer.Tileset.exports.setCesiumStyleImage(vcsStyle, style){void}
modules/core/modelList/layer/tilesetHelper.js, line 200 -
sets the scale, pointOutlineWidth, pointOutlineColor, pointSize, image, verticalOrigin, horizontalOrigin conditions for the Cesium3DTileStyle
Name Type Description vcsStyle
Object vcs Styling Object style
Cesium.Cesium3DTileStyle Cesium Style Instance -
staticCore.ModelList.Layer.Tileset.exports.setCesiumStyleText(vcsStyle, style){void}
modules/core/modelList/layer/tilesetHelper.js, line 252 -
sets font conditions for the Cesium3DTileStyle
Name Type Description vcsStyle
Object vcs Styling Object style
Cesium.Cesium3DTileStyle Cesium Style Instance