Javascript Cesiumjson-description图像从信息框中删除属性
我有一个JSON文件,其中包含我需要的所有数据。我希望在此之后能够从数据库中提取数据。在放置实体(图像)的描述后,它将删除属性。其他没有描述的实体正在按它们应该的方式显示它们。我错过了什么 JSON 我希望有名字,年龄和类型的图像在信息框Javascript Cesiumjson-description图像从信息框中删除属性,javascript,json,cesium,Javascript,Json,Cesium,我有一个JSON文件,其中包含我需要的所有数据。我希望在此之后能够从数据库中提取数据。在放置实体(图像)的描述后,它将删除属性。其他没有描述的实体正在按它们应该的方式显示它们。我错过了什么 JSON 我希望有名字,年龄和类型的图像在信息框 "type": "FeatureCollection", "features": [ { "type": "Feature", "geometry": {"type": "Point","coordinates": [80.2066
"type": "FeatureCollection",
"features": [
{ "type": "Feature",
"geometry": {"type": "Point","coordinates": [80.2066734649931, 13.0187039189613]}, "color":{
"rgba":[0,0,255,95]},
"properties": {
"Name": "Mika",
"Age": 17,
"Type": "Policeman",
"description":"PICTURE:<div><img src='https://image.shutterstock.com/z/stock-photo-british-police-officer-140116003.jpg' height='300' width='300'></img><p></p>"
}
},
{ "type": "Feature",
"geometry": {"type": "Point","coordinates": [ 120.2072495864164, 34.0191043036246]},
"properties": {
"Name": "Zika",
"Age": "Worker"
}
},
{ "type": "Feature",
"geometry": { "type": "Point","coordinates": [ 140.2067574402883, 84.0191983952581]},
"properties": {
"Name": "Pera",
"Age": 23,
"Type": "Student"
}
}
]
}
let data = require('../data.json')
let dataSource = Cesium.GeoJsonDataSource.load(data);
viewer.dataSources.add(dataSource);