Namespace: cesium

bu.util. cesium

This namespace contains definitions of static functions for common CesiumJS operations wih geometries.

Source:
bu/util/cesium/util.jsdoc

Methods


<static> convertColor(color)

Converts an OpenLayers color or ol.ColorLike to Cesium.

Parameters:
Name Type Description
color ol.color | ol.ColorLike

OpenLayers color.

Source:
bu/util/cesium/util.js
Returns:
Type
Cesium.Color

<static> convertCoordinates(coordinates)

Convert one or several 2D or 3D bu.Coordinate in EPSG:4326 projection. to one or several Cesium.Cartesian3.

Parameters:
Name Type Description
coordinates bu.Coordinate | Array.<bu.Coordinate>

Coordinates.

Source:
bu/util/cesium/util.js
Returns:
Type
Cesium.Cartesian3 | Array.<Cesium.Cartesian>

<static> convertGeometryToEntity(geometry, material, ignoreHoles, id [, projection])

Converts a ol.geom.Geometry to a Cesium.Entity. It returns null if geometry is undefined.

Parameters:
Name Type Argument Description
geometry ol.geom.Geometry

OpenLayers geometry.

material Object.<string, Object>

Material for the output object.

ignoreHoles boolean

If ignore interior rings for Polygon objects. This is because certain formats as Shapefile can give problems reading them.

id string

The unique id for the entity.

projection ol.ProjectionLike <optional>

Optional projection. If not exist then by default the geometry is supposed to be in EPSG:4326.

Source:
bu/util/cesium/util.js
Returns:
Type
Cesium.Entity

<static> convertGeometryToPrimitive(geometry, material, ignoreHoles [, projection])

Converts a ol.geom.Geometry to a Cesium.Primitive. It returns null if geometry is undefined.

Parameters:
Name Type Argument Description
geometry ol.geom.Geometry

OpenLayers geometry.

material Object.<string, Object>

Material for the output object.

ignoreHoles boolean

If ignore interior rings for Polygon objects. This is because certain formats as Shapefile can give problems reading them.

projection ol.ProjectionLike <optional>

Optional projection. If not exist then by default the geometry is supposed to be in EPSG:4326.

Source:
bu/util/cesium/util.js
Returns:
Type
Cesium.Primitive

<static> convertStyleToMaterial(style)

Converts a ol.style.Style to a Cesium.Material.

Parameters:
Name Type Description
style ol.style.Style

OpenLayers style.

Source:
bu/util/cesium/util.js
Returns:
Type
Object.<string, Object>