|
@@ -59,6 +59,23 @@ export function loadGeoJSON(geom, yanse, adata, fun) {
|
|
|
offset: new Cesium.HeadingPitchRange(0, -45),
|
|
|
});
|
|
|
fun(data)
|
|
|
+ if (!geojson.type.includes("Polygon")) {
|
|
|
+ data.entities.values.forEach((entity, ei) => {
|
|
|
+ if (entity.billboard) {
|
|
|
+ entity.billboard = new Cesium.BillboardGraphics({
|
|
|
+ image: "@/.././static/images/flypng/hos_point.png",
|
|
|
+ height: 40,
|
|
|
+ width: 40,
|
|
|
+ scale: 1.0,
|
|
|
+ pixelOffset: new Cesium.Cartesian2(0, -16),
|
|
|
+ });
|
|
|
+ // entity.point = {
|
|
|
+ // pixelsize: 20,
|
|
|
+ // color: Cesium.Color.fromCssColorString(colors),
|
|
|
+ // };
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
|
|
|
});
|
|
|
// let polygon = Cesium.GeoJsonDataSource.load(geojson, {
|