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

Allow undefined GroundPolylineGeometry for data that filters to a single point #6704

Merged
merged 2 commits into from
Jun 19, 2018

Conversation

likangning93
Copy link
Contributor

Fixes #6702

@cesium-concierge
Copy link

Signed CLA is on file.

@likangning93, thanks for the pull request! Maintainers, we have a signed CLA from @likangning93, so you can review this at any time.

⚠️ I noticed that CHANGES.md has not been updated. If this change updates the public API in any way, fixes a bug, or makes any non-trivial update, please add a bullet point to CHANGES.md and comment on this pull request so we know it was updated. For more info, see the Pull Request Guidelines.


I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome.

🌍 🌎 🌏


var geometry = GroundPolylineGeometry.createGeometry(groundPolylineGeometry);

expect(geometry).not.toBeDefined();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.not.toBeDefined() -> .toBeUndefined()

@@ -457,6 +457,11 @@ define([
cartographics = arrayRemoveDuplicates(cartographics, Cartographic.equalsEpsilon);
cartographicsLength = cartographics.length;

// In order to support external data that may have errors we treat this as an empty geometry.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We generally don't use inline comments unless something is truly non-obvious. It's easy for the inline comments to get out of sync with the code when we make changes.
We honestly should probably remove most of the comments in the files you added.

@likangning93
Copy link
Contributor Author

@hpinkos updated! I took out a few comments... there were already some that were out of sync >_<

@hpinkos
Copy link
Contributor

hpinkos commented Jun 19, 2018

Thanks @likangning93! Please open another PR to remove inline comments from other files you've committed.

@hpinkos hpinkos merged commit c76c1fe into CesiumGS:master Jun 19, 2018
@hpinkos hpinkos deleted the groundPolylineGeometryBug branch June 19, 2018 15:41
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

Successfully merging this pull request may close these issues.

3 participants