Skip to content

Commit

Permalink
removing the time-dynamic styling for now
Browse files Browse the repository at this point in the history
  • Loading branch information
rahwang authored and lilleyse committed Jul 2, 2017
1 parent e960cfc commit f0d0b3b
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions Apps/Sandcastle/gallery/3D Tiles Feature Styling.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
]
},
meta: {
description: "'Building id ${id} has height ${Height}.'"
description: "'Building id ${id} is positioned at latitude: ${latitude} and longitude: ${longitude}.'"
}
});
}
Expand Down Expand Up @@ -134,16 +134,6 @@
});
}

// Change building color over time.
function animateColor() {
city.style = new Cesium.Cesium3DTileStyle({
defines : {
mixValue : "(cos(${height} + ${tiles3d_tileset_time}) + 1) / 2",
},
color : "mix(color('purple'), color('cyan'), ${mixValue})"
});
}

Sandcastle.addToolbarMenu([{
text : 'Color By Height',
onselect : function() {
Expand Down Expand Up @@ -174,12 +164,6 @@
colorByNameRegex();
Sandcastle.highlight(colorByNameRegex);
}
},{
text : 'Animate Color',
onselect : function() {
animateColor();
Sandcastle.highlight(animateColor);
}
}]);
//Sandcastle_End
Sandcastle.finishedLoading();
Expand Down

0 comments on commit f0d0b3b

Please sign in to comment.