-
Notifications
You must be signed in to change notification settings - Fork 329
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
Conversation
5d96375
to
77a5668
Compare
There was a problem hiding this 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) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
77a5668
to
5b99c1b
Compare
Thanks @oterral. |
Thx for the review @gberaudo |
It corresponds to the hack in Cesium.KmlDataSource.