Commit c5cf1190c84429694087a3c2f6f9b4d66506b4a2

Authored by Edmar Moretti
1 parent 9087fa1f

Inclusao de um novo layer no fundo do mapa

interface/black_ol.htm
... ... @@ -162,7 +162,19 @@
162 162 i3GEO.janela.TRANSICAOSUAVE = true;
163 163  
164 164 OpenLayers.ImgPath = "../pacotes/openlayers/img/";
  165 + //desliga a camada com o mapa mundi
  166 + i3GEO.configura.mashuppar = "&desligar=mundo";
  167 + //se vc nao quer o fundo, mude visibility true para false
165 168 (function() {
  169 + var eng = new OpenLayers.Layer.ArcGIS93Rest(
  170 + "ESRI National Geographic",
  171 + "http://server.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer/export",
  172 + {
  173 + format : "jpeg"
  174 + }, {
  175 + isBaseLayer : true,
  176 + visibility : true
  177 + });
166 178 var oce = new OpenLayers.Layer.ArcGIS93Rest(
167 179 "ESRI Ocean Basemap",
168 180 "http://server.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer/export",
... ... @@ -213,7 +225,7 @@
213 225 visibility : false
214 226 });
215 227  
216   - i3GEO.Interface.openlayers.LAYERSADICIONAIS = [ oce, ims, wsm, tms,
  228 + i3GEO.Interface.openlayers.LAYERSADICIONAIS = [ eng, oce, ims, wsm, tms,
217 229 bra ];
218 230 })();
219 231 i3GEO.inicia();
... ...
interface/openlayersdebug.htm
... ... @@ -15,8 +15,9 @@
15 15 padding-right: 4px;
16 16 top: 2em;
17 17 }
  18 +
18 19 .ol-zoomslider {
19   - top : 6em;
  20 + top: 6em;
20 21 }
21 22 </style>
22 23 </head>
... ... @@ -111,7 +112,7 @@
111 112 <div id='guia1obj' style='display: none;'>
112 113 <!-- Esta div acrescenta a op&ccedil;&atilde;o de busca r&aacute;pida, caso vc queira coloc&aacute;-la em um lugar espec&iacute;fico -->
113 114 <div style='left: 5px; top: 10px; width: 150px;' id=buscaRapida></div>
114   - <!-- Esta div acrescenta a lista de propriedades do mapa
  115 + <!-- Esta div acrescenta a lista de propriedades do mapa
115 116 <div id=listaPropriedades style='top: 15px;'></div>-->
116 117 <!-- Esta div acrescenta a lista de de camadas do tipo 'baselayers' espec&iacute;ficas da interface Openlayers. Veja tamb&eacute;m a op&ccedil;&atilde;o i3GEO.Interface.openlayers.GADGETS.LayerSwitcher -->
117 118 <!--<div id=listaLayersBase style='top: 15px;'></div>-->
... ... @@ -179,11 +180,22 @@
179 180 //indica se a opcao de navegacao nas pastas do servidor sera ativada
180 181 i3GEO.arvoreDeTemas.OPCOESADICIONAIS.navegacaoDir = true;
181 182 i3GEO.janela.TRANSICAOSUAVE = true;
182   -
  183 + //desliga a camada com o mapa mundi
  184 + i3GEO.configura.mashuppar = "&desligar=mundo";
183 185 (function() {
  186 +
  187 + var eng = new ol.layer.Tile({
  188 + title : "ESRI National Geographic",
  189 + visible : true,
  190 + isBaseLayer : true,
  191 + name : "eng",
  192 + source : new ol.source.TileArcGISRest({
  193 + url : "http://server.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer",
  194 + })
  195 + });
184 196 var bou = new ol.layer.Tile({
185 197 title : "Relevo",
186   - visible : true,
  198 + visible : false,
187 199 isBaseLayer : true,
188 200 preload : 0,
189 201 name : "bou",
... ... @@ -252,7 +264,7 @@
252 264 })
253 265 });
254 266 i3GEO.Interface.openlayers.LAYERSADICIONAIS = [
255   - bou, oce, ims, wsm, bra, tms
  267 + eng, bou, oce, ims, wsm, bra, tms
256 268 ];
257 269 })();
258 270 i3GEO.inicia();
... ...
pacotes/cesium/teste.html
... ... @@ -39,7 +39,8 @@
39 39 }
40 40 );
41 41 // Add a WMS imagery layer
42   - var imageryLayers = viewer.imageryLayers;
  42 +
  43 + var imageryLayers = viewer.imageryLayers;
43 44 imageryLayers.addImageryProvider(new Cesium.WebMapServiceImageryProvider({
44 45 url : 'http://localhost/i3geo/ogc.php',
45 46 layers : '_lbiomashp',
... ... @@ -49,7 +50,7 @@
49 50 }
50 51 }));
51 52  
52   - //viewer.dataSources.add(Cesium.KmlDataSource.load('http://localhost/ms_tmp/tme1431562949.kmz'))
  53 + //viewer.dataSources.add(Cesium.KmlDataSource.load('http://localhost/i3geo/aplicmap/dados/teste3d.kmz'))
53 54 </script>
54 55 </body>
55 56 </html>
... ...