Skip to content

Instantly share code, notes, and snippets.

@theOgrable
theOgrable / hotspotProblem
Created April 7, 2016 01:04
Showing issue with hotspot and Cesium
var viewer = new Cesium.Viewer('cesiumContainer');
var options = {
camera : viewer.scene.camera,
canvas : viewer.scene.canvas
};
Sandcastle.addToolbarMenu([{
text : 'KML - hotspot',
onselect : function() {
viewer.dataSources.add(Cesium.KmlDataSource.load('http://theograble.github.io/hotspot.kml', options));
@theOgrable
theOgrable / gist:0ab4af80958952cdd4ca
Last active November 13, 2015 08:46
Simple Cesium Sandcastle Example for KMZ bulk load
var viewer = new Cesium.Viewer('cesiumContainer');
function pushAIS (ds) {
ais.push(ds);
}
var ais = [];
function fetchKmzAIS(url) {
var index = 0;
var fileMax = 50;
@theOgrable
theOgrable / MaskedImageryProvider
Last active August 29, 2015 14:23
MaskedImageryProvider
/*global define*/
define([
'../Core/Credit',
'../Core/defaultValue',
'../Core/defined',
'../Core/defineProperties',
'../Core/DeveloperError',
'../Core/Event',
'../Core/GeographicTilingScheme',