Commit 380121aaa9157fb100db0137dcc3257107004856
1 parent
cad9f4f9
Exists in
master
and in
7 other branches
Inclusão do Cesium em pacotes
Showing
3 changed files
with
65 additions
and
26 deletions
Show diff stats
pacotes/cesium/Apps/HelloWorld.html
| ... | ... | @@ -1,25 +0,0 @@ |
| 1 | -<!DOCTYPE html> | |
| 2 | -<html lang="en"> | |
| 3 | -<head> | |
| 4 | - <!-- Use correct character set. --> | |
| 5 | - <meta charset="utf-8"> | |
| 6 | - <!-- Tell IE to use the latest, best version (or Chrome Frame if pre-IE11). --> | |
| 7 | - <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> | |
| 8 | - <!-- Make the application on mobile take up the full browser screen and disable user scaling. --> | |
| 9 | - <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"> | |
| 10 | - <title>Hello World!</title> | |
| 11 | - <script src="../Build/Cesium/Cesium.js"></script> | |
| 12 | - <style> | |
| 13 | - @import url(../Build/Cesium/Widgets/widgets.css); | |
| 14 | - html, body, #cesiumContainer { | |
| 15 | - width: 100%; height: 100%; margin: 0; padding: 0; overflow: hidden; | |
| 16 | - } | |
| 17 | - </style> | |
| 18 | -</head> | |
| 19 | -<body> | |
| 20 | - <div id="cesiumContainer"></div> | |
| 21 | - <script> | |
| 22 | - var viewer = new Cesium.Viewer('cesiumContainer'); | |
| 23 | - </script> | |
| 24 | -</body> | |
| 25 | -</html> | |
| 26 | 0 | \ No newline at end of file |
pacotes/cesium/Build/Apps/CesiumViewer/index.html
| ... | ... | @@ -10,10 +10,26 @@ |
| 10 | 10 | <title>Cesium Viewer</title> |
| 11 | 11 | <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" /> |
| 12 | 12 | <link rel="stylesheet" href="CesiumViewer.css" media="screen"> |
| 13 | + | |
| 13 | 14 | <script data-main="CesiumViewerStartup" src="./require.js"></script> |
| 15 | + | |
| 14 | 16 | </head> |
| 15 | 17 | <body style="background: #000;"> |
| 16 | 18 | <div id="cesiumContainer" class="fullWindow"></div> |
| 17 | 19 | <div id="loadingIndicator" class="loadingIndicator"></div> |
| 20 | + <script> | |
| 21 | + | |
| 22 | +var widget = new Cesium.CesiumWidget('cesiumContainer'); | |
| 23 | +var url='http://localhost/i3geo/ogc.php'; //Geoserver URL | |
| 24 | +var layers = widget.scene.globe.imageryLayers; | |
| 25 | + layers.removeAll(); | |
| 26 | + layers.addImageryProvider(new Cesium.WebMapServiceImageryProvider({ | |
| 27 | + url : url, | |
| 28 | + layers: '_llocali'// Here just give layer name | |
| 29 | + })); | |
| 30 | + //cesiumWidget.dataSources.add(czmlSource); | |
| 31 | + | |
| 32 | +//Sandcastle.finishedLoading(); | |
| 33 | +</script> | |
| 18 | 34 | </body> |
| 19 | -</html> | |
| 20 | 35 | \ No newline at end of file |
| 36 | +</html> | ... | ... |
| ... | ... | @@ -0,0 +1,48 @@ |
| 1 | +<!DOCTYPE html> | |
| 2 | +<html lang="en"> | |
| 3 | + <head> | |
| 4 | + <title>Hello World!</title> | |
| 5 | + <script src="Build/Cesium/Cesium.js"></script> | |
| 6 | + <style> | |
| 7 | + @import url(Build/Cesium/Widgets/widgets.css); | |
| 8 | + #cesiumContainer { | |
| 9 | + position: absolute; | |
| 10 | + top: 0; | |
| 11 | + left: 0; | |
| 12 | + height: 100%; | |
| 13 | + width: 100%; | |
| 14 | + margin: 0; | |
| 15 | + overflow: hidden; | |
| 16 | + padding: 0; | |
| 17 | + font-family: sans-serif; | |
| 18 | + } | |
| 19 | + | |
| 20 | + html { | |
| 21 | + height: 100%; | |
| 22 | + } | |
| 23 | + | |
| 24 | + body { | |
| 25 | + padding: 0; | |
| 26 | + margin: 0; | |
| 27 | + overflow: hidden; | |
| 28 | + height: 100%; | |
| 29 | + } | |
| 30 | + </style> | |
| 31 | + </head> | |
| 32 | +<body> | |
| 33 | + <div id="cesiumContainer"></div> | |
| 34 | + <script> | |
| 35 | + var viewer = new Cesium.Viewer('cesiumContainer'); | |
| 36 | + // Add a WMS imagery layer | |
| 37 | +var imageryLayers = viewer.imageryLayers; | |
| 38 | +imageryLayers.addImageryProvider(new Cesium.WebMapServiceImageryProvider({ | |
| 39 | + url : 'http://localhost/i3geo/ogc.php', | |
| 40 | + layers : '_lbiomashp', | |
| 41 | + parameters : { | |
| 42 | + transparent : true, | |
| 43 | + format : 'image/png' | |
| 44 | + } | |
| 45 | +})); | |
| 46 | + </script> | |
| 47 | +</body> | |
| 48 | +</html> | ... | ... |