zoukankan      html  css  js  c++  java
  • 在超图添加其他图层

    1.在超图页面添加三维倾斜:

    this.viewer.scene.addS3MTilesLayerByScp("三维倾斜服务的路径",{name:"自己起的倾斜名字"});

    销毁三维倾斜:

    this.viewer.scene.layers.remove("自己起的倾斜的名字")

    2.在超图页面添加二维图层;

    this.viewer.imageryLayers.addImageryProvider("图层路径");

    销毁图层服务

    this.viewer.imageryLayers.remove(图层索引)

    3.在超图页面画多边形:

    this.viewer.entities.add({

    name:"自己起的名",

    id:"随便起"

    polyline:{

    positions: Cesium.Cartesian3.fromDegreesArrayHeights([

    longitude,

    latitude,

    height

    ]),

    宽度,

    material: new Cesium.PolylineOutlineOutlineMaterialProperty({

    color:Cesium.Color.RED as any

    })

    }

    })

    清除多边形:

    this.viewer.entities.removeById("多边形的id")

  • 相关阅读:
    CentOS7 安装 mysql
    redis简介以及redis集群配置
    分布式布局简述
    字符串
    接口
    接口回调
    java关键字之static
    java关键字之final
    java关键字之abstract
    memcache的配置
  • 原文地址:https://www.cnblogs.com/robotsu/p/13047946.html
Copyright © 2011-2022 走看看