Commit a87fa8cc5ef653740340d478a9c7d7212c307d49

Authored by Edmar Moretti
1 parent 12962390

Teste kmz com cesium

Showing 1 changed file with 18 additions and 12 deletions   Show diff stats
pacotes/cesium/teste.html
... ... @@ -32,19 +32,25 @@
32 32 <body>
33 33 <div id="cesiumContainer"></div>
34 34 <script>
35   - var viewer = new Cesium.Viewer('cesiumContainer');
  35 + var viewer = new Cesium.Viewer(
  36 + 'cesiumContainer',
  37 + {
  38 + timeline : false,
  39 + clock : false
  40 + }
  41 + );
36 42 // 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   -viewer.dataSources.add(Cesium.KmlDataSource.load('http://localhost/ms_tmp/tme1431562949.kmz'))
47   -//http://localhost/ms_tmp/tme1431562949.kmz
  43 + var imageryLayers = viewer.imageryLayers;
  44 + imageryLayers.addImageryProvider(new Cesium.WebMapServiceImageryProvider({
  45 + url : 'http://localhost/i3geo/ogc.php',
  46 + layers : '_lbiomashp',
  47 + parameters : {
  48 + transparent : true,
  49 + format : 'image/png'
  50 + }
  51 + }));
  52 +
  53 + //viewer.dataSources.add(Cesium.KmlDataSource.load('http://localhost/ms_tmp/tme1431562949.kmz'))
48 54 </script>
49 55 </body>
50 56 </html>
... ...