You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cesium.Camera.DEFAULT_VIEW_RECTANGLE=newCesium.Rectangle(Math.PI-0.01,Cesium.Math.PI_OVER_SIX-0.01,0.01-Math.PI,Cesium.Math.PI_OVER_SIX+0.01);Cesium.Camera.DEFAULT_VIEW_FACTOR=0.25;varviewer=newCesium.Viewer('cesiumContainer',{infoBox : false});// Show datelineviewer.entities.add({polyline : {positions: Cesium.Cartesian3.fromDegreesArray([180,80,180,-80]),width: 1,material: Cesium.Color.RED}});functioncreateEasternRectangle(rotation){// Rectangle with center on Eastern HemispherevareasternRectangle=newCesium.Rectangle(Math.PI-0.01,Cesium.Math.PI_OVER_SIX-0.01,0.005-Math.PI,Cesium.Math.PI_OVER_SIX+0.01);returnnewCesium.GeometryInstance({geometry: newCesium.RectangleGeometry({rectangle: easternRectangle,rotation: rotation}),attributes: {// yellowcolor: newCesium.ColorGeometryInstanceAttribute(1.0,1.0,0.0,0.5)}});}functioncreateWesternRectangle(rotation){// Rectangle with center on Western HemispherevarwesternRectangle=newCesium.Rectangle(Math.PI-0.005,Cesium.Math.PI_OVER_SIX+0.02,0.01-Math.PI,Cesium.Math.PI_OVER_SIX+0.04);returnnewCesium.GeometryInstance({geometry: newCesium.RectangleGeometry({rectangle: westernRectangle,rotation: rotation}),attributes: {// bluecolor: newCesium.ColorGeometryInstanceAttribute(0.0,1.0,1.0,0.5)}});}vareastern1=createEasternRectangle(0);vareastern2=createEasternRectangle(0.5);varwestern1=createWesternRectangle(0);varwestern2=createWesternRectangle(0.005);viewer.scene.primitives.add(newCesium.Primitive({geometryInstances: [eastern1,eastern2,western1,western2],appearance: newCesium.PerInstanceColorAppearance()}));
The text was updated successfully, but these errors were encountered:
Reported on the forum: https://groups.google.com/forum/?hl=en#!topic/cesium-dev/fXy4QD27KCQ
The text was updated successfully, but these errors were encountered: