-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Description
Hello,
Thanks for bringing in built in types in cesium, it's a really nice addition
I have the following thing that I believe is missing (and other but the issues are already posted).
- Can't import
when
fromCesium
like in this code :
var promise = Cesium.sampleTerrain(terrainProvider, 11, positions);
Cesium.when(promise, function(updatedPositions) {
// positions[0].height and positions[1].height have been updated.
// updatedPositions is just a reference to positions.
});
can't find
when
fromcesium
- Polygon can't be used at geometry
I can't do this anymore, which I believe should work from the docs (https://cesium.com/docs/cesiumjs-ref-doc/GeometryInstance.html)
const rectangleInstance = new GeometryInstance({
geometry: new PolygonGeometry({
polygonHierarchy: new PolygonHierarchy(AreaUtils.getAreaCoordinates(area)),
}),
});
Type 'PolygonGeometry' is missing the following properties from type 'Geometry': attributes, indices, primitiveType, boundingSphere
- Can't add IonImageryProvider to Imagerylayer
const newLayer = new ImageryLayer(new IonImageryProvider({ assetId: provider.id }));
Argument of type 'IonImageryProvider' is not assignable to parameter of type 'ImageryProvider'.
Type 'IonImageryProvider' is missing the following properties from type 'ImageryProvider': defaultNightAlpha, defaultDayAlphats(2345)