How to use the cesium.Cartesian3.fromDegrees function in cesium

To help you get started, we’ve selected a few cesium examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github darwin-education / resium / src / Entity / story.tsx View on Github external
description="RectangleGraphics!!"
        position={Cartesian3.fromDegrees(-74.0707383, 40.7117244, 100)}>
github darwin-education / resium / src / Viewer / story.tsx View on Github external
onMiddleDown={action("onMiddleDown")}
      onMiddleUp={action("onMiddleUp")}
      // onMouseMove={action("onMouseMove")}
      onPinchEnd={action("onPinchEnd")}
      onPinchMove={action("onPinchMove")}
      onPinchStart={action("onPinchStart")}
      onRightClick={action("onRightClick")}
      onRightDown={action("onRightDown")}
      onRightUp={action("onRightUp")}
      onWheel={action("onWheel")}
      onMouseEnter={action("onMouseEnter")}
      onMouseLeave={action("onMouseLeave")}>
      
    
  ));
github darwin-education / resium / src / Billboard / story.tsx View on Github external
import React from "react";
import { Cartesian3, Color, Transforms } from "cesium";
import { storiesOf } from "@storybook/react";
import { action } from "@storybook/addon-actions";

import Viewer from "../Viewer";
import Billboard from "./Billboard";
import BillboardCollection from "../BillboardCollection";

const center = Cartesian3.fromDegrees(-75.59777, 40.03883);
import exampleImg from "assets/example.png";

storiesOf("Billboard", module)
  .add("Basic", () => (
github richard1015 / cesium-vue-example / src / components / CesiumViewer.vue View on Github external
getChinaPostion() {
      return Cartesian3.fromDegrees(116.435314, 40.960521, 10000000.0);
    },
    /**
github darwin-education / resium / src / Entity / story.tsx View on Github external
.add("Description", () => {
    const [count, setCount] = useState(0);
    return (
      
        
        
          
            <h1>Hello!</h1>
            <p>This is description. It can be described with static JSX!</p>
          
        
        
          
            <h1>Hello!</h1>
            <p>This is description. It can be described with React!</p>
            <button> setCount(i =&gt; i + 1)}&gt;counter: {count}</button>
github darwin-education / resium / src / Polyline / story.tsx View on Github external
.add("Basic", () =&gt; (
    
      
        
      
    
  ))
  .add("Events", () =&gt; (
github darwin-education / resium / examples / src / pages / simple-entity.js View on Github external
import React from "react";

import { Cartesian3 } from "cesium";

import { Viewer, Entity } from "cesium-react";

const positions = [
  Cartesian3.fromDegrees(-74.0707383, 40.7117244, 100),
  Cartesian3.fromDegrees(139.767052, 35.681167, 100),
];

export default class SimpleEntity extends React.PureComponent {
  state = {
    pos: 0,
  };

  changePosition(pos) {
    this.setState({ pos });
  }

  render() {
    const { pos } = this.state;
    return (
github darwin-education / resium / src / Camera / story.tsx View on Github external
.add("Basic", () =&gt; (
    
      
      
    
  ))
  .add("Once", () =&gt; {