-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typescript error in PolygonGraphics #6831
Comments
Hello @golyalpha, CesiumJS does not officially support TypeScript. There has been some discussion here: #5717 We're always happy to take a pull request to make Cesium easier to use with TypeScript! For example, see this PR with |
Just to clarify, we officially support using Cesium in TypeScript applications, we just do not have an official TypeScript definition file. Lots of our users are using TS for development. In your specific case, |
Well, as I said, TS is complaining about missing prop |
* Fix typing error in PolygonGraphics The property outlineColor of PolygonGraphics can accept both Property and Color types. [Discussion on AnalyticalGraphicsInc/cesium](CesiumGS/cesium#6831) * Update version * Removed the Color type from outlineColor typedef.
* Fix typing error in PolygonGraphics The property outlineColor of PolygonGraphics can accept both Property and Color types. [Discussion on AnalyticalGraphicsInc/cesium](CesiumGS/cesium#6831) * Update version * Removed the Color type from outlineColor typedef.
The outlineColor property of the options object is incorrectly typed.
If I provide the property with a ColorMaterialProperty object, TypeScript is silent, but the outline is not rendered, where as, if I provide it with a Color object, TypeScript screams about missing property isConstant in the object, but Cesium renders the outline successfully.
fillMat definition:
The text was updated successfully, but these errors were encountered: