Cesium使用Polyline、Primitive画线条

 

 DrawPolylinePrimitiveFun() {
      import("./data/PolylinePrimitiveData.json").then((res) => {
        let primitiveCollection = new Cesium.PrimitiveCollection();
        let PolylineGeometryInstances = new Cesium.GeometryInstance({
          geometry: new Cesium.PolylineGeometry({
            positions: Cesium.Cartesian3.fromDegreesArray(res.Data),
            width: 5.0,
            vertexFormat: Cesium.PolylineMaterialAppearance.VERTEX_FORMAT,
          }),
        });
        let PolylineGeometryAppearance = new Cesium.PolylineMaterialAppearance({
          material: new Cesium.Material({
            fabric: {
              type: "Color",
              uniforms: {
                color: new Cesium.Color.fromCssColorString("#00ff00"),
              },
            },
         

你可能感兴趣的:(Cesium,java,前端,服务器)