CesiumGS / cesium

An open-source JavaScript library for world-class 3D globes and maps :earth_americas:
https://cesium.com/cesiumjs/
Apache License 2.0
12.9k stars 3.48k forks source link

Allow polylines to connect points with Rhumb lines #5795

Closed ggetz closed 7 years ago

ggetz commented 7 years ago
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 commented 7 years ago

Duplicate #4000

ggetz commented 7 years ago

Thanks @hpinkos!