Skip to content

Commit b561e56

Browse files
author
Hannah
authored
Merge pull request #5754 from esraerik/czml-properties
Czml properties changed as fillcolor
2 parents 5f63315 + 7518543 commit b561e56

File tree

2 files changed

+18
-14
lines changed

2 files changed

+18
-14
lines changed

Apps/Sandcastle/gallery/CZML Reference Properties.html

+17-14
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@
1010
<script type="text/javascript" src="../Sandcastle-header.js"></script>
1111
<script type="text/javascript" src="../../../ThirdParty/requirejs-2.1.20/require.js"></script>
1212
<script type="text/javascript">
13-
require.config({
14-
baseUrl : '../../../Source',
15-
waitSeconds : 60
16-
});
13+
if(typeof require === "function") {
14+
require.config({
15+
baseUrl : '../../../Source',
16+
waitSeconds : 120
17+
});
18+
}
1719
</script>
1820
</head>
1921
<body class="sandcastle-loading" data-sandcastle-bucket="bucket-requirejs.html">
@@ -38,7 +40,7 @@
3840
"cartographicDegrees" : [-110.0, 50.0, 0]
3941
}
4042
}, {
41-
"id" : "outlineColor-reference",
43+
"id" : "fillColor-reference",
4244
"name" : "Referencing Position",
4345
"description" : "<p>For more examples of reference properties, see CZML Polygon - Interpolating References.</p>",
4446
"billboard" : {
@@ -62,11 +64,11 @@
6264
"text" : "referencing position"
6365
},
6466
"position" : {
65-
"reference" : "position-reference#position"
67+
"reference" : "position-reference#position"
6668
}
6769
}, {
6870
"id" : "polygon",
69-
"name" : "Referencing Outline Color",
71+
"name" : "Referencing Fill Color",
7072
"description" : "<p>For more examples of reference properties, see CZML Polygon - Interpolating References.</p>",
7173
"label" : {
7274
"fillColor" : {
@@ -78,7 +80,7 @@
7880
"cartesian2" : [20, 0]
7981
},
8082
"style" : "FILL_AND_OUTLINE",
81-
"text" : "referencing outlineColor"
83+
"text" : "referencing fillColor"
8284
},
8385
"position" : {
8486
"cartographicDegrees" : [-105, 35, 0]
@@ -94,17 +96,18 @@
9496
]
9597
},
9698
"height" : 0,
97-
"outline" : true,
98-
"outlineColor" : {
99-
"reference" : "outlineColor-reference#label.outlineColor"
100-
},
101-
"outlineWidth" : 5
99+
"material" : {
100+
"solidColor" : {
101+
"color" : {
102+
"reference" : "fillColor-reference#label.outlineColor"
103+
}
104+
}
105+
}
102106
}
103107
}];
104108

105109
var viewer = new Cesium.Viewer('cesiumContainer');
106110
viewer.dataSources.add(Cesium.CzmlDataSource.load(czml));
107-
108111
//Sandcastle_End
109112
Sandcastle.finishedLoading();
110113
}

CHANGES.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Change Log
77
* Fixed a bug that caused KML ground overlays to appear distorted when rotation was applied. [#5914](https://github.com/AnalyticalGraphicsInc/cesium/issues/5914)
88
* Adds `invertClassification` and `invertClassificationColor` to `Scene`. When `invertClassification` is `true`, any 3D Tiles geometry that is not classified by a `ClassificationPrimitive` or `GroundPrimitive` will have its color multiplied by `invertClassificationColor`. [#5836](https://github.com/AnalyticalGraphicsInc/cesium/pull/5836)
99
* Added `customTags` property to the UrlTemplateImageryProvider to allow custom keywords in the template URL. [#5696](https://github.com/AnalyticalGraphicsInc/cesium/pull/5696)
10+
* Improved CZML Reference Properties example [#5754](https://github.com/AnalyticalGraphicsInc/cesium/pull/5754)
1011

1112
### 1.38 - 2017-10-02
1213

0 commit comments

Comments
 (0)