Skip to content

Commit

Permalink
Merge pull request #3174 from AnalyticalGraphicsInc/polylineEntityEll…
Browse files Browse the repository at this point in the history
…ipsoid

Polyline entity updates with correct ellipsoid
  • Loading branch information
mramato committed Nov 9, 2015
2 parents 00f8d98 + 84368a0 commit 6e6fecb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Change Log
* Entities have a reference to their entity collection.
* Entity collections have a reference to their owner (usually a data source, but can be a `CompositeEntityCollection`).
* `GeoJsonDataSource.load` now takes an optional `describeProperty` function for generating feature description properties. [#3140](https://github.com/AnalyticalGraphicsInc/cesium/pull/3140)
* 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)

### 1.15 - 2015-11-02

Expand Down
13 changes: 8 additions & 5 deletions Source/DataSources/PolylineGeometryUpdater.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,13 @@ define([
/**
* @private
*/
var generateCartesianArcOptions = {
positions : undefined,
granularity : undefined,
height : undefined,
ellipsoid : undefined
};

var DynamicGeometryUpdater = function(primitives, geometryUpdater) {
var sceneId = geometryUpdater._scene.id;

Expand All @@ -446,12 +453,8 @@ define([
this._primitives = primitives;
this._geometryUpdater = geometryUpdater;
this._positions = [];
};

var generateCartesianArcOptions = {
positions : undefined,
granularity : undefined,
height : undefined
generateCartesianArcOptions.ellipsoid = geometryUpdater._scene.globe.ellipsoid;
};

DynamicGeometryUpdater.prototype.update = function(time) {
Expand Down

0 comments on commit 6e6fecb

Please sign in to comment.