Coder Social home page Coder Social logo

jerckyly / new-cesiumgraph Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhangti0708/new-cesiumgraph

0.0 0.0 0.0 12.15 MB

Home Page: http://zhangticcc.gitee.io/webgis/#/gis/examples?exampleURL=radar01&tempUrl=%2Fwebgis%2Fd3kit%2Ftemp.html&type=d3old

JavaScript 98.05% HTML 1.75% CSS 0.20%

new-cesiumgraph's Introduction

new-CesiumGraph


cesium-graph 插件改造,支持当前最新版Cesium

 

使用

在Cesium下面引入 CesiumGeometry.js
示例
    let r = new Cesium.HeadingPitchRoll(Cesium.Math.toRadians(90),
                Cesium.Math.toRadians(0),
                Cesium.Math.toRadians(0));
    let l = Cesium.Cartesian3.fromDegrees(117.224, 31.819, 128);
    let sensorEntity = viewer.entities.add({
        position: l,
        orientation: Cesium.Transforms.headingPitchRollQuaternion(l, r),
        rectangularSensor: new Cesium.RectangularSensorGraphics({
            radius: 100000,
            xHalfAngle: Cesium.Math.toRadians(45),
            yHalfAngle: Cesium.Math.toRadians(45),
            material: new Cesium.Color(1.0, 0.0, 1.0, 0.4),
            lineColor: new Cesium.Color(1.0, 0.0, 1.0, 1.0),
            showScanPlane: true,
            scanPlaneColor: new Cesium.Color(1.0, 0.0, 1.0, 1.0),
            scanPlaneMode: "vertical",
            scanPlaneRate: 3,
            showThroughEllipsoid: !1
        })
    })

new-cesiumgraph's People

Contributors

zhangti0708 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.