Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
fredj committed Mar 19, 2024
1 parent 95f2ee9 commit 350fabe
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 73 deletions.
71 changes: 71 additions & 0 deletions cesium-compass.74cec8ad.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions cesium-compass.74cec8ad.js.map

Large diffs are not rendered by default.

71 changes: 0 additions & 71 deletions cesium-compass.a5963fd7.js

This file was deleted.

1 change: 0 additions & 1 deletion cesium-compass.a5963fd7.js.map

This file was deleted.

2 changes: 1 addition & 1 deletion cesium-compass.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><script src="https://cesium.com/downloads/cesiumjs/releases/1.114/Build/Cesium/Cesium.js"></script><link href="https://cesium.com/downloads/cesiumjs/releases/1.114/Build/Cesium/Widgets/widgets.css" rel="stylesheet"><script src="cesium-compass.a5963fd7.js" type="module"></script><style>html,body,#cesiumContainer{height:100%;margin:0}cesium-compass{--cesium-compass-stroke-color:#0009;--cesium-compass-fill-color:#e0e1e2;position:absolute;top:30px;right:30px}</style></head><body> <div id="cesiumContainer"></div> <cesium-compass></cesium-compass> <script type="module">var e=globalThis,r={},i={},n=e.parcelRequire5532;null==n&&((n=function(e){if(e in r)return r[e].exports;if(e in i){var n=i[e];delete i[e];var t={id:e,exports:{}};return r[e]=t,n.call(t.exports,t,t.exports),t.exports}var s=Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}).register=function(e,r){i[e]=r},e.parcelRequire5532=n),(0,n.register)("hLMsx",function(e,r){Object.defineProperty(e.exports,"createViewer",{get:()=>n,set:void 0,enumerable:!0,configurable:!0});let i=Cesium.Rectangle.fromDegrees(4,45,12,48);async function n(e){Object.assign(Cesium.RequestScheduler.requestsByServer,{"wmts.geo.admin.ch:443":28,"download.swissgeol.ch:443":28,"tile.openstreetmap.org:443":28});let r=new Cesium.Viewer(e,{timeline:!1,navigationHelpButton:!1,animation:!1,baseLayerPicker:!1,sceneModePicker:!1,geocoder:!1,homeButton:!1,fullscreenButton:!1,scene3DOnly:!0,baseLayer:new Cesium.ImageryLayer(new Cesium.UrlTemplateImageryProvider({url:"https://wmts.geo.admin.ch/1.0.0/ch.swisstopo.swissimage/default/current/3857/{z}/{x}/{y}.jpeg",rectangle:i})),terrainProvider:await Cesium.CesiumTerrainProvider.fromUrl("https://download.swissgeol.ch/cli_terrain/ch-2m/")});return r.scene.highDynamicRange=!0,r.scene.globe.showGroundAtmosphere=!0,r.scene.globe.enableLighting=!0,r.scene.globe.preloadSiblings=!0,r.scene.fog.density=4e-4,r.scene.fog.minimumBrightness=.3,r.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(7.863775,46.686447,1200),orientation:{heading:Cesium.Math.toRadians(25),pitch:0},duration:0}),r}}),(0,n("hLMsx").createViewer)("cesiumContainer").then(e=>{let r=document.querySelector("cesium-compass");r.scene=e.scene,r.clock=e.clock});</script> </body></html>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><script src="https://cesium.com/downloads/cesiumjs/releases/1.114/Build/Cesium/Cesium.js"></script><link href="https://cesium.com/downloads/cesiumjs/releases/1.114/Build/Cesium/Widgets/widgets.css" rel="stylesheet"><script src="cesium-compass.74cec8ad.js" type="module"></script><style>html,body,#cesiumContainer{height:100%;margin:0}cesium-compass{--cesium-compass-stroke-color:#0009;--cesium-compass-fill-color:#e0e1e2;position:absolute;top:30px;right:30px}</style></head><body> <div id="cesiumContainer"></div> <cesium-compass></cesium-compass> <script type="module">var e=globalThis,r={},i={},n=e.parcelRequire5532;null==n&&((n=function(e){if(e in r)return r[e].exports;if(e in i){var n=i[e];delete i[e];var t={id:e,exports:{}};return r[e]=t,n.call(t.exports,t,t.exports),t.exports}var s=Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}).register=function(e,r){i[e]=r},e.parcelRequire5532=n),(0,n.register)("hLMsx",function(e,r){Object.defineProperty(e.exports,"createViewer",{get:()=>n,set:void 0,enumerable:!0,configurable:!0});let i=Cesium.Rectangle.fromDegrees(4,45,12,48);async function n(e){Object.assign(Cesium.RequestScheduler.requestsByServer,{"wmts.geo.admin.ch:443":28,"download.swissgeol.ch:443":28,"tile.openstreetmap.org:443":28});let r=new Cesium.Viewer(e,{timeline:!1,navigationHelpButton:!1,animation:!1,baseLayerPicker:!1,sceneModePicker:!1,geocoder:!1,homeButton:!1,fullscreenButton:!1,scene3DOnly:!0,baseLayer:new Cesium.ImageryLayer(new Cesium.UrlTemplateImageryProvider({url:"https://wmts.geo.admin.ch/1.0.0/ch.swisstopo.swissimage/default/current/3857/{z}/{x}/{y}.jpeg",rectangle:i})),terrainProvider:await Cesium.CesiumTerrainProvider.fromUrl("https://download.swissgeol.ch/cli_terrain/ch-2m/")});return r.scene.highDynamicRange=!0,r.scene.globe.showGroundAtmosphere=!0,r.scene.globe.enableLighting=!0,r.scene.globe.preloadSiblings=!0,r.scene.fog.density=4e-4,r.scene.fog.minimumBrightness=.3,r.camera.flyTo({destination:Cesium.Cartesian3.fromDegrees(7.863775,46.686447,1200),orientation:{heading:Cesium.Math.toRadians(25),pitch:0},duration:0}),r}}),(0,n("hLMsx").createViewer)("cesiumContainer").then(e=>{let r=document.querySelector("cesium-compass");r.scene=e.scene,r.clock=e.clock});</script> </body></html>

0 comments on commit 350fabe

Please sign in to comment.