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

Use GroundPrimitive for line #437

Merged
merged 1 commit into from
Feb 3, 2017
Merged

Conversation

oterral
Copy link
Contributor

@oterral oterral commented Feb 2, 2017

It corresponds to the hack in Cesium.KmlDataSource.

Copy link
Member

@gberaudo gberaudo left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @oterral. Could you please implement the change request and add a note to CHANGES.md? We will mark this feature as experimental.

var outlinePrimitive;
var heightReference = this.getHeightReference(layer, feature, olGeometry);

if (heightReference == Cesium.HeightReference.CLAMP_TO_GROUND) {
Copy link
Member

Choose a reason for hiding this comment

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

If the positions are 3D (just test the first one), could you disregard the CLAMP_TO_GROUND height reference?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You mean if the coordinates is x,y,z. we deactivate the clampToGround?

Copy link
Member

Choose a reason for hiding this comment

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

yes

Copy link
Contributor Author

@oterral oterral Feb 3, 2017

Choose a reason for hiding this comment

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

We don't do this for polygons why doing it for lines ? and that doesn't make sense if the user specify clampToGround he expects the data are clamped to ground whatever the z value.

Copy link
Member

Choose a reason for hiding this comment

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

OK, I checked the KML documentation and they do like you propose: https://developers.google.com/kml/documentation/altitudemode. So OK to merge. However, please update the README.md.

@gberaudo gberaudo merged commit 40ab703 into openlayers:master Feb 3, 2017
@gberaudo
Copy link
Member

gberaudo commented Feb 3, 2017

Thanks @oterral.

@oterral oterral deleted the teo_lineclamp branch February 3, 2017 13:52
@oterral
Copy link
Contributor Author

oterral commented Feb 3, 2017

Thx for the review @gberaudo

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.

2 participants