Cesium GeoJSON update
HTML
<script src="https://cesiumjs.org/Cesium/Build/Cesium/Cesium.js"></script>
<link rel="stylesheet" href="https://cesiumjs.org/Cesium/Build/Cesium/Widgets/widgets.css">
<div id="cesiumContainer"></div>
CSS
html {
height: 100%;
}
body {
padding: 0;
margin: 0;
overflow: hidden;
height: 100%;
}
JavaScript
var data = [
{
"id": "document",
"name": "simple",
"version": "1.0"
},
{
"id": "64841",
"name": "P1",
"position": [
{
"cartographicDegrees": [
-2.13125,
49.214439,
0.0
]
}
],
"box": {
"dimensions": [
{
"cartesian": [
25000,
25000,
314000.0
]
}
],
"material": {
"solidColor": {
"color": {
"rgba": [
255,
0,
0,
255
]
}
}
},
"outline": true,
"outlineColor": {
"rgba": [
255,
0,
0,
255
]
}
}
},
{
"id": "867073",
"name": "P3",
"position": [
{
"cartographicDegrees": [
-2.13125,
49.214439,
314000.0
]
}
],
"box": {
"dimensions": [
{
"cartesian": [
25000,
25000,
431000.0
]
}
],
"material": {
"solidColor": {
"color": {
"rgba": [
255,
255,
0,
255
]
}
}
...