Skip to content

Commit

Permalink
Changed all example to the new GlobusRgbTerrain
Browse files Browse the repository at this point in the history
  • Loading branch information
Zemledelec committed Aug 12, 2024
1 parent 7d041ac commit 49c9fca
Show file tree
Hide file tree
Showing 44 changed files with 86 additions and 86 deletions.
4 changes: 2 additions & 2 deletions examples/baseLayers/baseLayers.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import {
Globe,
GlobusTerrain,
GlobusRgbTerrain,
XYZ,
utils,
OpenStreetMap,
Expand All @@ -38,7 +38,7 @@
let globus = new Globe({
target: "globus",
name: "Earth",
terrain: new GlobusTerrain(),
terrain: new GlobusRgbTerrain(),
layers: [osm, sat],
resourcesSrc: "../../external/og/lib/@openglobus/res",
fontsSrc: "../../external/og/lib/@openglobus/res/fonts"
Expand Down
4 changes: 2 additions & 2 deletions examples/billboards/billboards.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
EntityCollection,
LonLat,
Globe,
GlobusTerrain,
GlobusRgbTerrain,
Bing
} from "../../external/og/lib/@openglobus/og.esm.js";

Expand Down Expand Up @@ -66,7 +66,7 @@
let globus = new Globe({
target: "globus",
name: "Earth",
terrain: new GlobusTerrain(),
terrain: new GlobusRgbTerrain(),
layers: [sat],
atmosphereEnabled: true,
resourcesSrc: "../../external/og/lib/@openglobus/res",
Expand Down
4 changes: 2 additions & 2 deletions examples/billboardsDragging/billboardsDragging.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
Vec2,
Globe,
Vector,
GlobusTerrain,
GlobusRgbTerrain,
OpenStreetMap
} from "../../external/og/lib/@openglobus/og.esm.js";

Expand Down Expand Up @@ -76,7 +76,7 @@
let globe = new Globe({
target: "earth",
name: "Earth",
terrain: new GlobusTerrain(),
terrain: new GlobusRgbTerrain(),
layers: [osm, pointLayer],
resourcesSrc: "../../external/og/lib/@openglobus/res",
fontsSrc: "../../external/og/lib/@openglobus/res/fonts"
Expand Down
4 changes: 2 additions & 2 deletions examples/billboardsOnTheGround/billboardsOnTheGround.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
Globe,
wgs84,
Vector,
GlobusTerrain,
GlobusRgbTerrain,
OpenStreetMap,
LonLat,
math
Expand Down Expand Up @@ -52,7 +52,7 @@
let globus = new Globe({
target: "globus",
name: "Earth",
terrain: new GlobusTerrain(),
terrain: new GlobusRgbTerrain(),
layers: [osm, pointLayer],
resourcesSrc: "../../external/og/lib/@openglobus/res",
fontsSrc: "../../external/og/lib/@openglobus/res/fonts"
Expand Down
4 changes: 2 additions & 2 deletions examples/cameraFly/cameraFly.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import {
Globe,
GlobusTerrain,
GlobusRgbTerrain,
XYZ,
LonLat,
Extent
Expand Down Expand Up @@ -57,7 +57,7 @@
let globus = new Globe({
target: "globus",
name: "Earth",
terrain: new GlobusTerrain(),
terrain: new GlobusRgbTerrain(),
layers: [osm],
resourcesSrc: "../../external/og/lib/@openglobus/res",
fontsSrc: "../../external/og/lib/@openglobus/res/fonts"
Expand Down
4 changes: 2 additions & 2 deletions examples/circlesOnTheGround/circlesOnTheGround.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import {
Entity,
Globe,
GlobusTerrain,
GlobusRgbTerrain,
XYZ,
Vector,
math,
Expand All @@ -41,7 +41,7 @@
const globe = new Globe({
target: "globus",
name: "Earth",
terrain: new GlobusTerrain(),
terrain: new GlobusRgbTerrain(),
layers: [osm, pointLayer],
resourcesSrc: "../../external/og/lib/@openglobus/res",
fontsSrc: "../../external/og/lib/@openglobus/res/fonts"
Expand Down
4 changes: 2 additions & 2 deletions examples/clocks/clocks.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
jd,
Clock,
Globe,
GlobusTerrain,
GlobusRgbTerrain,
XYZ
} from "../../external/og/lib/@openglobus/og.esm.js";

Expand Down Expand Up @@ -140,7 +140,7 @@
target: "globus",
name: "Earth",
layers: [osm],
terrain: new GlobusTerrain("OpenGlobus"),
terrain: new GlobusRgbTerrain("OpenGlobus"),
resourcesSrc: "../../external/og/lib/@openglobus/res",
fontsSrc: "../../external/og/lib/@openglobus/res/fonts"
});
Expand Down
4 changes: 2 additions & 2 deletions examples/customControl/customControl.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

import {
Globe,
GlobusTerrain,
GlobusRgbTerrain,
XYZ,
LonLat,
Vec3,
Expand Down Expand Up @@ -108,7 +108,7 @@
let globus = new Globe({
target: "globus",
name: "Earth",
terrain: new GlobusTerrain(),
terrain: new GlobusRgbTerrain(),
layers: [osm],
resourcesSrc: "../../external/og/lib/@openglobus/res",
fontsSrc: "../../external/og/lib/@openglobus/res/fonts"
Expand Down
4 changes: 2 additions & 2 deletions examples/disableLayerPicking/disableLayerPicking.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

import {
Globe,
GlobusTerrain,
GlobusRgbTerrain,
XYZ,
Vector,
} from "../../external/og/lib/@openglobus/og.esm.js";
Expand Down Expand Up @@ -81,7 +81,7 @@
var globus = new Globe({
target: "globus",
name: "Earth",
terrain: new GlobusTerrain(),
terrain: new GlobusRgbTerrain(),
layers: [sat, osm, vec],
resourcesSrc: "../../external/og/lib/@openglobus/res",
fontsSrc: "../../external/og/lib/@openglobus/res/fonts"
Expand Down
4 changes: 2 additions & 2 deletions examples/drawingControl/drawingControl.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
Globe,
Extent,
LonLat,
GlobusTerrain,
GlobusRgbTerrain,
control
} from "../../external/og/lib/@openglobus/og.esm.js";

Expand All @@ -39,7 +39,7 @@
target: "earth",
name: "Earth",
maxAltitude: 15000000,
terrain: new GlobusTerrain("19", {
terrain: new GlobusRgbTerrain("19", {
maxZoom: 14
}),
layers: [osm],
Expand Down
2 changes: 1 addition & 1 deletion examples/elevationProfile/elevationProfile.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<script type="module" id="og-sandbox-script">
import {
Globe,
GlobusTerrain,
GlobusRgbTerrain,
EmptyTerrain,
RgbTerrain,
Bing,
Expand Down
4 changes: 2 additions & 2 deletions examples/geoImage/geoImage.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

import {
Globe,
GlobusTerrain,
GlobusRgbTerrain,
GeoImage,
XYZ,
LonLat
Expand All @@ -38,7 +38,7 @@
let globus = new Globe({
target: "globus",
name: "Earth",
terrain: new GlobusTerrain(),
terrain: new GlobusRgbTerrain(),
layers: [osm, img],
resourcesSrc: "../../external/og/lib/@openglobus/res",
fontsSrc: "../../external/og/lib/@openglobus/res/fonts"
Expand Down
4 changes: 2 additions & 2 deletions examples/geoImageDragging/geoImageDragging.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

import {
Globe,
GlobusTerrain,
GlobusRgbTerrain,
GeoImage,
XYZ,
control
Expand All @@ -38,7 +38,7 @@
let globus = new Globe({
target: "globus",
name: "Earth",
terrain: new GlobusTerrain(),
terrain: new GlobusRgbTerrain(),
layers: [osm, img],
resourcesSrc: "../../external/og/lib/@openglobus/res",
fontsSrc: "../../external/og/lib/@openglobus/res/fonts"
Expand Down
4 changes: 2 additions & 2 deletions examples/geoObject/geoObject.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import {
Entity,
Globe,
GlobusTerrain,
GlobusRgbTerrain,
Bing,
Object3d,
LonLat,
Expand Down Expand Up @@ -46,7 +46,7 @@
target: "earth",
name: "Earth",
layers: [new Bing(), traffic],
terrain: new GlobusTerrain(),
terrain: new GlobusRgbTerrain(),
atmosphereEnabled: true,
frustums: [[20000, 20000000]], // Performance tweak in case we don't need to use close up views
minAltitude: 20000,
Expand Down
4 changes: 2 additions & 2 deletions examples/geoTexture2d/geoTexture2d.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@

import {
Globe,
GlobusTerrain,
GlobusRgbTerrain,
OpenStreetMap,
GeoTexture2d,
Framebuffer,
Expand All @@ -152,7 +152,7 @@
let globus = new Globe({
target: "globus",
name: "Earth",
terrain: new GlobusTerrain(),
terrain: new GlobusRgbTerrain(),
layers: [osm, geoTex],
resourcesSrc: "../../external/og/lib/@openglobus/res",
fontsSrc: "../../external/og/lib/@openglobus/res/fonts"
Expand Down
4 changes: 2 additions & 2 deletions examples/geoVideo/geoVideo.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import {
Globe,
GlobusTerrain,
GlobusRgbTerrain,
Bing,
GeoVideo,
} from "../../external/og/lib/@openglobus/og.esm.js";
Expand Down Expand Up @@ -60,7 +60,7 @@
let globus = new Globe({
target: "globus",
name: "Earth",
terrain: new GlobusTerrain(),
terrain: new GlobusRgbTerrain(),
layers: [sat, imergac, lv],
atmosphereEnabled: true,
resourcesSrc: "../../external/og/lib/@openglobus/res",
Expand Down
4 changes: 2 additions & 2 deletions examples/geoidModel/geoidModel.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@

import {
Globe,
GlobusTerrain,
GlobusRgbTerrain,
EmptyTerrain,
XYZ,
Geoid,
OpenStreetMap
} from "../../external/og/lib/@openglobus/og.esm.js";

class GeoidTerrain extends GlobusTerrain {
class GeoidTerrain extends GlobusRgbTerrain {
constructor(name, options) {
super(name, options = {});
this.equalizeVertices = true;
Expand Down
4 changes: 2 additions & 2 deletions examples/heightFactor/heightFactor.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

import {
Globe,
GlobusTerrain,
GlobusRgbTerrain,
XYZ
} from "../../external/og/lib/@openglobus/og.esm.js";

Expand All @@ -57,7 +57,7 @@
let globus = new Globe({
target: "globus",
name: "Earth",
terrain: new GlobusTerrain(),
terrain: new GlobusRgbTerrain(),
layers: [osm],
resourcesSrc: "../../external/og/lib/@openglobus/res",
fontsSrc: "../../external/og/lib/@openglobus/res/fonts"
Expand Down
4 changes: 2 additions & 2 deletions examples/kml/kml.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import {
KML,
Globe,
GlobusTerrain,
GlobusRgbTerrain,
XYZ
} from "../../external/og/lib/@openglobus/og.esm.js";

Expand All @@ -45,7 +45,7 @@

globus = new Globe({
target: 'globus',
terrain: new GlobusTerrain(),
terrain: new GlobusRgbTerrain(),
layers: [osm],
resourcesSrc: "../../external/og/lib/@openglobus/res",
fontsSrc: "../../external/og/lib/@openglobus/res/fonts"
Expand Down
4 changes: 2 additions & 2 deletions examples/layerAnimation/layerAnimation.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

import {
Globe,
GlobusTerrain,
GlobusRgbTerrain,
OpenStreetMap,
CanvasTiles,
control
Expand All @@ -48,7 +48,7 @@
let globus = new Globe({
target: "earth",
name: "Earth",
terrain: new GlobusTerrain(),
terrain: new GlobusRgbTerrain(),
layers: [osm1],
resourcesSrc: "../../external/og/lib/@openglobus/res",
fontsSrc: "../../external/og/lib/@openglobus/res/fonts"
Expand Down
4 changes: 2 additions & 2 deletions examples/layerFadingOpacity/layerFadingOpacity.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
Vector,
Entity,
Globe,
GlobusTerrain,
GlobusRgbTerrain,
XYZ
} from "../../external/og/lib/@openglobus/og.esm.js";

Expand Down Expand Up @@ -58,7 +58,7 @@
let globe = new Globe({
name: "Earth",
target: "earth",
terrain: new GlobusTerrain(),
terrain: new GlobusRgbTerrain(),
layers: [osm, townLabels, townMarkers],
sun: {
active: false
Expand Down
4 changes: 2 additions & 2 deletions examples/layerHeight/layerHeight.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import {
GeoImage,
Globe,
GlobusTerrain,
GlobusRgbTerrain,
XYZ
} from "../../external/og/lib/@openglobus/og.esm.js";

Expand Down Expand Up @@ -78,7 +78,7 @@
var globus = new Globe({
target: "globus",
name: "Earth",
terrain: new GlobusTerrain(),
terrain: new GlobusRgbTerrain(),
layers: [osm, osmRed, sat, img],
resourcesSrc: "../../external/og/lib/@openglobus/res",
fontsSrc: "../../external/og/lib/@openglobus/res/fonts"
Expand Down
Loading

0 comments on commit 49c9fca

Please sign in to comment.