This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var viewer = new Cesium.Viewer('cesiumContainer'); | |
var screenSpaceEventHandler = new Cesium.ScreenSpaceEventHandler(viewer.scene.canvas); | |
var startPoint = new Cesium.Cartographic(); | |
var endPoint = new Cesium.Cartographic(); | |
// Event handler for left click | |
screenSpaceEventHandler.setInputAction(function(click) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var viewer = new Cesium.Viewer('cesiumContainer'); | |
var screenSpaceEventHandler = new Cesium.ScreenSpaceEventHandler(viewer.scene.canvas); | |
//Function to add a point | |
function addPoint(x,y) { | |
var point = viewer.entities.add({ | |
position : Cesium.Cartesian3.fromDegrees(x, y), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var viewer = new Cesium.Viewer('cesiumContainer'); | |
var screenSpaceEventHandler = new Cesium.ScreenSpaceEventHandler(viewer.scene.canvas); | |
var startPoint = new Cesium.Cartographic(); | |
var endPoint = new Cesium.Cartographic(); | |
// Event handler for left click | |
screenSpaceEventHandler.setInputAction(function(click) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var viewer = new Cesium.Viewer('cesiumContainer'); | |
var scene = viewer.scene; | |
var camera = viewer.camera; | |
var destination = new Cesium.Cartesian3(); | |
function flyToLocation() { | |
// Create callback for browser's geolocation |