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
colororol.ColorLiketo Cesium.Parameters:
Name Type Description colorol.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.Coordinatein EPSG:4326 projection. to one or severalCesium.Cartesian3.Parameters:
Name Type Description coordinatesbu.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.Geometryto aCesium.Entity. It returns null if geometry is undefined.Parameters:
Name Type Argument Description geometryol.geom.Geometry OpenLayers geometry.
materialObject.<string, Object> Material for the output object.
ignoreHolesboolean If ignore interior rings for Polygon objects. This is because certain formats as Shapefile can give problems reading them.
idstring The unique id for the entity.
projectionol.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.Geometryto aCesium.Primitive. It returns null if geometry is undefined.Parameters:
Name Type Argument Description geometryol.geom.Geometry OpenLayers geometry.
materialObject.<string, Object> Material for the output object.
ignoreHolesboolean If ignore interior rings for Polygon objects. This is because certain formats as Shapefile can give problems reading them.
projectionol.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.Styleto aCesium.Material.Parameters:
Name Type Description styleol.style.Style OpenLayers style.
- Source:
- bu/util/cesium/util.js
Returns:
- Type
- Object.<string, Object>
Javascript API 7.x