Commit c5cf1190c84429694087a3c2f6f9b4d66506b4a2
1 parent
9087fa1f
Exists in
master
and in
7 other branches
Inclusao de um novo layer no fundo do mapa
Showing
3 changed files
with
33 additions
and
8 deletions
Show diff stats
interface/black_ol.htm
| @@ -162,7 +162,19 @@ | @@ -162,7 +162,19 @@ | ||
| 162 | i3GEO.janela.TRANSICAOSUAVE = true; | 162 | i3GEO.janela.TRANSICAOSUAVE = true; |
| 163 | 163 | ||
| 164 | OpenLayers.ImgPath = "../pacotes/openlayers/img/"; | 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 | (function() { | 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 | var oce = new OpenLayers.Layer.ArcGIS93Rest( | 178 | var oce = new OpenLayers.Layer.ArcGIS93Rest( |
| 167 | "ESRI Ocean Basemap", | 179 | "ESRI Ocean Basemap", |
| 168 | "http://server.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer/export", | 180 | "http://server.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer/export", |
| @@ -213,7 +225,7 @@ | @@ -213,7 +225,7 @@ | ||
| 213 | visibility : false | 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 | bra ]; | 229 | bra ]; |
| 218 | })(); | 230 | })(); |
| 219 | i3GEO.inicia(); | 231 | i3GEO.inicia(); |
interface/openlayersdebug.htm
| @@ -15,8 +15,9 @@ | @@ -15,8 +15,9 @@ | ||
| 15 | padding-right: 4px; | 15 | padding-right: 4px; |
| 16 | top: 2em; | 16 | top: 2em; |
| 17 | } | 17 | } |
| 18 | + | ||
| 18 | .ol-zoomslider { | 19 | .ol-zoomslider { |
| 19 | - top : 6em; | 20 | + top: 6em; |
| 20 | } | 21 | } |
| 21 | </style> | 22 | </style> |
| 22 | </head> | 23 | </head> |
| @@ -111,7 +112,7 @@ | @@ -111,7 +112,7 @@ | ||
| 111 | <div id='guia1obj' style='display: none;'> | 112 | <div id='guia1obj' style='display: none;'> |
| 112 | <!-- Esta div acrescenta a opção de busca rápida, caso vc queira colocá-la em um lugar específico --> | 113 | <!-- Esta div acrescenta a opção de busca rápida, caso vc queira colocá-la em um lugar específico --> |
| 113 | <div style='left: 5px; top: 10px; width: 150px;' id=buscaRapida></div> | 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 | <div id=listaPropriedades style='top: 15px;'></div>--> | 116 | <div id=listaPropriedades style='top: 15px;'></div>--> |
| 116 | <!-- Esta div acrescenta a lista de de camadas do tipo 'baselayers' específicas da interface Openlayers. Veja também a opção i3GEO.Interface.openlayers.GADGETS.LayerSwitcher --> | 117 | <!-- Esta div acrescenta a lista de de camadas do tipo 'baselayers' específicas da interface Openlayers. Veja também a opção i3GEO.Interface.openlayers.GADGETS.LayerSwitcher --> |
| 117 | <!--<div id=listaLayersBase style='top: 15px;'></div>--> | 118 | <!--<div id=listaLayersBase style='top: 15px;'></div>--> |
| @@ -179,11 +180,22 @@ | @@ -179,11 +180,22 @@ | ||
| 179 | //indica se a opcao de navegacao nas pastas do servidor sera ativada | 180 | //indica se a opcao de navegacao nas pastas do servidor sera ativada |
| 180 | i3GEO.arvoreDeTemas.OPCOESADICIONAIS.navegacaoDir = true; | 181 | i3GEO.arvoreDeTemas.OPCOESADICIONAIS.navegacaoDir = true; |
| 181 | i3GEO.janela.TRANSICAOSUAVE = true; | 182 | i3GEO.janela.TRANSICAOSUAVE = true; |
| 182 | - | 183 | + //desliga a camada com o mapa mundi |
| 184 | + i3GEO.configura.mashuppar = "&desligar=mundo"; | ||
| 183 | (function() { | 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 | var bou = new ol.layer.Tile({ | 196 | var bou = new ol.layer.Tile({ |
| 185 | title : "Relevo", | 197 | title : "Relevo", |
| 186 | - visible : true, | 198 | + visible : false, |
| 187 | isBaseLayer : true, | 199 | isBaseLayer : true, |
| 188 | preload : 0, | 200 | preload : 0, |
| 189 | name : "bou", | 201 | name : "bou", |
| @@ -252,7 +264,7 @@ | @@ -252,7 +264,7 @@ | ||
| 252 | }) | 264 | }) |
| 253 | }); | 265 | }); |
| 254 | i3GEO.Interface.openlayers.LAYERSADICIONAIS = [ | 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 | i3GEO.inicia(); | 270 | i3GEO.inicia(); |
pacotes/cesium/teste.html
| @@ -39,7 +39,8 @@ | @@ -39,7 +39,8 @@ | ||
| 39 | } | 39 | } |
| 40 | ); | 40 | ); |
| 41 | // Add a WMS imagery layer | 41 | // Add a WMS imagery layer |
| 42 | - var imageryLayers = viewer.imageryLayers; | 42 | + |
| 43 | + var imageryLayers = viewer.imageryLayers; | ||
| 43 | imageryLayers.addImageryProvider(new Cesium.WebMapServiceImageryProvider({ | 44 | imageryLayers.addImageryProvider(new Cesium.WebMapServiceImageryProvider({ |
| 44 | url : 'http://localhost/i3geo/ogc.php', | 45 | url : 'http://localhost/i3geo/ogc.php', |
| 45 | layers : '_lbiomashp', | 46 | layers : '_lbiomashp', |
| @@ -49,7 +50,7 @@ | @@ -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 | </script> | 54 | </script> |
| 54 | </body> | 55 | </body> |
| 55 | </html> | 56 | </html> |