mirror of
https://github.com/openglobus/openglobus.git
synced 2025-12-08 19:25:27 +00:00
28 lines
563 B
JavaScript
28 lines
563 B
JavaScript
import {
|
|
Globe,
|
|
LonLat,
|
|
OpenStreetMap,
|
|
scene,
|
|
control
|
|
} from "../../lib/og.es.js";
|
|
|
|
const skybox = new scene.SkyBox({
|
|
px: "./px.webp",
|
|
nx: "./nx.webp",
|
|
py: "./py.webp",
|
|
ny: "./ny.webp",
|
|
pz: "./pz.webp",
|
|
nz: "./nz.webp"
|
|
});
|
|
|
|
const globus = new Globe({
|
|
target: "earth",
|
|
name: "Earth",
|
|
layers: [new OpenStreetMap()],
|
|
atmosphereEnabled: true,
|
|
skybox: skybox,
|
|
controls: [
|
|
new control.MouseNavigation({ minSlope: 0.35 }),
|
|
new control.KeyboardNavigation({ autoActivate: true })
|
|
]
|
|
}) |