Skip to content

Commit

Permalink
Merge pull request #7424 from AnalyticalGraphicsInc/zindex-warning
Browse files Browse the repository at this point in the history
z index warning for polylines not clamped to ground
  • Loading branch information
mramato authored Jan 2, 2019
2 parents 18b5f57 + 37183d6 commit 8d410ff
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Source/DataSources/PolylineGeometryUpdater.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ define([
'../Core/GeometryInstance',
'../Core/GroundPolylineGeometry',
'../Core/Iso8601',
'../Core/oneTimeWarning',
'../Core/PolylineGeometry',
'../Core/PolylinePipeline',
'../Core/ShowGeometryInstanceAttribute',
Expand Down Expand Up @@ -44,6 +45,7 @@ define([
GeometryInstance,
GroundPolylineGeometry,
Iso8601,
oneTimeWarning,
PolylineGeometry,
PolylinePipeline,
ShowGeometryInstanceAttribute,
Expand Down Expand Up @@ -521,6 +523,10 @@ define([

this._clampToGround = defined(clampToGround) ? clampToGround.getValue(Iso8601.MINIMUM_VALUE) : false;

if (!this._clampToGround && defined(zIndex)) {
oneTimeWarning('Entity polylines must have clampToGround: true when using zIndex. zIndex will be ignored.');
}

this._dynamic = false;
this._geometryChanged.raiseEvent(this);
}
Expand Down

0 comments on commit 8d410ff

Please sign in to comment.