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 polylines to connect points with Rhumb lines #5795

Closed
ggetz opened this issue Aug 31, 2017 · 2 comments
Closed

Allow polylines to connect points with Rhumb lines #5795

ggetz opened this issue Aug 31, 2017 · 2 comments

Comments

@ggetz
Copy link
Contributor

ggetz commented Aug 31, 2017

var viewer = new Cesium.Viewer("cesiumContainer" );


viewer.entities.add({
    polyline: {
        positions: Cesium.Cartesian3.fromDegreesArray([-120, 20, 120, 20])
    }
});

Turn on 2D mode and the line will appear warped, even though it's connecting two points of a constant latitude, because the polyline is connecting the two points with a great arc.

The followSurface property only allows the two points to be connected with a great arc or linearly (which clips through the globe):
https://cesiumjs.org/Cesium/Build/Documentation/PolylineGraphics.html?classFilter=polyline#followSurface

@hpinkos
Copy link
Contributor

hpinkos commented Aug 31, 2017

Duplicate #4000

@hpinkos hpinkos closed this as completed Aug 31, 2017
@ggetz
Copy link
Contributor Author

ggetz commented Aug 31, 2017

Thanks @hpinkos!

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