Skip to content

Commit 6e6fecb

Browse files
committed
Merge pull request #3174 from AnalyticalGraphicsInc/polylineEntityEllipsoid
Polyline entity updates with correct ellipsoid
2 parents 00f8d98 + 84368a0 commit 6e6fecb

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

CHANGES.md

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Change Log
1212
* Entities have a reference to their entity collection.
1313
* Entity collections have a reference to their owner (usually a data source, but can be a `CompositeEntityCollection`).
1414
* `GeoJsonDataSource.load` now takes an optional `describeProperty` function for generating feature description properties. [#3140](https://github.com/AnalyticalGraphicsInc/cesium/pull/3140)
15+
* Fixed a bug which caused `Entity` polyline graphics to be incorrect when a scene's ellipsoid was not WGS84. [#3174](https://github.com/AnalyticalGraphicsInc/cesium/pull/3174)
1516

1617
### 1.15 - 2015-11-02
1718

Source/DataSources/PolylineGeometryUpdater.js

+8-5
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,13 @@ define([
427427
/**
428428
* @private
429429
*/
430+
var generateCartesianArcOptions = {
431+
positions : undefined,
432+
granularity : undefined,
433+
height : undefined,
434+
ellipsoid : undefined
435+
};
436+
430437
var DynamicGeometryUpdater = function(primitives, geometryUpdater) {
431438
var sceneId = geometryUpdater._scene.id;
432439

@@ -446,12 +453,8 @@ define([
446453
this._primitives = primitives;
447454
this._geometryUpdater = geometryUpdater;
448455
this._positions = [];
449-
};
450456

451-
var generateCartesianArcOptions = {
452-
positions : undefined,
453-
granularity : undefined,
454-
height : undefined
457+
generateCartesianArcOptions.ellipsoid = geometryUpdater._scene.globe.ellipsoid;
455458
};
456459

457460
DynamicGeometryUpdater.prototype.update = function(time) {

0 commit comments

Comments
 (0)