From 37183d68b82441f6ab74cba06d9efb2accca34cc Mon Sep 17 00:00:00 2001 From: hpinkos Date: Tue, 18 Dec 2018 11:48:16 -0500 Subject: [PATCH] z index warning for polylines not clamped to ground --- Source/DataSources/PolylineGeometryUpdater.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/DataSources/PolylineGeometryUpdater.js b/Source/DataSources/PolylineGeometryUpdater.js index 87e1258e9005..530d49f94c6a 100644 --- a/Source/DataSources/PolylineGeometryUpdater.js +++ b/Source/DataSources/PolylineGeometryUpdater.js @@ -14,6 +14,7 @@ define([ '../Core/GeometryInstance', '../Core/GroundPolylineGeometry', '../Core/Iso8601', + '../Core/oneTimeWarning', '../Core/PolylineGeometry', '../Core/PolylinePipeline', '../Core/ShowGeometryInstanceAttribute', @@ -44,6 +45,7 @@ define([ GeometryInstance, GroundPolylineGeometry, Iso8601, + oneTimeWarning, PolylineGeometry, PolylinePipeline, ShowGeometryInstanceAttribute, @@ -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); }