var TROPIC_OF_CANCER_LAT = 23.43717;
// Create a single line around the equator and show it. var polyline = myCesiumViewer.entities.add({ name : 'Tropic Of Cancer', show: true, polyline: { loop: true, positions : Cesium.Cartesian3.fromDegreesArray([-180, TROPIC_OF_CANCER_LAT, -90, TROPIC_OF_CANCER_LAT, 0, TROPIC_OF_CANCER_LAT, 90, TROPIC_OF_CANCER_LAT, 180, TROPIC_OF_CANCER_LAT]), width : 3, material : Cesium.Color.GREEN } });var viewer = new Cesium.Viewer('cesiumContainer');
var lon = -180;
var lat = 23.43717;
var pos = [];
for (var i = 0; i < 360; i++) {
pos.push(Cesium.Cartesian3.fromDegrees(lon, lat));
lon++;
}
viewer.entities.add({
polyline: {
followSurface: false,
width: 3,
material: Cesium.Color.GREEN,
positions: pos
}
});--
You received this message because you are subscribed to a topic in the Google Groups "cesium-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cesium-dev/Abryjt_-czw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.