Skip to content

Commit

Permalink
Fix position
Browse files Browse the repository at this point in the history
  • Loading branch information
pjcozzi committed Feb 9, 2015
1 parent 8b053bd commit e53a722
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions Apps/Sandcastle/gallery/Labels.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
function addLabel() {
Sandcastle.declare(addLabel);
viewer.entities.add({
position : Cesium.Cartesian3.fromDegrees(-75.10, 39.57),
position : Cesium.Cartesian3.fromDegrees(-75.1641667, 39.9522222),
label : {
text : 'Philadelphia'
}
Expand All @@ -42,7 +42,7 @@
function setFont() {
Sandcastle.declare(setFont);
viewer.entities.add({
position : Cesium.Cartesian3.fromDegrees(-75.10, 39.57),
position : Cesium.Cartesian3.fromDegrees(-75.1641667, 39.9522222),
label : {
text : 'Philadelphia',
font : '24px Helvetica',
Expand All @@ -57,7 +57,7 @@
function setProperties() {
Sandcastle.declare(setProperties);
var entity = viewer.entities.add({
position : Cesium.Cartesian3.fromDegrees(-75.10, 39.57, 300000.0),
position : Cesium.Cartesian3.fromDegrees(-75.1641667, 39.9522222, 300000.0),
label : {
text : 'Philadelphia'
}
Expand All @@ -71,9 +71,9 @@
var image = new Image();
image.onload = function() {
viewer.entities.add({
position : Cesium.Cartesian3.fromDegrees(-75.10, 39.57),
position : Cesium.Cartesian3.fromDegrees(-75.1641667, 39.9522222),
billboard : {
position : Cesium.Cartesian3.fromDegrees(-75.10, 39.57),
position : Cesium.Cartesian3.fromDegrees(-75.1641667, 39.9522222),
scaleByDistance : new Cesium.NearFarScalar(1.5e2, 5.0, 1.5e7, 0.5),
image : image
},
Expand Down
12 changes: 6 additions & 6 deletions Apps/Sandcastle/gallery/development/Labels.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
scene.primitives.removeAll();
var labels = scene.primitives.add(new Cesium.LabelCollection());
labels.add({
position : Cesium.Cartesian3.fromDegrees(-75.10, 39.57),
position : Cesium.Cartesian3.fromDegrees(-75.1641667, 39.9522222),
text : 'Philadelphia'
});
}
Expand All @@ -45,7 +45,7 @@
scene.primitives.removeAll();
var labels = scene.primitives.add(new Cesium.LabelCollection());
labels.add({
position : Cesium.Cartesian3.fromDegrees(-75.10, 39.57),
position : Cesium.Cartesian3.fromDegrees(-75.1641667, 39.9522222),
text : 'Philadelphia',
// CSS font-family
font : '24px Helvetica',
Expand All @@ -61,11 +61,11 @@
scene.primitives.removeAll();
var labels = scene.primitives.add(new Cesium.LabelCollection());
var l = labels.add({
position : Cesium.Cartesian3.fromDegrees(-75.10, 39.57),
position : Cesium.Cartesian3.fromDegrees(-75.1641667, 39.9522222),
text : 'Philadelphia'
});

l.position = Cesium.Cartesian3.fromDegrees(-75.10, 39.57, 300000.0);
l.position = Cesium.Cartesian3.fromDegrees(-75.1641667, 39.9522222, 300000.0);
l.scale = 2.0;
}

Expand Down Expand Up @@ -100,14 +100,14 @@
image.onload = function() {
var billboards = scene.primitives.add(new Cesium.BillboardCollection());
billboards.add({
position : Cesium.Cartesian3.fromDegrees(-75.10, 39.57),
position : Cesium.Cartesian3.fromDegrees(-75.1641667, 39.9522222),
scaleByDistance : new Cesium.NearFarScalar(1.5e2, 5.0, 1.5e7, 0.5),
image : image
});

var labels = scene.primitives.add(new Cesium.LabelCollection());
labels.add({
position : Cesium.Cartesian3.fromDegrees(-75.10, 39.57),
position : Cesium.Cartesian3.fromDegrees(-75.1641667, 39.9522222),
text : 'Label on top of scaling billboard',
font : '20px sans-serif',
horizontalOrigin : Cesium.HorizontalOrigin.CENTER,
Expand Down

0 comments on commit e53a722

Please sign in to comment.