Skip to content
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

different behavior minified vs unminified, normalized result is not a number #6688

Closed
eatjhuapl opened this issue Jun 14, 2018 · 1 comment
Closed

Comments

@eatjhuapl
Copy link

When digging into "normalized result is not a number" exceptions (see #4863, #4801, etc.) I observe different behavior between the minified and unminified versions where minified does not throw the exception and unminified does.

Example code taken from #4863 using Chrome 6x on Win 10 x64 w/ Cesium 1.44, 1.45, & 1.46:

`var viewer = new Cesium.Viewer('cesiumContainer');

var hierarchy = [ -180,90,-180,50,180,50,180,90];

viewer.entities.add({
polygon: {
hierarchy: new Cesium.PolygonHierarchy(Cesium.Cartesian3.fromDegreesArray(hierarchy)),
outline: true,
outlineColor: Cesium.Color.YELLOW,
fill: true,
//fill: false,
material: Cesium.Color.RED,
outlineWidth: 10
}
})`

@shunter
Copy link
Contributor

shunter commented Jun 14, 2018

This is by design. The unminified build has additional runtime checks which can impact performance. As a result the recommendation has always been to develop and test applications locally with the unminified version, and deploy the minified version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants