diff --git a/.eslintignore b/.eslintignore index b678e5696558..0521a58a04bc 100644 --- a/.eslintignore +++ b/.eslintignore @@ -8,3 +8,5 @@ Source/ThirdParty/** Source/Workers/cesiumWorkerBootstrapper.js ThirdParty/** Tools/** +Apps/Sandcastle/jsHintOptions.js +Apps/Sandcastle/gallery/gallery-index.js diff --git a/.travis.yml b/.travis.yml index 77bf18d47eff..8adb1b96de6f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,8 @@ language: node_js node_js: - "8" sudo: false +addons: + chrome: stable before_script: - export DISPLAY=:99.0 - sh -e /etc/init.d/xvfb start @@ -17,7 +19,7 @@ script: - echo 'test webgl-stub' && echo -en 'travis_fold:start:script.test\\r' - npm run build - - npm run test -- --browsers Electron --webgl-stub --failTaskOnError --suppressPassed + - npm run test -- --browsers ChromeCI --webgl-stub --failTaskOnError --suppressPassed - echo -en 'travis_fold:end:script.test\\r' - echo 'makeZipFile' && echo -en 'travis_fold:start:script.makeZipFile\\r' @@ -36,7 +38,7 @@ script: - echo -en 'travis_fold:end:script.deploy\\r' - echo 'test webgl-stub release' && echo -en 'travis_fold:start:script test.release\\r' - - npm run test -- --browsers Electron --failTaskOnError --webgl-stub --release --suppressPassed + - npm run test -- --browsers ChromeCI --failTaskOnError --webgl-stub --release --suppressPassed - echo -en 'travis_fold:end:script test.release\\r' - echo 'test node' && echo -en 'travis_fold:start:script test.node\\r' diff --git a/Apps/SampleData/Cesium3DTiles/PointCloud/PointCloudTimeDynamic/0.pnts b/Apps/SampleData/Cesium3DTiles/PointCloud/PointCloudTimeDynamic/0.pnts new file mode 100644 index 000000000000..46dc632a2e16 Binary files /dev/null and b/Apps/SampleData/Cesium3DTiles/PointCloud/PointCloudTimeDynamic/0.pnts differ diff --git a/Apps/SampleData/Cesium3DTiles/PointCloud/PointCloudTimeDynamic/1.pnts b/Apps/SampleData/Cesium3DTiles/PointCloud/PointCloudTimeDynamic/1.pnts new file mode 100644 index 000000000000..5a1c21cbbe58 Binary files /dev/null and b/Apps/SampleData/Cesium3DTiles/PointCloud/PointCloudTimeDynamic/1.pnts differ diff --git a/Apps/SampleData/Cesium3DTiles/PointCloud/PointCloudTimeDynamic/2.pnts b/Apps/SampleData/Cesium3DTiles/PointCloud/PointCloudTimeDynamic/2.pnts new file mode 100644 index 000000000000..6bef4d11e0de Binary files /dev/null and b/Apps/SampleData/Cesium3DTiles/PointCloud/PointCloudTimeDynamic/2.pnts differ diff --git a/Apps/SampleData/Cesium3DTiles/PointCloud/PointCloudTimeDynamic/3.pnts b/Apps/SampleData/Cesium3DTiles/PointCloud/PointCloudTimeDynamic/3.pnts new file mode 100644 index 000000000000..16a2bbdc5376 Binary files /dev/null and b/Apps/SampleData/Cesium3DTiles/PointCloud/PointCloudTimeDynamic/3.pnts differ diff --git a/Apps/SampleData/Cesium3DTiles/PointCloud/PointCloudTimeDynamic/4.pnts b/Apps/SampleData/Cesium3DTiles/PointCloud/PointCloudTimeDynamic/4.pnts new file mode 100644 index 000000000000..f8589fa7b6e7 Binary files /dev/null and b/Apps/SampleData/Cesium3DTiles/PointCloud/PointCloudTimeDynamic/4.pnts differ diff --git a/Apps/Sandcastle/CesiumSandcastle.js b/Apps/Sandcastle/CesiumSandcastle.js index fb64fbd22f61..5b496f4e87d6 100644 --- a/Apps/Sandcastle/CesiumSandcastle.js +++ b/Apps/Sandcastle/CesiumSandcastle.js @@ -27,10 +27,10 @@ require({ location: '../Apps/Sandcastle/ThirdParty' }] }, [ - "dijit/Dialog", - "dijit/form/Button", - "dijit/form/Form", - "dijit/form/Textarea", + 'dijit/Dialog', + 'dijit/form/Button', + 'dijit/form/Form', + 'dijit/form/Textarea', 'CodeMirror/lib/codemirror', 'dijit/layout/ContentPane', 'dijit/popup', @@ -549,10 +549,10 @@ require({ '//Sandcastle_End\n' + ' Sandcastle.finishedLoading();\n' + '}\n' + - 'if (typeof Cesium !== "undefined") {\n' + + 'if (typeof Cesium !== \'undefined\') {\n' + ' startup(Cesium);\n' + - '} else if (typeof require === "function") {\n' + - ' require(["Cesium"], startup);\n' + + '} else if (typeof require === \'function\') {\n' + + ' require([\'Cesium\'], startup);\n' + '}\n'; } @@ -949,7 +949,7 @@ require({ }); registry.byId('buttonImport').on('click', function() { - var gistId = document.getElementById("gistId").value; + var gistId = document.getElementById('gistId').value; var gistParameter = '&gist='; var gistIndex = gistId.indexOf(gistParameter); if (gistIndex !== -1) { @@ -1196,7 +1196,7 @@ require({ demoLink.className = 'linkButton'; demoLink.href = 'gallery/' + encodeURIComponent(demo.name) + '.html'; - if (demo.name === "Hello World") { + if (demo.name === 'Hello World') { newDemo = demo; } demoLink.onclick = function(e) { diff --git a/Apps/Sandcastle/LinkButton.js b/Apps/Sandcastle/LinkButton.js index 260b554b5af7..53d9d8a4591e 100644 --- a/Apps/Sandcastle/LinkButton.js +++ b/Apps/Sandcastle/LinkButton.js @@ -15,19 +15,19 @@ define([ 'use strict'; return declare('Sandcastle.LinkButton', [_WidgetBase, _TemplatedMixin, _CssStateMixin], { - baseClass : "dijitButton", + baseClass : 'dijitButton', templateString : template, showLabel : true, _setShowLabelAttr : function(val) { if (this.containerNode) { - domClass.toggle(this.containerNode, "dijitDisplayNone", !val); + domClass.toggle(this.containerNode, 'dijitDisplayNone', !val); } - this._set("showLabel", val); + this._set('showLabel', val); }, _setLabelAttr : function(/*String*/content) { - this._set("label", content); + this._set('label', content); (this.containerNode || this.focusNode).innerHTML = content; } }); diff --git a/Apps/Sandcastle/gallery/3D Models Coloring.html b/Apps/Sandcastle/gallery/3D Models Coloring.html index 44bb38c4f841..6178ade896c9 100644 --- a/Apps/Sandcastle/gallery/3D Models Coloring.html +++ b/Apps/Sandcastle/gallery/3D Models Coloring.html @@ -233,10 +233,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/3D Models.html b/Apps/Sandcastle/gallery/3D Models.html index 929edaf59f53..1f753f589e41 100644 --- a/Apps/Sandcastle/gallery/3D Models.html +++ b/Apps/Sandcastle/gallery/3D Models.html @@ -10,7 +10,7 @@ diff --git a/Apps/Sandcastle/gallery/3D Tiles Adjust Height.html b/Apps/Sandcastle/gallery/3D Tiles Adjust Height.html index 690c686479ef..ae52fbe99fb3 100644 --- a/Apps/Sandcastle/gallery/3D Tiles Adjust Height.html +++ b/Apps/Sandcastle/gallery/3D Tiles Adjust Height.html @@ -80,10 +80,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/3D Tiles BIM.html b/Apps/Sandcastle/gallery/3D Tiles BIM.html index 0d1e7bafc373..0d1a775a9349 100644 --- a/Apps/Sandcastle/gallery/3D Tiles BIM.html +++ b/Apps/Sandcastle/gallery/3D Tiles BIM.html @@ -2,7 +2,7 @@ - + @@ -10,10 +10,12 @@ @@ -38,12 +40,12 @@ console.log(error); }); //Sandcastle_End -Sandcastle.finishedLoading(); + Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/3D Tiles Batch Table Hierarchy.html b/Apps/Sandcastle/gallery/3D Tiles Batch Table Hierarchy.html index 310e82bf5225..5583d1c8c76c 100644 --- a/Apps/Sandcastle/gallery/3D Tiles Batch Table Hierarchy.html +++ b/Apps/Sandcastle/gallery/3D Tiles Batch Table Hierarchy.html @@ -100,55 +100,55 @@ addStyle('No style', {}); addStyle('Color by building', { - "color" : { - "conditions" : [ + 'color' : { + 'conditions' : [ ["${building_name} === 'building0'", "color('purple')"], ["${building_name} === 'building1'", "color('red')"], ["${building_name} === 'building2'", "color('orange')"], - ["true", "color('blue')"] + ['true', "color('blue')"] ] } }); addStyle('Color all doors', { - "color" : { - "conditions" : [ + 'color' : { + 'conditions' : [ ["isExactClass('door')", "color('orange')"], - ["true", "color('white')"] + ['true', "color('white')"] ] } }); addStyle('Color all features derived from door', { - "color" : { - "conditions" : [ + 'color' : { + 'conditions' : [ ["isClass('door')", "color('orange')"], - ["true", "color('white')"] + ['true', "color('white')"] ] } }); addStyle('Color features by class name', { - "defines" : { - "suffix" : "regExp('door(.*)').exec(getExactClassName())" + 'defines' : { + 'suffix' : "regExp('door(.*)').exec(getExactClassName())" }, - "color" : { - "conditions" : [ + 'color' : { + 'conditions' : [ ["${suffix} === 'knob'", "color('yellow')"], ["${suffix} === ''", "color('lime')"], - ["${suffix} === null", "color('gray')"], - ["true", "color('blue')"] + ['${suffix} === null', "color('gray')"], + ['true', "color('blue')"] ] } }); addStyle('Style by height', { - "color" : { - "conditions" : [ - ["${height} >= 10", "color('purple')"], - ["${height} >= 6", "color('red')"], - ["${height} >= 5", "color('orange')"], - ["true", "color('blue')"] + 'color' : { + 'conditions' : [ + ['${height} >= 10', "color('purple')"], + ['${height} >= 6', "color('red')"], + ['${height} >= 5', "color('orange')"], + ['true', "color('blue')"] ] } }); @@ -200,10 +200,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/3D Tiles Clipping Planes.html b/Apps/Sandcastle/gallery/3D Tiles Clipping Planes.html index 6f4ad71c76cc..fde98cb3c120 100644 --- a/Apps/Sandcastle/gallery/3D Tiles Clipping Planes.html +++ b/Apps/Sandcastle/gallery/3D Tiles Clipping Planes.html @@ -264,10 +264,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/3D Tiles Feature Picking.html b/Apps/Sandcastle/gallery/3D Tiles Feature Picking.html index bf941083af49..44abc7f58946 100644 --- a/Apps/Sandcastle/gallery/3D Tiles Feature Picking.html +++ b/Apps/Sandcastle/gallery/3D Tiles Feature Picking.html @@ -238,10 +238,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/3D Tiles Feature Styling.html b/Apps/Sandcastle/gallery/3D Tiles Feature Styling.html index 1cb8824e1c2e..4f41639f3389 100644 --- a/Apps/Sandcastle/gallery/3D Tiles Feature Styling.html +++ b/Apps/Sandcastle/gallery/3D Tiles Feature Styling.html @@ -54,14 +54,14 @@ tileset.style = new Cesium.Cesium3DTileStyle({ color: { conditions: [ - ["${height} >= 300", "rgba(45, 0, 75, 0.5)"], - ["${height} >= 200", "rgb(102, 71, 151)"], - ["${height} >= 100", "rgb(170, 162, 204)"], - ["${height} >= 50", "rgb(224, 226, 238)"], - ["${height} >= 25", "rgb(252, 230, 200)"], - ["${height} >= 10", "rgb(248, 176, 87)"], - ["${height} >= 5", "rgb(198, 106, 11)"], - ["true", "rgb(127, 59, 8)"] + ['${height} >= 300', 'rgba(45, 0, 75, 0.5)'], + ['${height} >= 200', 'rgb(102, 71, 151)'], + ['${height} >= 100', 'rgb(170, 162, 204)'], + ['${height} >= 50', 'rgb(224, 226, 238)'], + ['${height} >= 25', 'rgb(252, 230, 200)'], + ['${height} >= 10', 'rgb(248, 176, 87)'], + ['${height} >= 5', 'rgb(198, 106, 11)'], + ['true', 'rgb(127, 59, 8)'] ] } }); @@ -71,17 +71,17 @@ function colorByLatitude() { tileset.style = new Cesium.Cesium3DTileStyle({ defines: { - latitudeRadians: "radians(${latitude})" + latitudeRadians: 'radians(${latitude})' }, color: { conditions: [ - ["${latitudeRadians} >= 0.7125", "color('purple')"], - ["${latitudeRadians} >= 0.712", "color('red')"], - ["${latitudeRadians} >= 0.7115", "color('orange')"], - ["${latitudeRadians} >= 0.711", "color('yellow')"], - ["${latitudeRadians} >= 0.7105", "color('lime')"], - ["${latitudeRadians} >= 0.710", "color('cyan')"], - ["true", "color('blue')"] + ['${latitudeRadians} >= 0.7125', "color('purple')"], + ['${latitudeRadians} >= 0.712', "color('red')"], + ['${latitudeRadians} >= 0.7115', "color('orange')"], + ['${latitudeRadians} >= 0.711', "color('yellow')"], + ['${latitudeRadians} >= 0.7105', "color('lime')"], + ['${latitudeRadians} >= 0.710', "color('cyan')"], + ['true', "color('blue')"] ] } }); @@ -91,15 +91,15 @@ function colorByDistance() { tileset.style = new Cesium.Cesium3DTileStyle({ defines : { - distance : "distance(vec2(radians(${longitude}), radians(${latitude})), vec2(-1.291777521, 0.7105706624))" + distance : 'distance(vec2(radians(${longitude}), radians(${latitude})), vec2(-1.291777521, 0.7105706624))' }, color : { conditions : [ - ["${distance} > 0.0012","color('gray')"], - ["${distance} > 0.0008", "mix(color('yellow'), color('red'), (${distance} - 0.008) / 0.0004)"], - ["${distance} > 0.0004", "mix(color('green'), color('yellow'), (${distance} - 0.0004) / 0.0004)"], - ["${distance} < 0.00001", "color('white')"], - ["true", "mix(color('blue'), color('green'), ${distance} / 0.0004)"] + ['${distance} > 0.0012',"color('gray')"], + ['${distance} > 0.0008', "mix(color('yellow'), color('red'), (${distance} - 0.008) / 0.0004)"], + ['${distance} > 0.0004', "mix(color('green'), color('yellow'), (${distance} - 0.0004) / 0.0004)"], + ['${distance} < 0.00001', "color('white')"], + ['true', "mix(color('blue'), color('green'), ${distance} / 0.0004)"] ] } }); @@ -115,7 +115,7 @@ // Show only buildings greater than 200 meters in height. function hideByHeight() { tileset.style = new Cesium.Cesium3DTileStyle({ - show : "${height} > 200" + show : '${height} > 200' }); } @@ -151,10 +151,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/3D Tiles Formats.html b/Apps/Sandcastle/gallery/3D Tiles Formats.html index 9cca466f141f..7a1afdba6146 100644 --- a/Apps/Sandcastle/gallery/3D Tiles Formats.html +++ b/Apps/Sandcastle/gallery/3D Tiles Formats.html @@ -82,6 +82,9 @@ }, { name: 'PointCloudBatched', resource: Cesium.IonResource.fromAssetId(3878) + }, { + name: 'PointCloudDraco', + resource: Cesium.IonResource.fromAssetId(4702) } ], selectedTileset: undefined, @@ -119,13 +122,13 @@ tileset.style = new Cesium.Cesium3DTileStyle({ color: { conditions: [ - ["${Height} >= 83", "color('purple', 0.5)"], - ["${Height} >= 80", "color('red')"], - ["${Height} >= 70", "color('orange')"], - ["${Height} >= 12", "color('yellow')"], - ["${Height} >= 7", "color('lime')"], - ["${Height} >= 1", "color('cyan')"], - ["true", "color('blue')"] + ['${Height} >= 83', "color('purple', 0.5)"], + ['${Height} >= 80', "color('red')"], + ['${Height} >= 70', "color('orange')"], + ['${Height} >= 12', "color('yellow')"], + ['${Height} >= 7', "color('lime')"], + ['${Height} >= 1', "color('cyan')"], + ['true', "color('blue')"] ] } }); @@ -160,10 +163,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/3D Tiles Inspector.html b/Apps/Sandcastle/gallery/3D Tiles Inspector.html index d447927ef377..5e5cf24e4865 100644 --- a/Apps/Sandcastle/gallery/3D Tiles Inspector.html +++ b/Apps/Sandcastle/gallery/3D Tiles Inspector.html @@ -45,10 +45,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/3D Tiles Interactivity.html b/Apps/Sandcastle/gallery/3D Tiles Interactivity.html index 573838a2849a..91bf12b00de8 100644 --- a/Apps/Sandcastle/gallery/3D Tiles Interactivity.html +++ b/Apps/Sandcastle/gallery/3D Tiles Interactivity.html @@ -194,10 +194,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/3D Tiles Interior.html b/Apps/Sandcastle/gallery/3D Tiles Interior.html index a379ff88c0bb..5ce12aa89265 100644 --- a/Apps/Sandcastle/gallery/3D Tiles Interior.html +++ b/Apps/Sandcastle/gallery/3D Tiles Interior.html @@ -45,10 +45,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/3D Tiles Photogrammetry Classification.html b/Apps/Sandcastle/gallery/3D Tiles Photogrammetry Classification.html index 6877d474affd..6886394e42d6 100644 --- a/Apps/Sandcastle/gallery/3D Tiles Photogrammetry Classification.html +++ b/Apps/Sandcastle/gallery/3D Tiles Photogrammetry Classification.html @@ -64,10 +64,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/3D Tiles Photogrammetry.html b/Apps/Sandcastle/gallery/3D Tiles Photogrammetry.html index a1555967b879..7d5e47553f71 100644 --- a/Apps/Sandcastle/gallery/3D Tiles Photogrammetry.html +++ b/Apps/Sandcastle/gallery/3D Tiles Photogrammetry.html @@ -38,10 +38,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/3D Tiles Point Cloud Classification.html b/Apps/Sandcastle/gallery/3D Tiles Point Cloud Classification.html index 65985a0d08cb..14b36fd1bf9f 100644 --- a/Apps/Sandcastle/gallery/3D Tiles Point Cloud Classification.html +++ b/Apps/Sandcastle/gallery/3D Tiles Point Cloud Classification.html @@ -53,7 +53,7 @@ ["${id} === 'roof2'", "color('#004FFF', 0.5)"], ["${id} === 'tower3'", "color('#FF8833', 0.5)"], ["${id} === 'tower4'", "color('#FFAA22', 0.5)"], - ["true", "color('#FFFF00', 0.5)"] + ['true', "color('#FFFF00', 0.5)"] ] } }); @@ -94,10 +94,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/3D Tiles Point Cloud Shading.html b/Apps/Sandcastle/gallery/3D Tiles Point Cloud Shading.html index 6084aa2698ba..a91fc186722f 100644 --- a/Apps/Sandcastle/gallery/3D Tiles Point Cloud Shading.html +++ b/Apps/Sandcastle/gallery/3D Tiles Point Cloud Shading.html @@ -10,7 +10,7 @@ diff --git a/Apps/Sandcastle/gallery/3D Tiles Point Cloud Styling.html b/Apps/Sandcastle/gallery/3D Tiles Point Cloud Styling.html index f8045f32e619..fbeeef9b3266 100644 --- a/Apps/Sandcastle/gallery/3D Tiles Point Cloud Styling.html +++ b/Apps/Sandcastle/gallery/3D Tiles Point Cloud Styling.html @@ -52,7 +52,7 @@ }); addStyle('Color Gradient', { - color : "color() * ${temperature}" + color : 'color() * ${temperature}' }); addStyle('Step Red/Blue', { @@ -66,125 +66,125 @@ addStyle('Color Ramp', { color : { conditions : [ - ["${temperature} < 0.1", "color('#000099')"], - ["${temperature} < 0.2", "color('#00cc99', 1.0)"], - ["${temperature} < 0.3", "color('#66ff33', 0.5)"], - ["${temperature} < 0.4", "rgba(255, 255, 0, 0.1)"], - ["${temperature} < 0.5", "rgb(255, 128, 0)"], - ["${temperature} < 0.6", "color('red')"], - ["${temperature} < 0.7", "color('rgb(255, 102, 102)')"], - ["${temperature} < 0.8", "hsl(0.875, 1.0, 0.6)"], - ["${temperature} < 0.9", "hsla(0.83, 1.0, 0.5, 0.1)"], - ["true", "color('#FFFFFF', 1.0)"] + ['${temperature} < 0.1', "color('#000099')"], + ['${temperature} < 0.2', "color('#00cc99', 1.0)"], + ['${temperature} < 0.3', "color('#66ff33', 0.5)"], + ['${temperature} < 0.4', 'rgba(255, 255, 0, 0.1)'], + ['${temperature} < 0.5', 'rgb(255, 128, 0)'], + ['${temperature} < 0.6', "color('red')"], + ['${temperature} < 0.7', "color('rgb(255, 102, 102)')"], + ['${temperature} < 0.8', 'hsl(0.875, 1.0, 0.6)'], + ['${temperature} < 0.9', 'hsla(0.83, 1.0, 0.5, 0.1)'], + ['true', "color('#FFFFFF', 1.0)"] ] } }); addStyle('Transparency', { - color : "rgba(0, 255, 0, ${temperature})" + color : 'rgba(0, 255, 0, ${temperature})' }); addStyle('Hide Low Temperature', { - color : "rgb(${temperature}*255, 0, 0)", - show : "${temperature} > 0.3" + color : 'rgb(${temperature}*255, 0, 0)', + show : '${temperature} > 0.3' }); addStyle('Show Subsections', { - show : "${id} === 1 || ${id} > 250 && ${id} < 300" + show : '${id} === 1 || ${id} > 250 && ${id} < 300' }); addStyle('Mod', { - show : "${id} % 2 === 0" + show : '${id} % 2 === 0' }); addStyle('Abs', { - color : "color() * abs(${temperature} - 0.5)" + color : 'color() * abs(${temperature} - 0.5)' }); addStyle('Trigonometric Functions', { - color : "color() * radians(cos(${temperature})) + color() * sin(${temperature}) + color() * tan(${temperature})" + color : 'color() * radians(cos(${temperature})) + color() * sin(${temperature}) + color() * tan(${temperature})' }); addStyle('Arc Trigonometric Functions', { - color : "color() * acos(degrees(${temperature})) + color() * asin(${temperature}) + color() * atan(${temperature}) + color() * atan2(${POSITION}[0],${temperature})" + color : 'color() * acos(degrees(${temperature})) + color() * asin(${temperature}) + color() * atan(${temperature}) + color() * atan2(${POSITION}[0],${temperature})' }); addStyle('Sqrt', { - color : "color() * sqrt(${temperature})" + color : 'color() * sqrt(${temperature})' }); addStyle('Sign', { - color : "rgb(sign(${POSITION}[0]) * 255, sign(${POSITION}[1]) * 255, sign(${POSITION}[2]) * 255)" + color : 'rgb(sign(${POSITION}[0]) * 255, sign(${POSITION}[1]) * 255, sign(${POSITION}[2]) * 255)' }); addStyle('Rounding Functions', { - color : "rgb(floor(${POSITION}[0]) * 255, ceil(${POSITION}[1]) * 255, round(${POSITION}[2]) * 255)" + color : 'rgb(floor(${POSITION}[0]) * 255, ceil(${POSITION}[1]) * 255, round(${POSITION}[2]) * 255)' }); addStyle('Exp and Log Functions', { - color : "rgb(log(${POSITION}[0]) * 255, log2(${POSITION}[1]) * 255 + exp2(${POSITION}[1]) * 255, exp(${POSITION}[2]) * 255)" + color : 'rgb(log(${POSITION}[0]) * 255, log2(${POSITION}[1]) * 255 + exp2(${POSITION}[1]) * 255, exp(${POSITION}[2]) * 255)' }); addStyle('Fractional Part', { - color : "rgb(fract(${POSITION}[0]) * 255, fract(${POSITION}[1]) * 255, fract(${POSITION}[2]) * 255)" + color : 'rgb(fract(${POSITION}[0]) * 255, fract(${POSITION}[1]) * 255, fract(${POSITION}[2]) * 255)' }); addStyle('Pow', { - color : "color() * pow(${temperature}, 3)" + color : 'color() * pow(${temperature}, 3)' }); addStyle('Min and Max', { - color : "rgb(min(${POSITION}.x, 0.75) * 255, max(${POSITION}.z, 0.25) * 255, 255)" + color : 'rgb(min(${POSITION}.x, 0.75) * 255, max(${POSITION}.z, 0.25) * 255, 255)' }); addStyle('Clamp and Mix', { - color : "color() * clamp(${temperature}, 0.1, 0.2)" + color : 'color() * clamp(${temperature}, 0.1, 0.2)' }); addStyle('Secondary Color', { color : { conditions : [ - ["${id} < 250", "vec4(${secondaryColor}, 1.0)"], - ["${id} < 500", "vec4(${secondaryColor} * ${secondaryColor}, 1.0)"], - ["${id} < 750", "vec4(${secondaryColor} / 5.0, 1.0)"], - ["${id} < 1000", "rgb(0, 0, Number(${secondaryColor}.x < 0.5) * 255)"] + ['${id} < 250', 'vec4(${secondaryColor}, 1.0)'], + ['${id} < 500', 'vec4(${secondaryColor} * ${secondaryColor}, 1.0)'], + ['${id} < 750', 'vec4(${secondaryColor} / 5.0, 1.0)'], + ['${id} < 1000', 'rgb(0, 0, Number(${secondaryColor}.x < 0.5) * 255)'] ] } }); addStyle('Use point colors', { - color : "${COLOR} * ${temperature} + rgb(128,128,128)" + color : '${COLOR} * ${temperature} + rgb(128,128,128)' }); addStyle('Use point positions', { - show : "${POSITION}[0] > 0.5 || ${POSITION}[1] > 0.5 || ${POSITION}[2] > 0.5" + show : '${POSITION}[0] > 0.5 || ${POSITION}[1] > 0.5 || ${POSITION}[2] > 0.5' }); // POSITION contains 0 as its last component, so add 1.0 to make the point cloud opaque addStyle('Color based on position', { - color : "vec4(${POSITION}, 1.0)" + color : 'vec4(${POSITION}, 1.0)' }); addStyle('Style point size', { color : "color('red')", - pointSize : "${temperature} * 10" + pointSize : '${temperature} * 10' }); addStyle('Multiple defines', { defines : { - length : "length(${POSITION})", - time : "${tiles3d_tileset_time} * 3.0" + length : 'length(${POSITION})', + time : '${tiles3d_tileset_time} * 3.0' }, color : { conditions : [ - ["${length} < 0.5", "${length} * color('red')"], - ["${length} < 1.0", "vec4(vec3(${temperature} * fract(${time})), 1.0)"], - ["true", "${COLOR}"] + ['${length} < 0.5', "${length} * color('red')"], + ['${length} < 1.0', 'vec4(vec3(${temperature} * fract(${time})), 1.0)'], + ['true', '${COLOR}'] ] }, - pointSize : "5.0 - ${length} * 2.0", - show : "${length} < 2.0" + pointSize : '5.0 - ${length} * 2.0', + show : '${length} < 2.0' }); function setStyle(style) { @@ -206,10 +206,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/3D Tiles Point Cloud.html b/Apps/Sandcastle/gallery/3D Tiles Point Cloud.html index 28044c3fd65d..ead11a1560d8 100644 --- a/Apps/Sandcastle/gallery/3D Tiles Point Cloud.html +++ b/Apps/Sandcastle/gallery/3D Tiles Point Cloud.html @@ -35,10 +35,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/3D Tiles Terrain Classification.html b/Apps/Sandcastle/gallery/3D Tiles Terrain Classification.html index 0331f1d365ab..9c35752a1d37 100644 --- a/Apps/Sandcastle/gallery/3D Tiles Terrain Classification.html +++ b/Apps/Sandcastle/gallery/3D Tiles Terrain Classification.html @@ -73,10 +73,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Ambient Occlusion.html b/Apps/Sandcastle/gallery/Ambient Occlusion.html index b13b908da0ec..9249b734d0a3 100644 --- a/Apps/Sandcastle/gallery/Ambient Occlusion.html +++ b/Apps/Sandcastle/gallery/Ambient Occlusion.html @@ -112,10 +112,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/ArcGIS MapServer.html b/Apps/Sandcastle/gallery/ArcGIS MapServer.html index b205658d1aee..8a2cdee4f9c4 100644 --- a/Apps/Sandcastle/gallery/ArcGIS MapServer.html +++ b/Apps/Sandcastle/gallery/ArcGIS MapServer.html @@ -41,10 +41,10 @@ });//Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/ArcticDEM.html b/Apps/Sandcastle/gallery/ArcticDEM.html index a3c10a68e835..6055b1d80781 100644 --- a/Apps/Sandcastle/gallery/ArcticDEM.html +++ b/Apps/Sandcastle/gallery/ArcticDEM.html @@ -88,10 +88,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Atmosphere Color.html b/Apps/Sandcastle/gallery/Atmosphere Color.html index 9e23fbd04f6e..4d8885e463cf 100644 --- a/Apps/Sandcastle/gallery/Atmosphere Color.html +++ b/Apps/Sandcastle/gallery/Atmosphere Color.html @@ -114,10 +114,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Billboards.html b/Apps/Sandcastle/gallery/Billboards.html index a986db1a055c..19293e45cea4 100644 --- a/Apps/Sandcastle/gallery/Billboards.html +++ b/Apps/Sandcastle/gallery/Billboards.html @@ -315,10 +315,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Bloom.html b/Apps/Sandcastle/gallery/Bloom.html index b249b805deac..3f921d3817c2 100644 --- a/Apps/Sandcastle/gallery/Bloom.html +++ b/Apps/Sandcastle/gallery/Bloom.html @@ -121,10 +121,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Blue Marble.html b/Apps/Sandcastle/gallery/Blue Marble.html index ebbaba72154c..ee925c2f573f 100644 --- a/Apps/Sandcastle/gallery/Blue Marble.html +++ b/Apps/Sandcastle/gallery/Blue Marble.html @@ -34,10 +34,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Box.html b/Apps/Sandcastle/gallery/Box.html index 14c975158f4e..8c02e0f3add3 100644 --- a/Apps/Sandcastle/gallery/Box.html +++ b/Apps/Sandcastle/gallery/Box.html @@ -64,10 +64,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/CZML Billboard and Label.html b/Apps/Sandcastle/gallery/CZML Billboard and Label.html index 37889f6d28ca..5ce8a1265bf2 100644 --- a/Apps/Sandcastle/gallery/CZML Billboard and Label.html +++ b/Apps/Sandcastle/gallery/CZML Billboard and Label.html @@ -68,10 +68,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/CZML Box.html b/Apps/Sandcastle/gallery/CZML Box.html index 501bb78a05ea..647dda047c24 100644 --- a/Apps/Sandcastle/gallery/CZML Box.html +++ b/Apps/Sandcastle/gallery/CZML Box.html @@ -97,10 +97,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/CZML Circles and Ellipses.html b/Apps/Sandcastle/gallery/CZML Circles and Ellipses.html index 21dee0241acc..ffcc33e93017 100644 --- a/Apps/Sandcastle/gallery/CZML Circles and Ellipses.html +++ b/Apps/Sandcastle/gallery/CZML Circles and Ellipses.html @@ -102,10 +102,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/CZML Colors.html b/Apps/Sandcastle/gallery/CZML Colors.html index 986b3ad71f38..54fb89379f22 100644 --- a/Apps/Sandcastle/gallery/CZML Colors.html +++ b/Apps/Sandcastle/gallery/CZML Colors.html @@ -80,10 +80,10 @@ viewer.zoomTo(dataSourcePromise);//Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/CZML Cones and Cylinders.html b/Apps/Sandcastle/gallery/CZML Cones and Cylinders.html index b69d26d3cf4d..3cb65b6cf0f0 100644 --- a/Apps/Sandcastle/gallery/CZML Cones and Cylinders.html +++ b/Apps/Sandcastle/gallery/CZML Cones and Cylinders.html @@ -82,10 +82,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/CZML Corridor.html b/Apps/Sandcastle/gallery/CZML Corridor.html index 544d08676400..db817b2aa6b1 100644 --- a/Apps/Sandcastle/gallery/CZML Corridor.html +++ b/Apps/Sandcastle/gallery/CZML Corridor.html @@ -115,10 +115,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/CZML Custom Properties.html b/Apps/Sandcastle/gallery/CZML Custom Properties.html index 08ac7c451591..ad34fd9a23e5 100644 --- a/Apps/Sandcastle/gallery/CZML Custom Properties.html +++ b/Apps/Sandcastle/gallery/CZML Custom Properties.html @@ -138,10 +138,10 @@ viewer.zoomTo(dataSource);//Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/CZML Model - Node Transformations.html b/Apps/Sandcastle/gallery/CZML Model - Node Transformations.html index e740ea211c71..9910fdf7532c 100644 --- a/Apps/Sandcastle/gallery/CZML Model - Node Transformations.html +++ b/Apps/Sandcastle/gallery/CZML Model - Node Transformations.html @@ -83,10 +83,10 @@ });//Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/CZML Model.html b/Apps/Sandcastle/gallery/CZML Model.html index 6a49da3dfa2b..a7a7fdab0c4a 100644 --- a/Apps/Sandcastle/gallery/CZML Model.html +++ b/Apps/Sandcastle/gallery/CZML Model.html @@ -60,10 +60,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/CZML Path.html b/Apps/Sandcastle/gallery/CZML Path.html index 4bcd470dcf3a..4c8a2e034be7 100644 --- a/Apps/Sandcastle/gallery/CZML Path.html +++ b/Apps/Sandcastle/gallery/CZML Path.html @@ -1876,10 +1876,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/CZML Point - Time Dynamic.html b/Apps/Sandcastle/gallery/CZML Point - Time Dynamic.html index d381546af221..1dc01bba1523 100644 --- a/Apps/Sandcastle/gallery/CZML Point - Time Dynamic.html +++ b/Apps/Sandcastle/gallery/CZML Point - Time Dynamic.html @@ -65,10 +65,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/CZML Point.html b/Apps/Sandcastle/gallery/CZML Point.html index 2a1565a37ac7..533a61a3741b 100644 --- a/Apps/Sandcastle/gallery/CZML Point.html +++ b/Apps/Sandcastle/gallery/CZML Point.html @@ -58,10 +58,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/CZML Polygon - Interpolating References.html b/Apps/Sandcastle/gallery/CZML Polygon - Interpolating References.html index fb4eb821a141..3adf3c856e2d 100644 --- a/Apps/Sandcastle/gallery/CZML Polygon - Interpolating References.html +++ b/Apps/Sandcastle/gallery/CZML Polygon - Interpolating References.html @@ -106,10 +106,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/CZML Polygon - Intervals, Availability.html b/Apps/Sandcastle/gallery/CZML Polygon - Intervals, Availability.html index c9a2a175a8a6..51b0a9ff2058 100644 --- a/Apps/Sandcastle/gallery/CZML Polygon - Intervals, Availability.html +++ b/Apps/Sandcastle/gallery/CZML Polygon - Intervals, Availability.html @@ -147,10 +147,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/CZML Polygon.html b/Apps/Sandcastle/gallery/CZML Polygon.html index 38816d8b1c9b..c57ab36d3c78 100644 --- a/Apps/Sandcastle/gallery/CZML Polygon.html +++ b/Apps/Sandcastle/gallery/CZML Polygon.html @@ -111,10 +111,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/CZML Polyline.html b/Apps/Sandcastle/gallery/CZML Polyline.html index 4b39e7c0f5f3..a506213fb7e2 100644 --- a/Apps/Sandcastle/gallery/CZML Polyline.html +++ b/Apps/Sandcastle/gallery/CZML Polyline.html @@ -144,10 +144,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/CZML Position Definitions.html b/Apps/Sandcastle/gallery/CZML Position Definitions.html index 80a42eaba24f..28d8cfb0b760 100644 --- a/Apps/Sandcastle/gallery/CZML Position Definitions.html +++ b/Apps/Sandcastle/gallery/CZML Position Definitions.html @@ -91,10 +91,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/CZML Rectangle.html b/Apps/Sandcastle/gallery/CZML Rectangle.html index 8d76348b7e77..e5d51475e922 100644 --- a/Apps/Sandcastle/gallery/CZML Rectangle.html +++ b/Apps/Sandcastle/gallery/CZML Rectangle.html @@ -117,10 +117,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/CZML Reference Properties.html b/Apps/Sandcastle/gallery/CZML Reference Properties.html index 862c96ca8a6e..7ac66650b408 100644 --- a/Apps/Sandcastle/gallery/CZML Reference Properties.html +++ b/Apps/Sandcastle/gallery/CZML Reference Properties.html @@ -10,7 +10,7 @@ diff --git a/Apps/Sandcastle/gallery/CZML Spheres and Ellipsoids.html b/Apps/Sandcastle/gallery/CZML Spheres and Ellipsoids.html index f5794f04e63a..7609c9ca8224 100644 --- a/Apps/Sandcastle/gallery/CZML Spheres and Ellipsoids.html +++ b/Apps/Sandcastle/gallery/CZML Spheres and Ellipsoids.html @@ -102,10 +102,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/CZML Wall.html b/Apps/Sandcastle/gallery/CZML Wall.html index 6ddcfe36bd03..0ef988065e7b 100644 --- a/Apps/Sandcastle/gallery/CZML Wall.html +++ b/Apps/Sandcastle/gallery/CZML Wall.html @@ -68,10 +68,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/CZML ZIndex.html b/Apps/Sandcastle/gallery/CZML ZIndex.html index e967d5f5cc4c..1891923cf1a4 100644 --- a/Apps/Sandcastle/gallery/CZML ZIndex.html +++ b/Apps/Sandcastle/gallery/CZML ZIndex.html @@ -10,7 +10,7 @@ diff --git a/Apps/Sandcastle/gallery/CZML.html b/Apps/Sandcastle/gallery/CZML.html index b5b79945795e..c5397e12a66a 100644 --- a/Apps/Sandcastle/gallery/CZML.html +++ b/Apps/Sandcastle/gallery/CZML.html @@ -55,10 +55,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Callback Property.html b/Apps/Sandcastle/gallery/Callback Property.html index 5448dea68ec5..9136f0c2fcf9 100644 --- a/Apps/Sandcastle/gallery/Callback Property.html +++ b/Apps/Sandcastle/gallery/Callback Property.html @@ -68,7 +68,7 @@ geodesic.setEndPoints(startCartographic, endCartographic); var lengthInMeters = Math.round(geodesic.surfaceDistance); - return (lengthInMeters / 1000).toFixed(1) + " km"; + return (lengthInMeters / 1000).toFixed(1) + ' km'; } function getMidpoint(time, result) { @@ -97,10 +97,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Camera Tutorial.html b/Apps/Sandcastle/gallery/Camera Tutorial.html index a11bb57af9cc..20bc04543aca 100644 --- a/Apps/Sandcastle/gallery/Camera Tutorial.html +++ b/Apps/Sandcastle/gallery/Camera Tutorial.html @@ -166,10 +166,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Camera.html b/Apps/Sandcastle/gallery/Camera.html index 4181a3d56d42..5aff2bbecd55 100644 --- a/Apps/Sandcastle/gallery/Camera.html +++ b/Apps/Sandcastle/gallery/Camera.html @@ -398,10 +398,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Cardboard.html b/Apps/Sandcastle/gallery/Cardboard.html index 42ce43bc1b8d..67606e73c971 100644 --- a/Apps/Sandcastle/gallery/Cardboard.html +++ b/Apps/Sandcastle/gallery/Cardboard.html @@ -152,10 +152,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Cesium Inspector.html b/Apps/Sandcastle/gallery/Cesium Inspector.html index 87aedb753266..352e48afe129 100644 --- a/Apps/Sandcastle/gallery/Cesium Inspector.html +++ b/Apps/Sandcastle/gallery/Cesium Inspector.html @@ -83,10 +83,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Cesium Widget.html b/Apps/Sandcastle/gallery/Cesium Widget.html index 4158885e115b..6254e12bcc96 100644 --- a/Apps/Sandcastle/gallery/Cesium Widget.html +++ b/Apps/Sandcastle/gallery/Cesium Widget.html @@ -36,10 +36,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Cesium World Terrain.html b/Apps/Sandcastle/gallery/Cesium World Terrain.html index 03d7dd1aa81a..03ca485778b9 100644 --- a/Apps/Sandcastle/gallery/Cesium World Terrain.html +++ b/Apps/Sandcastle/gallery/Cesium World Terrain.html @@ -34,10 +34,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Circles and Ellipses.html b/Apps/Sandcastle/gallery/Circles and Ellipses.html index 783fff5a326a..61f0eb9a7493 100644 --- a/Apps/Sandcastle/gallery/Circles and Ellipses.html +++ b/Apps/Sandcastle/gallery/Circles and Ellipses.html @@ -68,10 +68,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Classification Types.html b/Apps/Sandcastle/gallery/Classification Types.html index 5d5007ed10f6..fdae6d7391a7 100644 --- a/Apps/Sandcastle/gallery/Classification Types.html +++ b/Apps/Sandcastle/gallery/Classification Types.html @@ -66,10 +66,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Classification.html b/Apps/Sandcastle/gallery/Classification.html index 1a5e9140ea56..d221edf1f538 100644 --- a/Apps/Sandcastle/gallery/Classification.html +++ b/Apps/Sandcastle/gallery/Classification.html @@ -259,10 +259,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Clock.html b/Apps/Sandcastle/gallery/Clock.html index 7216838c90d9..0ba03c4d33e6 100644 --- a/Apps/Sandcastle/gallery/Clock.html +++ b/Apps/Sandcastle/gallery/Clock.html @@ -29,9 +29,9 @@ //Sandcastle_Begin // Create a clock that loops on Christmas day 2013 and runs in 4000x real time. var clock = new Cesium.Clock({ - startTime : Cesium.JulianDate.fromIso8601("2013-12-25"), - currentTime : Cesium.JulianDate.fromIso8601("2013-12-25"), - stopTime : Cesium.JulianDate.fromIso8601("2013-12-26"), + startTime : Cesium.JulianDate.fromIso8601('2013-12-25'), + currentTime : Cesium.JulianDate.fromIso8601('2013-12-25'), + stopTime : Cesium.JulianDate.fromIso8601('2013-12-26'), clockRange : Cesium.ClockRange.LOOP_STOP, // loop when we hit the end time clockStep : Cesium.ClockStep.SYSTEM_CLOCK_MULTIPLIER, multiplier : 4000, // how much time to advance each tick @@ -59,10 +59,10 @@ });//Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Clustering.html b/Apps/Sandcastle/gallery/Clustering.html index 0c9fcf18d4bb..547078f91659 100644 --- a/Apps/Sandcastle/gallery/Clustering.html +++ b/Apps/Sandcastle/gallery/Clustering.html @@ -165,10 +165,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Corridor.html b/Apps/Sandcastle/gallery/Corridor.html index ab0f8350e3d4..71305e02cd5e 100644 --- a/Apps/Sandcastle/gallery/Corridor.html +++ b/Apps/Sandcastle/gallery/Corridor.html @@ -80,10 +80,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Custom DataSource.html b/Apps/Sandcastle/gallery/Custom DataSource.html index 73ccd23eecab..9b4c51e8e511 100644 --- a/Apps/Sandcastle/gallery/Custom DataSource.html +++ b/Apps/Sandcastle/gallery/Custom DataSource.html @@ -377,10 +377,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Custom Geocoder.html b/Apps/Sandcastle/gallery/Custom Geocoder.html index 8602a154e2b7..2292086a4a7e 100644 --- a/Apps/Sandcastle/gallery/Custom Geocoder.html +++ b/Apps/Sandcastle/gallery/Custom Geocoder.html @@ -85,10 +85,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Custom Per-Feature Post Process.html b/Apps/Sandcastle/gallery/Custom Per-Feature Post Process.html index 5a97159ac0cc..eb86af302924 100644 --- a/Apps/Sandcastle/gallery/Custom Per-Feature Post Process.html +++ b/Apps/Sandcastle/gallery/Custom Per-Feature Post Process.html @@ -79,10 +79,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Custom Post Process.html b/Apps/Sandcastle/gallery/Custom Post Process.html index ab408c3097d8..6f219f822116 100644 --- a/Apps/Sandcastle/gallery/Custom Post Process.html +++ b/Apps/Sandcastle/gallery/Custom Post Process.html @@ -66,10 +66,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Cylinders and Cones.html b/Apps/Sandcastle/gallery/Cylinders and Cones.html index 193d22059c2a..57a73b770485 100644 --- a/Apps/Sandcastle/gallery/Cylinders and Cones.html +++ b/Apps/Sandcastle/gallery/Cylinders and Cones.html @@ -57,10 +57,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/DataSource Ordering.html b/Apps/Sandcastle/gallery/DataSource Ordering.html index d659892a4635..45be1641f486 100644 --- a/Apps/Sandcastle/gallery/DataSource Ordering.html +++ b/Apps/Sandcastle/gallery/DataSource Ordering.html @@ -10,7 +10,7 @@ diff --git a/Apps/Sandcastle/gallery/Depth of Field.html b/Apps/Sandcastle/gallery/Depth of Field.html index 8e2f75c3140f..02f0e56cdf6b 100644 --- a/Apps/Sandcastle/gallery/Depth of Field.html +++ b/Apps/Sandcastle/gallery/Depth of Field.html @@ -114,10 +114,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Distance Display Conditions.html b/Apps/Sandcastle/gallery/Distance Display Conditions.html index 0679bc3c39a7..36c0f0ac623f 100644 --- a/Apps/Sandcastle/gallery/Distance Display Conditions.html +++ b/Apps/Sandcastle/gallery/Distance Display Conditions.html @@ -94,10 +94,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Drawing on Terrain.html b/Apps/Sandcastle/gallery/Drawing on Terrain.html index 8ba337ca55b4..7bd15840563a 100644 --- a/Apps/Sandcastle/gallery/Drawing on Terrain.html +++ b/Apps/Sandcastle/gallery/Drawing on Terrain.html @@ -145,10 +145,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Earth at Night.html b/Apps/Sandcastle/gallery/Earth at Night.html index fc24182fc2ec..30adaca958ef 100644 --- a/Apps/Sandcastle/gallery/Earth at Night.html +++ b/Apps/Sandcastle/gallery/Earth at Night.html @@ -34,10 +34,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/GeoJSON and TopoJSON.html b/Apps/Sandcastle/gallery/GeoJSON and TopoJSON.html index 57d1d988b2b2..8eaa5ca1e2c6 100644 --- a/Apps/Sandcastle/gallery/GeoJSON and TopoJSON.html +++ b/Apps/Sandcastle/gallery/GeoJSON and TopoJSON.html @@ -97,10 +97,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/GeoJSON simplestyle.html b/Apps/Sandcastle/gallery/GeoJSON simplestyle.html index 2fc283a0fe5e..20f4cc18134c 100644 --- a/Apps/Sandcastle/gallery/GeoJSON simplestyle.html +++ b/Apps/Sandcastle/gallery/GeoJSON simplestyle.html @@ -45,10 +45,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Geometry Height Reference.html b/Apps/Sandcastle/gallery/Geometry Height Reference.html index affc60edc5a0..d3202f476d38 100644 --- a/Apps/Sandcastle/gallery/Geometry Height Reference.html +++ b/Apps/Sandcastle/gallery/Geometry Height Reference.html @@ -10,7 +10,7 @@ diff --git a/Apps/Sandcastle/gallery/Geometry and Appearances.html b/Apps/Sandcastle/gallery/Geometry and Appearances.html index 1f06f5cc3b5f..6ad27199ba50 100644 --- a/Apps/Sandcastle/gallery/Geometry and Appearances.html +++ b/Apps/Sandcastle/gallery/Geometry and Appearances.html @@ -490,10 +490,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Globe Materials.html b/Apps/Sandcastle/gallery/Globe Materials.html index 5f764271d42b..f7c5e3cd7e4a 100644 --- a/Apps/Sandcastle/gallery/Globe Materials.html +++ b/Apps/Sandcastle/gallery/Globe Materials.html @@ -10,7 +10,7 @@ diff --git a/Apps/Sandcastle/gallery/Google Earth Enterprise.html b/Apps/Sandcastle/gallery/Google Earth Enterprise.html index d557f86662ba..9fe145449a57 100644 --- a/Apps/Sandcastle/gallery/Google Earth Enterprise.html +++ b/Apps/Sandcastle/gallery/Google Earth Enterprise.html @@ -49,10 +49,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } - if (typeof Cesium !== "undefined") { + if (typeof Cesium !== 'undefined') { startup(Cesium); - } else if (typeof require === "function") { - require(["Cesium"], startup); + } else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Ground Clamping.html b/Apps/Sandcastle/gallery/Ground Clamping.html index 6c45eb7006ca..fc695c504c9e 100644 --- a/Apps/Sandcastle/gallery/Ground Clamping.html +++ b/Apps/Sandcastle/gallery/Ground Clamping.html @@ -257,10 +257,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/HTML Overlays.html b/Apps/Sandcastle/gallery/HTML Overlays.html index 482542945d1f..b7cab64cfb54 100644 --- a/Apps/Sandcastle/gallery/HTML Overlays.html +++ b/Apps/Sandcastle/gallery/HTML Overlays.html @@ -46,10 +46,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/HeadingPitchRoll.html b/Apps/Sandcastle/gallery/HeadingPitchRoll.html index 64a570e88d38..abb0132f9df4 100644 --- a/Apps/Sandcastle/gallery/HeadingPitchRoll.html +++ b/Apps/Sandcastle/gallery/HeadingPitchRoll.html @@ -226,10 +226,10 @@

Loading...

//Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Hello World.html b/Apps/Sandcastle/gallery/Hello World.html index 640e8e317705..9bd4fd5f0ba8 100644 --- a/Apps/Sandcastle/gallery/Hello World.html +++ b/Apps/Sandcastle/gallery/Hello World.html @@ -31,10 +31,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Imagery Adjustment.html b/Apps/Sandcastle/gallery/Imagery Adjustment.html index 4e0b008cc1fc..7303e7d32144 100644 --- a/Apps/Sandcastle/gallery/Imagery Adjustment.html +++ b/Apps/Sandcastle/gallery/Imagery Adjustment.html @@ -128,10 +128,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Imagery Layers Manipulation.html b/Apps/Sandcastle/gallery/Imagery Layers Manipulation.html index be4b1b620e36..a696e8a56d5e 100644 --- a/Apps/Sandcastle/gallery/Imagery Layers Manipulation.html +++ b/Apps/Sandcastle/gallery/Imagery Layers Manipulation.html @@ -10,7 +10,7 @@ diff --git a/Apps/Sandcastle/gallery/Imagery Layers Split.html b/Apps/Sandcastle/gallery/Imagery Layers Split.html index 75e674459f95..e5554c7b8e78 100644 --- a/Apps/Sandcastle/gallery/Imagery Layers Split.html +++ b/Apps/Sandcastle/gallery/Imagery Layers Split.html @@ -99,10 +99,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Imagery Layers Texture Filters.html b/Apps/Sandcastle/gallery/Imagery Layers Texture Filters.html index 72fca860b7e6..13c20e5bc860 100644 --- a/Apps/Sandcastle/gallery/Imagery Layers Texture Filters.html +++ b/Apps/Sandcastle/gallery/Imagery Layers Texture Filters.html @@ -91,17 +91,17 @@ function sliderMove(e) { var slider = document.getElementById('slider'); var splitPosition = (e.clientX - dragStartX) / slider.parentElement.offsetWidth; - slider.style.left = 100.0 * splitPosition + "%"; + slider.style.left = 100.0 * splitPosition + '%'; viewer.scene.imagerySplitPosition = splitPosition; } //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Imagery Layers.html b/Apps/Sandcastle/gallery/Imagery Layers.html index 643dd7ea3ca1..6f13d30a4a2f 100644 --- a/Apps/Sandcastle/gallery/Imagery Layers.html +++ b/Apps/Sandcastle/gallery/Imagery Layers.html @@ -46,10 +46,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Interpolation.html b/Apps/Sandcastle/gallery/Interpolation.html index 6ff3fb77fd23..9432591840c2 100644 --- a/Apps/Sandcastle/gallery/Interpolation.html +++ b/Apps/Sandcastle/gallery/Interpolation.html @@ -163,10 +163,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/KML Tours.html b/Apps/Sandcastle/gallery/KML Tours.html index 28c95e0ec112..946c47d156a4 100644 --- a/Apps/Sandcastle/gallery/KML Tours.html +++ b/Apps/Sandcastle/gallery/KML Tours.html @@ -69,10 +69,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/KML.html b/Apps/Sandcastle/gallery/KML.html index 4b17efaf306d..34054d417d38 100644 --- a/Apps/Sandcastle/gallery/KML.html +++ b/Apps/Sandcastle/gallery/KML.html @@ -70,10 +70,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Labels.html b/Apps/Sandcastle/gallery/Labels.html index f8e623ce7e5c..24258dae0a0a 100644 --- a/Apps/Sandcastle/gallery/Labels.html +++ b/Apps/Sandcastle/gallery/Labels.html @@ -182,10 +182,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/LensFlare.html b/Apps/Sandcastle/gallery/LensFlare.html index 418e77b9f5bd..d4f77fb9a8b5 100644 --- a/Apps/Sandcastle/gallery/LensFlare.html +++ b/Apps/Sandcastle/gallery/LensFlare.html @@ -69,7 +69,7 @@ } } -var lensFlare = viewer.scene.postProcessStages.add(Cesium.PostProcessStageLibrary.createLensFlarStage()); +var lensFlare = viewer.scene.postProcessStages.add(Cesium.PostProcessStageLibrary.createLensFlareStage()); function updatePostProcess() { lensFlare.enabled = Boolean(viewModel.show); @@ -91,10 +91,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/LocalToFixedFrame.html b/Apps/Sandcastle/gallery/LocalToFixedFrame.html index 64124f0647cc..0fc145270f67 100644 --- a/Apps/Sandcastle/gallery/LocalToFixedFrame.html +++ b/Apps/Sandcastle/gallery/LocalToFixedFrame.html @@ -229,10 +229,10 @@

Loading...

//Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Map Pins.html b/Apps/Sandcastle/gallery/Map Pins.html index dd2ec4448c4c..55afd98842ac 100644 --- a/Apps/Sandcastle/gallery/Map Pins.html +++ b/Apps/Sandcastle/gallery/Map Pins.html @@ -81,10 +81,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Materials.html b/Apps/Sandcastle/gallery/Materials.html index e98c8f570e1f..105bc9c7dd4d 100644 --- a/Apps/Sandcastle/gallery/Materials.html +++ b/Apps/Sandcastle/gallery/Materials.html @@ -523,10 +523,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Multi-part CZML.html b/Apps/Sandcastle/gallery/Multi-part CZML.html index 68b80c6b1fa2..36a18f545d77 100644 --- a/Apps/Sandcastle/gallery/Multi-part CZML.html +++ b/Apps/Sandcastle/gallery/Multi-part CZML.html @@ -10,7 +10,7 @@ diff --git a/Apps/Sandcastle/gallery/Multiple Synced Views.html b/Apps/Sandcastle/gallery/Multiple Synced Views.html index d429ed75cdf5..95cfb77350fe 100644 --- a/Apps/Sandcastle/gallery/Multiple Synced Views.html +++ b/Apps/Sandcastle/gallery/Multiple Synced Views.html @@ -103,10 +103,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Natural Earth II.html b/Apps/Sandcastle/gallery/Natural Earth II.html index 3f7db4c8ae97..6520916d8c09 100644 --- a/Apps/Sandcastle/gallery/Natural Earth II.html +++ b/Apps/Sandcastle/gallery/Natural Earth II.html @@ -34,10 +34,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Offline.html b/Apps/Sandcastle/gallery/Offline.html index 36d02c454644..d02a851c4548 100644 --- a/Apps/Sandcastle/gallery/Offline.html +++ b/Apps/Sandcastle/gallery/Offline.html @@ -42,10 +42,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/PAMAP Terrain.html b/Apps/Sandcastle/gallery/PAMAP Terrain.html index 61e775de5fb3..3ecd3e5738b9 100644 --- a/Apps/Sandcastle/gallery/PAMAP Terrain.html +++ b/Apps/Sandcastle/gallery/PAMAP Terrain.html @@ -100,10 +100,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Particle System Fireworks.html b/Apps/Sandcastle/gallery/Particle System Fireworks.html index 440b23381d67..88fca7816f72 100644 --- a/Apps/Sandcastle/gallery/Particle System Fireworks.html +++ b/Apps/Sandcastle/gallery/Particle System Fireworks.html @@ -163,10 +163,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Particle System Tails.html b/Apps/Sandcastle/gallery/Particle System Tails.html index 643c0b29ea46..bdfbe3df8799 100644 --- a/Apps/Sandcastle/gallery/Particle System Tails.html +++ b/Apps/Sandcastle/gallery/Particle System Tails.html @@ -216,10 +216,10 @@ Sandcastle.finishedLoading(); } - if (typeof Cesium !== "undefined") { + if (typeof Cesium !== 'undefined') { startup(Cesium); - } else if (typeof require === "function") { - require(["Cesium"], startup); + } else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Particle System Weather.html b/Apps/Sandcastle/gallery/Particle System Weather.html index b1886e906b54..5c5fbaa648d8 100644 --- a/Apps/Sandcastle/gallery/Particle System Weather.html +++ b/Apps/Sandcastle/gallery/Particle System Weather.html @@ -159,10 +159,10 @@ Sandcastle.finishedLoading(); } - if (typeof Cesium !== "undefined") { + if (typeof Cesium !== 'undefined') { startup(Cesium); - } else if (typeof require === "function") { - require(["Cesium"], startup); + } else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Particle System.html b/Apps/Sandcastle/gallery/Particle System.html index 58d25362742f..4e245a71b2e8 100644 --- a/Apps/Sandcastle/gallery/Particle System.html +++ b/Apps/Sandcastle/gallery/Particle System.html @@ -422,10 +422,10 @@ Sandcastle.finishedLoading(); } - if (typeof Cesium !== "undefined") { + if (typeof Cesium !== 'undefined') { startup(Cesium); - } else if (typeof require === "function") { - require(["Cesium"], startup); + } else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Per-Feature Post Processing.html b/Apps/Sandcastle/gallery/Per-Feature Post Processing.html index 6b9d63734c9b..9ea955b9b920 100644 --- a/Apps/Sandcastle/gallery/Per-Feature Post Processing.html +++ b/Apps/Sandcastle/gallery/Per-Feature Post Processing.html @@ -91,10 +91,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Physically-Based Materials.html b/Apps/Sandcastle/gallery/Physically-Based Materials.html index 279e730f51cc..e0383b635f32 100644 --- a/Apps/Sandcastle/gallery/Physically-Based Materials.html +++ b/Apps/Sandcastle/gallery/Physically-Based Materials.html @@ -10,7 +10,7 @@ diff --git a/Apps/Sandcastle/gallery/Picking.html b/Apps/Sandcastle/gallery/Picking.html index c51d151053b7..b86758986e25 100644 --- a/Apps/Sandcastle/gallery/Picking.html +++ b/Apps/Sandcastle/gallery/Picking.html @@ -223,10 +223,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Plane.html b/Apps/Sandcastle/gallery/Plane.html index 2e4c6e8cef46..c326c7ac28c6 100644 --- a/Apps/Sandcastle/gallery/Plane.html +++ b/Apps/Sandcastle/gallery/Plane.html @@ -67,10 +67,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } - if (typeof Cesium !== "undefined") { + if (typeof Cesium !== 'undefined') { startup(Cesium); - } else if (typeof require === "function") { - require(["Cesium"], startup); + } else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Points.html b/Apps/Sandcastle/gallery/Points.html index d126617f637f..4b0ce2f4dfa3 100644 --- a/Apps/Sandcastle/gallery/Points.html +++ b/Apps/Sandcastle/gallery/Points.html @@ -167,10 +167,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Polygon.html b/Apps/Sandcastle/gallery/Polygon.html index 56e7e95d5c3f..e5052bbc06f5 100644 --- a/Apps/Sandcastle/gallery/Polygon.html +++ b/Apps/Sandcastle/gallery/Polygon.html @@ -10,10 +10,12 @@ @@ -108,14 +110,28 @@ } }); -viewer.zoomTo(viewer.entities); -//Sandcastle_End +var cyanPolygon = viewer.entities.add({ + name : 'Cyan vertical polygon with per-position heights and outline', + polygon : { + hierarchy : Cesium.Cartesian3.fromDegreesArrayHeights([ + -90.0, 41.0, 0.0, + -85.0, 41.0, 500000.0, + -80.0, 41.0, 0.0 + ]), + perPositionHeight : true, + material : Cesium.Color.CYAN.withAlpha(0.5), + outline : true, + outlineColor : Cesium.Color.BLACK + } +}); + +viewer.zoomTo(viewer.entities);//Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Polygon.jpg b/Apps/Sandcastle/gallery/Polygon.jpg index 730876783006..bbe5a86979a4 100644 Binary files a/Apps/Sandcastle/gallery/Polygon.jpg and b/Apps/Sandcastle/gallery/Polygon.jpg differ diff --git a/Apps/Sandcastle/gallery/Polyline Dash.html b/Apps/Sandcastle/gallery/Polyline Dash.html index 5e797180d55e..914a52295e54 100644 --- a/Apps/Sandcastle/gallery/Polyline Dash.html +++ b/Apps/Sandcastle/gallery/Polyline Dash.html @@ -75,7 +75,7 @@ width : 10, material : new Cesium.PolylineDashMaterialProperty({ color : Cesium.Color.CYAN, - dashPattern: parseInt("110000001111", 2) + dashPattern: parseInt('110000001111', 2) }) } }); @@ -88,7 +88,7 @@ width : 10, material : new Cesium.PolylineDashMaterialProperty({ color : Cesium.Color.YELLOW, - dashPattern: parseInt("1010101010101010", 2) + dashPattern: parseInt('1010101010101010', 2) }) } }); @@ -97,10 +97,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Polyline Volume.html b/Apps/Sandcastle/gallery/Polyline Volume.html index 8ef42c4cbc94..617a23cd57d4 100644 --- a/Apps/Sandcastle/gallery/Polyline Volume.html +++ b/Apps/Sandcastle/gallery/Polyline Volume.html @@ -93,10 +93,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Polyline.html b/Apps/Sandcastle/gallery/Polyline.html index 203f2afe55c4..6ae30db914c5 100644 --- a/Apps/Sandcastle/gallery/Polyline.html +++ b/Apps/Sandcastle/gallery/Polyline.html @@ -94,10 +94,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Post Processing.html b/Apps/Sandcastle/gallery/Post Processing.html index d07c2c912d32..aa52bbd5438c 100644 --- a/Apps/Sandcastle/gallery/Post Processing.html +++ b/Apps/Sandcastle/gallery/Post Processing.html @@ -103,10 +103,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Projection.html b/Apps/Sandcastle/gallery/Projection.html index faa01ed692d1..ebd7a122bc92 100644 --- a/Apps/Sandcastle/gallery/Projection.html +++ b/Apps/Sandcastle/gallery/Projection.html @@ -52,10 +52,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Rectangle.html b/Apps/Sandcastle/gallery/Rectangle.html index cf3b11fc4dec..8cba1ffc4401 100644 --- a/Apps/Sandcastle/gallery/Rectangle.html +++ b/Apps/Sandcastle/gallery/Rectangle.html @@ -71,10 +71,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Rotatable 2D Map.html b/Apps/Sandcastle/gallery/Rotatable 2D Map.html index 3a8afe0a41da..6666ac581b78 100644 --- a/Apps/Sandcastle/gallery/Rotatable 2D Map.html +++ b/Apps/Sandcastle/gallery/Rotatable 2D Map.html @@ -41,10 +41,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Scene Rendering Performance.html b/Apps/Sandcastle/gallery/Scene Rendering Performance.html index 3dd91b722f0e..c1df36034cc7 100644 --- a/Apps/Sandcastle/gallery/Scene Rendering Performance.html +++ b/Apps/Sandcastle/gallery/Scene Rendering Performance.html @@ -10,7 +10,7 @@ diff --git a/Apps/Sandcastle/gallery/Sentinel-2.html b/Apps/Sandcastle/gallery/Sentinel-2.html index 37f7007681f3..763538e5a1e4 100644 --- a/Apps/Sandcastle/gallery/Sentinel-2.html +++ b/Apps/Sandcastle/gallery/Sentinel-2.html @@ -34,10 +34,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Shadows.html b/Apps/Sandcastle/gallery/Shadows.html index cd5e27cad313..a5e64c14cb7e 100644 --- a/Apps/Sandcastle/gallery/Shadows.html +++ b/Apps/Sandcastle/gallery/Shadows.html @@ -270,10 +270,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Show or Hide Entities.html b/Apps/Sandcastle/gallery/Show or Hide Entities.html index 38fc7b22bf7c..80712671d4fd 100644 --- a/Apps/Sandcastle/gallery/Show or Hide Entities.html +++ b/Apps/Sandcastle/gallery/Show or Hide Entities.html @@ -85,10 +85,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Spheres and Ellipsoids.html b/Apps/Sandcastle/gallery/Spheres and Ellipsoids.html index 7e5ca4390eda..8d8e30bbd3b4 100644 --- a/Apps/Sandcastle/gallery/Spheres and Ellipsoids.html +++ b/Apps/Sandcastle/gallery/Spheres and Ellipsoids.html @@ -66,10 +66,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Star Burst.html b/Apps/Sandcastle/gallery/Star Burst.html index 34b75b4be17a..9f43819f437b 100644 --- a/Apps/Sandcastle/gallery/Star Burst.html +++ b/Apps/Sandcastle/gallery/Star Burst.html @@ -320,10 +320,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { -require(["Cesium"], startup); +} else if (typeof require === 'function') { +require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Terrain Clipping Planes.html b/Apps/Sandcastle/gallery/Terrain Clipping Planes.html index 46b990379a04..fe1ddc8b7588 100644 --- a/Apps/Sandcastle/gallery/Terrain Clipping Planes.html +++ b/Apps/Sandcastle/gallery/Terrain Clipping Planes.html @@ -10,7 +10,7 @@ diff --git a/Apps/Sandcastle/gallery/Terrain Exaggeration.html b/Apps/Sandcastle/gallery/Terrain Exaggeration.html index 39d7f8caeee5..3299c7fe2528 100644 --- a/Apps/Sandcastle/gallery/Terrain Exaggeration.html +++ b/Apps/Sandcastle/gallery/Terrain Exaggeration.html @@ -75,10 +75,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Terrain.html b/Apps/Sandcastle/gallery/Terrain.html index abbbeab0ef05..5ac4107debab 100644 --- a/Apps/Sandcastle/gallery/Terrain.html +++ b/Apps/Sandcastle/gallery/Terrain.html @@ -199,10 +199,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Time Dynamic Point Cloud.html b/Apps/Sandcastle/gallery/Time Dynamic Point Cloud.html new file mode 100644 index 000000000000..de2766a8132e --- /dev/null +++ b/Apps/Sandcastle/gallery/Time Dynamic Point Cloud.html @@ -0,0 +1,95 @@ + + + + + + + + + Cesium Demo + + + + + + +
+

Loading...

+
+ + + diff --git a/Apps/Sandcastle/gallery/Time Dynamic Point Cloud.jpg b/Apps/Sandcastle/gallery/Time Dynamic Point Cloud.jpg new file mode 100644 index 000000000000..6ec6222069db Binary files /dev/null and b/Apps/Sandcastle/gallery/Time Dynamic Point Cloud.jpg differ diff --git a/Apps/Sandcastle/gallery/Video.html b/Apps/Sandcastle/gallery/Video.html index 6400884ec6bd..c8223ab9504b 100644 --- a/Apps/Sandcastle/gallery/Video.html +++ b/Apps/Sandcastle/gallery/Video.html @@ -122,10 +122,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Wall.html b/Apps/Sandcastle/gallery/Wall.html index 8564c8175e9e..36a7cd026b00 100644 --- a/Apps/Sandcastle/gallery/Wall.html +++ b/Apps/Sandcastle/gallery/Wall.html @@ -77,10 +77,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Washington DC 2017.html b/Apps/Sandcastle/gallery/Washington DC 2017.html index 24ce8601dfc9..fc1effcf9deb 100644 --- a/Apps/Sandcastle/gallery/Washington DC 2017.html +++ b/Apps/Sandcastle/gallery/Washington DC 2017.html @@ -35,10 +35,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Web Map Service (WMS).html b/Apps/Sandcastle/gallery/Web Map Service (WMS).html index 119d7e7c877c..1f0ff329d7da 100644 --- a/Apps/Sandcastle/gallery/Web Map Service (WMS).html +++ b/Apps/Sandcastle/gallery/Web Map Service (WMS).html @@ -46,10 +46,10 @@ });//Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/Web Map Tile Service with Time.html b/Apps/Sandcastle/gallery/Web Map Tile Service with Time.html index 4204894bb5a7..421e017ff90f 100644 --- a/Apps/Sandcastle/gallery/Web Map Tile Service with Time.html +++ b/Apps/Sandcastle/gallery/Web Map Tile Service with Time.html @@ -10,7 +10,7 @@ diff --git a/Apps/Sandcastle/gallery/Z-Indexing Geometry.html b/Apps/Sandcastle/gallery/Z-Indexing Geometry.html index 6940e7dd4555..0e6f9d8ce225 100644 --- a/Apps/Sandcastle/gallery/Z-Indexing Geometry.html +++ b/Apps/Sandcastle/gallery/Z-Indexing Geometry.html @@ -10,7 +10,7 @@ diff --git a/Apps/Sandcastle/gallery/development/3D Models Instancing.html b/Apps/Sandcastle/gallery/development/3D Models Instancing.html index 69a61bb357f5..716668680628 100644 --- a/Apps/Sandcastle/gallery/development/3D Models Instancing.html +++ b/Apps/Sandcastle/gallery/development/3D Models Instancing.html @@ -10,7 +10,7 @@ diff --git a/Apps/Sandcastle/gallery/development/3D Models Node Explorer.html b/Apps/Sandcastle/gallery/development/3D Models Node Explorer.html index f17078d6a602..1f08b59064d5 100644 --- a/Apps/Sandcastle/gallery/development/3D Models Node Explorer.html +++ b/Apps/Sandcastle/gallery/development/3D Models Node Explorer.html @@ -232,10 +232,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/3D Models.html b/Apps/Sandcastle/gallery/development/3D Models.html index 777035166a5f..9facf1c0b47a 100644 --- a/Apps/Sandcastle/gallery/development/3D Models.html +++ b/Apps/Sandcastle/gallery/development/3D Models.html @@ -211,10 +211,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/BillboardClampToGround.html b/Apps/Sandcastle/gallery/development/BillboardClampToGround.html index 9c4b622412d4..bd530e425cce 100644 --- a/Apps/Sandcastle/gallery/development/BillboardClampToGround.html +++ b/Apps/Sandcastle/gallery/development/BillboardClampToGround.html @@ -130,10 +130,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Billboards Instancing.html b/Apps/Sandcastle/gallery/development/Billboards Instancing.html index f4c8f9353de1..601a7237bb3c 100644 --- a/Apps/Sandcastle/gallery/development/Billboards Instancing.html +++ b/Apps/Sandcastle/gallery/development/Billboards Instancing.html @@ -189,10 +189,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Billboards.html b/Apps/Sandcastle/gallery/development/Billboards.html index 6c85e49555ea..18ec81297f38 100644 --- a/Apps/Sandcastle/gallery/development/Billboards.html +++ b/Apps/Sandcastle/gallery/development/Billboards.html @@ -356,10 +356,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Box Outline.html b/Apps/Sandcastle/gallery/development/Box Outline.html index 3df46a6a3770..f10388f9616a 100644 --- a/Apps/Sandcastle/gallery/development/Box Outline.html +++ b/Apps/Sandcastle/gallery/development/Box Outline.html @@ -71,10 +71,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Box.html b/Apps/Sandcastle/gallery/development/Box.html index 48458b1d2357..26a48728aca4 100644 --- a/Apps/Sandcastle/gallery/development/Box.html +++ b/Apps/Sandcastle/gallery/development/Box.html @@ -65,10 +65,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Circle Outline.html b/Apps/Sandcastle/gallery/development/Circle Outline.html index f1b2ba7f0b97..dc15b4c86689 100644 --- a/Apps/Sandcastle/gallery/development/Circle Outline.html +++ b/Apps/Sandcastle/gallery/development/Circle Outline.html @@ -88,10 +88,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Circle.html b/Apps/Sandcastle/gallery/development/Circle.html index 8978042de3ce..335978cee319 100644 --- a/Apps/Sandcastle/gallery/development/Circle.html +++ b/Apps/Sandcastle/gallery/development/Circle.html @@ -111,10 +111,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Clamp to Tileset.html b/Apps/Sandcastle/gallery/development/Clamp to Tileset.html index ccf40c6c0444..d0b2ee658a1a 100644 --- a/Apps/Sandcastle/gallery/development/Clamp to Tileset.html +++ b/Apps/Sandcastle/gallery/development/Clamp to Tileset.html @@ -48,7 +48,7 @@ var lastFrame = new Image(); lastFrame.width = canvas.width; lastFrame.height = canvas.height; -lastFrame.style = "position: absolute; left: 0; top: 0;"; +lastFrame.style = 'position: absolute; left: 0; top: 0;'; canvas.parentNode.appendChild(lastFrame); var samplePosition = Cesium.Cartesian3.fromDegrees(-76.360485, 34.949670, 0); @@ -144,10 +144,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Coplanar Polygon Outline.html b/Apps/Sandcastle/gallery/development/Coplanar Polygon Outline.html new file mode 100644 index 000000000000..25c8e3a20008 --- /dev/null +++ b/Apps/Sandcastle/gallery/development/Coplanar Polygon Outline.html @@ -0,0 +1,98 @@ + + + + + + + + + Cesium Demo + + + + + + +
+

Loading...

+
+ + + diff --git a/Apps/Sandcastle/gallery/development/Coplanar Polygon Outline.jpg b/Apps/Sandcastle/gallery/development/Coplanar Polygon Outline.jpg new file mode 100644 index 000000000000..b662e3707d30 Binary files /dev/null and b/Apps/Sandcastle/gallery/development/Coplanar Polygon Outline.jpg differ diff --git a/Apps/Sandcastle/gallery/development/Coplanar Polygon.html b/Apps/Sandcastle/gallery/development/Coplanar Polygon.html new file mode 100644 index 000000000000..6c874ba8c7ef --- /dev/null +++ b/Apps/Sandcastle/gallery/development/Coplanar Polygon.html @@ -0,0 +1,124 @@ + + + + + + + + + Cesium Demo + + + + + + +
+

Loading...

+
+ + + diff --git a/Apps/Sandcastle/gallery/development/Coplanar Polygon.jpg b/Apps/Sandcastle/gallery/development/Coplanar Polygon.jpg new file mode 100644 index 000000000000..a2a8fe3b8389 Binary files /dev/null and b/Apps/Sandcastle/gallery/development/Coplanar Polygon.jpg differ diff --git a/Apps/Sandcastle/gallery/development/Corridor Outline.html b/Apps/Sandcastle/gallery/development/Corridor Outline.html index 139df5208db0..b12256560429 100644 --- a/Apps/Sandcastle/gallery/development/Corridor Outline.html +++ b/Apps/Sandcastle/gallery/development/Corridor Outline.html @@ -83,10 +83,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Corridor.html b/Apps/Sandcastle/gallery/development/Corridor.html index 11d4456733ed..b16efdfbf14e 100644 --- a/Apps/Sandcastle/gallery/development/Corridor.html +++ b/Apps/Sandcastle/gallery/development/Corridor.html @@ -130,10 +130,10 @@ }));//Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Cylinder Outline.html b/Apps/Sandcastle/gallery/development/Cylinder Outline.html index a3efd7b8acc8..a1185f71823e 100644 --- a/Apps/Sandcastle/gallery/development/Cylinder Outline.html +++ b/Apps/Sandcastle/gallery/development/Cylinder Outline.html @@ -71,10 +71,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Cylinder.html b/Apps/Sandcastle/gallery/development/Cylinder.html index 916a26940caf..5256840bf7db 100644 --- a/Apps/Sandcastle/gallery/development/Cylinder.html +++ b/Apps/Sandcastle/gallery/development/Cylinder.html @@ -97,10 +97,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Display Conditions.html b/Apps/Sandcastle/gallery/development/Display Conditions.html index 86c2a6e13132..ad72260871ac 100644 --- a/Apps/Sandcastle/gallery/development/Display Conditions.html +++ b/Apps/Sandcastle/gallery/development/Display Conditions.html @@ -98,10 +98,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Ellipse Outline.html b/Apps/Sandcastle/gallery/development/Ellipse Outline.html index 5600e8e191fa..160b39f52b33 100644 --- a/Apps/Sandcastle/gallery/development/Ellipse Outline.html +++ b/Apps/Sandcastle/gallery/development/Ellipse Outline.html @@ -84,10 +84,10 @@ }));//Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Ellipse.html b/Apps/Sandcastle/gallery/development/Ellipse.html index 551104826d39..373b752a81c4 100644 --- a/Apps/Sandcastle/gallery/development/Ellipse.html +++ b/Apps/Sandcastle/gallery/development/Ellipse.html @@ -105,10 +105,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Ellipsoid Outline.html b/Apps/Sandcastle/gallery/development/Ellipsoid Outline.html index 7a326ce80bec..c6dbb11036ff 100644 --- a/Apps/Sandcastle/gallery/development/Ellipsoid Outline.html +++ b/Apps/Sandcastle/gallery/development/Ellipsoid Outline.html @@ -68,10 +68,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Ellipsoid Surface.html b/Apps/Sandcastle/gallery/development/Ellipsoid Surface.html index fb9ca2eb1ac9..7bd5d2f23c60 100644 --- a/Apps/Sandcastle/gallery/development/Ellipsoid Surface.html +++ b/Apps/Sandcastle/gallery/development/Ellipsoid Surface.html @@ -88,10 +88,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Ellipsoid.html b/Apps/Sandcastle/gallery/development/Ellipsoid.html index e571d0829c89..6f56e3256763 100644 --- a/Apps/Sandcastle/gallery/development/Ellipsoid.html +++ b/Apps/Sandcastle/gallery/development/Ellipsoid.html @@ -67,10 +67,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Fog.html b/Apps/Sandcastle/gallery/development/Fog.html index caf77700a565..256e2d631706 100644 --- a/Apps/Sandcastle/gallery/development/Fog.html +++ b/Apps/Sandcastle/gallery/development/Fog.html @@ -84,7 +84,7 @@ viewModel.density = viewer.scene.fog.density; viewModel.sse = viewer.scene.fog.screenSpaceErrorFactor; -Sandcastle.addToolbarButton("Horizon high altitude", function() { +Sandcastle.addToolbarButton('Horizon high altitude', function() { viewer.camera.setView({ destination: new Cesium.Cartesian3(-2467730.5740817646, -4390507.315824514, 3906155.113316938), orientation: { @@ -94,7 +94,7 @@ }); }); -Sandcastle.addToolbarButton("Horizon low altitude", function() { +Sandcastle.addToolbarButton('Horizon low altitude', function() { viewer.camera.setView({ destination : new Cesium.Cartesian3(-734001.9511656855, -4214090.596769834, 4715898.125886317), orientation : { @@ -106,17 +106,17 @@ viewer.scene.globe._surface._debug.enableDebugOutput = true; -Sandcastle.addToolbarButton("Snap", function() { - var container = document.getElementById("cesiumContainer"); +Sandcastle.addToolbarButton('Snap', function() { + var container = document.getElementById('cesiumContainer'); var tmpH = container.style.height; var tmpW = container.style.width; - container.style.height = "600px"; - container.style.width = "800px"; + container.style.height = '600px'; + container.style.width = '800px'; viewer.resize(); viewer.render(); - window.open(viewer.canvas.toDataURL("image/png")); + window.open(viewer.canvas.toDataURL('image/png')); container.style.height = tmpH; container.style.width = tmpW; viewer.resize(); @@ -126,10 +126,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Frustum.html b/Apps/Sandcastle/gallery/development/Frustum.html index ff24c1ff323a..d4f53ff4662c 100644 --- a/Apps/Sandcastle/gallery/development/Frustum.html +++ b/Apps/Sandcastle/gallery/development/Frustum.html @@ -91,10 +91,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { -require(["Cesium"], startup); +} else if (typeof require === 'function') { +require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Geometry Offset Attribute.html b/Apps/Sandcastle/gallery/development/Geometry Offset Attribute.html index 0f367c0a92d5..cf9094ec6b71 100644 --- a/Apps/Sandcastle/gallery/development/Geometry Offset Attribute.html +++ b/Apps/Sandcastle/gallery/development/Geometry Offset Attribute.html @@ -10,7 +10,7 @@ diff --git a/Apps/Sandcastle/gallery/development/Geometry and Appearances.html b/Apps/Sandcastle/gallery/development/Geometry and Appearances.html index 70eff33f1e86..45627c21e389 100644 --- a/Apps/Sandcastle/gallery/development/Geometry and Appearances.html +++ b/Apps/Sandcastle/gallery/development/Geometry and Appearances.html @@ -986,10 +986,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Ground Polyline Material.html b/Apps/Sandcastle/gallery/development/Ground Polyline Material.html index ee5c8a489f78..a190ec437357 100644 --- a/Apps/Sandcastle/gallery/development/Ground Polyline Material.html +++ b/Apps/Sandcastle/gallery/development/Ground Polyline Material.html @@ -90,10 +90,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Ground Primitive Materials.html b/Apps/Sandcastle/gallery/development/Ground Primitive Materials.html index 53990f9fc3b7..0b6ba374679c 100644 --- a/Apps/Sandcastle/gallery/development/Ground Primitive Materials.html +++ b/Apps/Sandcastle/gallery/development/Ground Primitive Materials.html @@ -10,7 +10,7 @@ diff --git a/Apps/Sandcastle/gallery/development/Ground Primitive.html b/Apps/Sandcastle/gallery/development/Ground Primitive.html index 8b9c7e238314..7406c23b0225 100644 --- a/Apps/Sandcastle/gallery/development/Ground Primitive.html +++ b/Apps/Sandcastle/gallery/development/Ground Primitive.html @@ -339,10 +339,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Labels.html b/Apps/Sandcastle/gallery/development/Labels.html index d5ab916b0955..e05299362c3b 100644 --- a/Apps/Sandcastle/gallery/development/Labels.html +++ b/Apps/Sandcastle/gallery/development/Labels.html @@ -183,10 +183,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Many Clipping Planes.html b/Apps/Sandcastle/gallery/development/Many Clipping Planes.html index c6d28dfa42e8..a60855a39bfb 100644 --- a/Apps/Sandcastle/gallery/development/Many Clipping Planes.html +++ b/Apps/Sandcastle/gallery/development/Many Clipping Planes.html @@ -10,7 +10,7 @@ diff --git a/Apps/Sandcastle/gallery/development/Material.html b/Apps/Sandcastle/gallery/development/Material.html index 48f156e7ba31..ddebac403654 100644 --- a/Apps/Sandcastle/gallery/development/Material.html +++ b/Apps/Sandcastle/gallery/development/Material.html @@ -66,10 +66,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Multiple Shadows.html b/Apps/Sandcastle/gallery/development/Multiple Shadows.html index 5e0eacfbe3bc..35bf6f7a7c8e 100644 --- a/Apps/Sandcastle/gallery/development/Multiple Shadows.html +++ b/Apps/Sandcastle/gallery/development/Multiple Shadows.html @@ -117,10 +117,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } - if (typeof Cesium !== "undefined") { + if (typeof Cesium !== 'undefined') { startup(Cesium); - } else if (typeof require === "function") { - require(["Cesium"], startup); + } else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Per Instance Color.html b/Apps/Sandcastle/gallery/development/Per Instance Color.html index 0e431eca773b..b3df93c59ef1 100644 --- a/Apps/Sandcastle/gallery/development/Per Instance Color.html +++ b/Apps/Sandcastle/gallery/development/Per Instance Color.html @@ -51,10 +51,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Picking.html b/Apps/Sandcastle/gallery/development/Picking.html index 83e65fcef17f..e65a0c7bcd12 100644 --- a/Apps/Sandcastle/gallery/development/Picking.html +++ b/Apps/Sandcastle/gallery/development/Picking.html @@ -487,10 +487,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/PointPrimitives.html b/Apps/Sandcastle/gallery/development/PointPrimitives.html index ab53581644fe..6d0ef8b6648e 100644 --- a/Apps/Sandcastle/gallery/development/PointPrimitives.html +++ b/Apps/Sandcastle/gallery/development/PointPrimitives.html @@ -231,10 +231,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Polygon Outline.html b/Apps/Sandcastle/gallery/development/Polygon Outline.html index 1beca252239c..a7d46bdfdd8f 100644 --- a/Apps/Sandcastle/gallery/development/Polygon Outline.html +++ b/Apps/Sandcastle/gallery/development/Polygon Outline.html @@ -112,10 +112,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Polygon.html b/Apps/Sandcastle/gallery/development/Polygon.html index d487229cb8cd..aade59213582 100644 --- a/Apps/Sandcastle/gallery/development/Polygon.html +++ b/Apps/Sandcastle/gallery/development/Polygon.html @@ -157,10 +157,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Polyline Color.html b/Apps/Sandcastle/gallery/development/Polyline Color.html index d4333715684d..dc6d6f76deec 100644 --- a/Apps/Sandcastle/gallery/development/Polyline Color.html +++ b/Apps/Sandcastle/gallery/development/Polyline Color.html @@ -78,10 +78,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Polyline Material.html b/Apps/Sandcastle/gallery/development/Polyline Material.html index d6fcd1ee858d..e89350f2631a 100644 --- a/Apps/Sandcastle/gallery/development/Polyline Material.html +++ b/Apps/Sandcastle/gallery/development/Polyline Material.html @@ -83,10 +83,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Polyline Volume Outline.html b/Apps/Sandcastle/gallery/development/Polyline Volume Outline.html index 2056b8bfc230..af27afd7c099 100644 --- a/Apps/Sandcastle/gallery/development/Polyline Volume Outline.html +++ b/Apps/Sandcastle/gallery/development/Polyline Volume Outline.html @@ -100,10 +100,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Polyline Volume.html b/Apps/Sandcastle/gallery/development/Polyline Volume.html index b1d6144160f5..5ed5caec880a 100644 --- a/Apps/Sandcastle/gallery/development/Polyline Volume.html +++ b/Apps/Sandcastle/gallery/development/Polyline Volume.html @@ -129,10 +129,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Polyline.html b/Apps/Sandcastle/gallery/development/Polyline.html index 9477ad0ad4c3..e6f13782a0d0 100644 --- a/Apps/Sandcastle/gallery/development/Polyline.html +++ b/Apps/Sandcastle/gallery/development/Polyline.html @@ -75,10 +75,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Polylines On Terrain.html b/Apps/Sandcastle/gallery/development/Polylines On Terrain.html index 714121e15252..d2ba8f6624a9 100644 --- a/Apps/Sandcastle/gallery/development/Polylines On Terrain.html +++ b/Apps/Sandcastle/gallery/development/Polylines On Terrain.html @@ -290,10 +290,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Polylines.html b/Apps/Sandcastle/gallery/development/Polylines.html index 8f55cb627d88..2f40bfaebf59 100644 --- a/Apps/Sandcastle/gallery/development/Polylines.html +++ b/Apps/Sandcastle/gallery/development/Polylines.html @@ -131,10 +131,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Rectangle Outline.html b/Apps/Sandcastle/gallery/development/Rectangle Outline.html index 39c944414c62..e0d1493cc055 100644 --- a/Apps/Sandcastle/gallery/development/Rectangle Outline.html +++ b/Apps/Sandcastle/gallery/development/Rectangle Outline.html @@ -56,10 +56,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Rectangle.html b/Apps/Sandcastle/gallery/development/Rectangle.html index fc56cc4b6539..66fce97ca5c4 100644 --- a/Apps/Sandcastle/gallery/development/Rectangle.html +++ b/Apps/Sandcastle/gallery/development/Rectangle.html @@ -71,10 +71,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Shadows.html b/Apps/Sandcastle/gallery/development/Shadows.html index 50c6265ce0ac..0c05f58107b5 100644 --- a/Apps/Sandcastle/gallery/development/Shadows.html +++ b/Apps/Sandcastle/gallery/development/Shadows.html @@ -742,10 +742,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Simple Polyline.html b/Apps/Sandcastle/gallery/development/Simple Polyline.html index b4fe4afcb01e..b37588a1061e 100644 --- a/Apps/Sandcastle/gallery/development/Simple Polyline.html +++ b/Apps/Sandcastle/gallery/development/Simple Polyline.html @@ -104,10 +104,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Sphere Outline.html b/Apps/Sandcastle/gallery/development/Sphere Outline.html index 85a04e4718bf..dc0d59cff67d 100644 --- a/Apps/Sandcastle/gallery/development/Sphere Outline.html +++ b/Apps/Sandcastle/gallery/development/Sphere Outline.html @@ -67,10 +67,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Sphere.html b/Apps/Sandcastle/gallery/development/Sphere.html index 63e2e569b26f..4c2f37d92f0e 100644 --- a/Apps/Sandcastle/gallery/development/Sphere.html +++ b/Apps/Sandcastle/gallery/development/Sphere.html @@ -67,10 +67,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Terrain Entity Batching.html b/Apps/Sandcastle/gallery/development/Terrain Entity Batching.html index b9f0a5998ae1..86e3b8f3d041 100644 --- a/Apps/Sandcastle/gallery/development/Terrain Entity Batching.html +++ b/Apps/Sandcastle/gallery/development/Terrain Entity Batching.html @@ -10,7 +10,7 @@ diff --git a/Apps/Sandcastle/gallery/development/Volumes.html b/Apps/Sandcastle/gallery/development/Volumes.html index 8b101f1dcc3f..c0dbd56edbe4 100644 --- a/Apps/Sandcastle/gallery/development/Volumes.html +++ b/Apps/Sandcastle/gallery/development/Volumes.html @@ -54,10 +54,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Wall Outline.html b/Apps/Sandcastle/gallery/development/Wall Outline.html index 39b646096277..b7b6206785fc 100644 --- a/Apps/Sandcastle/gallery/development/Wall Outline.html +++ b/Apps/Sandcastle/gallery/development/Wall Outline.html @@ -58,10 +58,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/gallery/development/Wall.html b/Apps/Sandcastle/gallery/development/Wall.html index d20e8d26cfa3..23e16e9caa5e 100644 --- a/Apps/Sandcastle/gallery/development/Wall.html +++ b/Apps/Sandcastle/gallery/development/Wall.html @@ -113,10 +113,10 @@ //Sandcastle_End Sandcastle.finishedLoading(); } -if (typeof Cesium !== "undefined") { +if (typeof Cesium !== 'undefined') { startup(Cesium); -} else if (typeof require === "function") { - require(["Cesium"], startup); +} else if (typeof require === 'function') { + require(['Cesium'], startup); } diff --git a/Apps/Sandcastle/templates/bucket-requirejs.html b/Apps/Sandcastle/templates/bucket-requirejs.html index 75c88309f303..3d28bf9dd37b 100644 --- a/Apps/Sandcastle/templates/bucket-requirejs.html +++ b/Apps/Sandcastle/templates/bucket-requirejs.html @@ -8,7 +8,7 @@