Skip to content

Commit

Permalink
Revised presentation in Label translucency Sandcastle example.
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Wood <[email protected]>
  • Loading branch information
abwood committed Oct 4, 2013
1 parent b427167 commit 348f501
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Apps/Sandcastle/gallery/Labels.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,13 @@
var labels = new Cesium.LabelCollection();
labels.add({
position : ellipsoid.cartographicToCartesian(Cesium.Cartographic.fromDegrees(-73.94, 40.67)),
text : 'New York'
text : 'New York',
translucencyByDistance : new Cesium.NearFarScalar(1.5e2, 1.0, 1.5e8, 0.0)
});
labels.add({
position : ellipsoid.cartographicToCartesian(Cesium.Cartographic.fromDegrees(-75.10, 39.57)),
text : 'Philadelphia',
translucencyByDistance : new Cesium.NearFarScalar(1.5e2, 1.0, 1.5e7, 0.0)
position : ellipsoid.cartographicToCartesian(Cesium.Cartographic.fromDegrees(-84.39, 33.75)),
text : 'Atlanta',
translucencyByDistance : new Cesium.NearFarScalar(1.5e5, 1.0, 1.5e7, 0.0)
});
scene.getPrimitives().add(labels);
}
Expand Down

0 comments on commit 348f501

Please sign in to comment.