Commit ae856032007886641270166d6185935d2fe5a8df
1 parent
64bbf059
Exists in
master
and in
7 other branches
--no commit message
Showing
2 changed files
with
57 additions
and
45 deletions
Show diff stats
guia_de_migracao.txt
| @@ -10,6 +10,8 @@ Para a versão 4.3 | @@ -10,6 +10,8 @@ Para a versão 4.3 | ||
| 10 | i3geoadmin_temas | 10 | i3geoadmin_temas |
| 11 | i3geoadmin_grupos | 11 | i3geoadmin_grupos |
| 12 | i3geoadmin_subgrupos | 12 | i3geoadmin_subgrupos |
| 13 | + | ||
| 14 | + - acréscimo da coluna kmz_tema em i3geoadmin_temas | ||
| 13 | 15 | ||
| 14 | Foi incluida uma nova opção que permite ao usuário alterar o SQL que faz o acesso aos dados em | 16 | Foi incluida uma nova opção que permite ao usuário alterar o SQL que faz o acesso aos dados em |
| 15 | um LAYER (elemento DATA do mapfile). Mostrar ou não essa opção é controlado por um metadata | 17 | um LAYER (elemento DATA do mapfile). Mostrar ou não essa opção é controlado por um metadata |
mashups/openlayers.js.php
| @@ -25,12 +25,12 @@ i3GEOOL = { | @@ -25,12 +25,12 @@ i3GEOOL = { | ||
| 25 | {layers: "landsat7"} | 25 | {layers: "landsat7"} |
| 26 | ), | 26 | ), |
| 27 | layergrafico: new OpenLayers.Layer.Vector("Edição"), | 27 | layergrafico: new OpenLayers.Layer.Vector("Edição"), |
| 28 | - layersIniciais: <?php | 28 | + layersIniciais: [<?php |
| 29 | if(isset($objOpenLayers) && $objOpenLayers != "") | 29 | if(isset($objOpenLayers) && $objOpenLayers != "") |
| 30 | - echo implode(",",$objOpenLayers); | 30 | + {echo implode(",",$objOpenLayers);} |
| 31 | else | 31 | else |
| 32 | - echo "''"; | ||
| 33 | - ?>, | 32 | + {echo "''";} |
| 33 | + ?>], | ||
| 34 | botoes: <?php echo $botoes; ?>, | 34 | botoes: <?php echo $botoes; ?>, |
| 35 | mapa: new OpenLayers.Map('i3geoMapa', { | 35 | mapa: new OpenLayers.Map('i3geoMapa', { |
| 36 | controls: [ | 36 | controls: [ |
| @@ -41,20 +41,23 @@ i3GEOOL = { | @@ -41,20 +41,23 @@ i3GEOOL = { | ||
| 41 | }), | 41 | }), |
| 42 | inicia: function(){ | 42 | inicia: function(){ |
| 43 | var alayers = []; | 43 | var alayers = []; |
| 44 | - i3GEOOL.jpl_wms.setVisibility(false); | ||
| 45 | - i3GEOOL.ol_wms.setVisibility(false); | ||
| 46 | if(i3GEOOL.ol_mma != "") | 44 | if(i3GEOOL.ol_mma != "") |
| 47 | {alayers.push(i3GEOOL.ol_mma);} | 45 | {alayers.push(i3GEOOL.ol_mma);} |
| 48 | - if(i3GEOOL.ol_wms != "") | ||
| 49 | - {alayers.push(i3GEOOL.ol_wms);} | ||
| 50 | - if(i3GEOOL.jpl_wms != "") | ||
| 51 | - {alayers.push(i3GEOOL.jpl_wms);} | 46 | + if(i3GEOOL.ol_wms != ""){ |
| 47 | + i3GEOOL.ol_wms.setVisibility(false); | ||
| 48 | + alayers.push(i3GEOOL.ol_wms); | ||
| 49 | + } | ||
| 50 | + if(i3GEOOL.jpl_wms != ""){ | ||
| 51 | + alayers.push(i3GEOOL.jpl_wms); | ||
| 52 | + i3GEOOL.jpl_wms.setVisibility(false); | ||
| 53 | + } | ||
| 54 | + i3GEOOL.mapa.addLayers(alayers); | ||
| 52 | if(i3GEOOL.layersIniciais != "") | 55 | if(i3GEOOL.layersIniciais != "") |
| 53 | - {alayers.push(i3GEOOL.layersIniciais);} | 56 | + {i3GEOOL.mapa.addLayers(i3GEOOL.layersIniciais);} |
| 54 | if(i3GEOOL.layergrafico != "") | 57 | if(i3GEOOL.layergrafico != "") |
| 55 | - {alayers.push(i3GEOOL.layergrafico);} | 58 | + {i3GEOOL.mapa.addLayers(i3GEOOL.layergrafico);} |
| 56 | 59 | ||
| 57 | - i3GEOOL.mapa.addLayers(alayers); | 60 | + |
| 58 | i3GEOOL.mapa.zoomToMaxExtent(); | 61 | i3GEOOL.mapa.zoomToMaxExtent(); |
| 59 | i3GEOOL.coordenadas(); | 62 | i3GEOOL.coordenadas(); |
| 60 | i3GEOOL.criaJanelaBusca(); | 63 | i3GEOOL.criaJanelaBusca(); |
| @@ -109,26 +112,30 @@ i3GEOOL = { | @@ -109,26 +112,30 @@ i3GEOOL = { | ||
| 109 | ins += "<br>Procurar por:<br><input type=text size=20 id=i3GEOOLpalavraBusca >"; | 112 | ins += "<br>Procurar por:<br><input type=text size=20 id=i3GEOOLpalavraBusca >"; |
| 110 | ins += "<br><br><input type=button value='Procurar' id='i3GEOOLbotaoBusca' ></div>"; | 113 | ins += "<br><br><input type=button value='Procurar' id='i3GEOOLbotaoBusca' ></div>"; |
| 111 | ins += "<br>Resultado:<br><span id=i3GEOOLcomboresultado ></span>"; | 114 | ins += "<br>Resultado:<br><span id=i3GEOOLcomboresultado ></span>"; |
| 112 | - YAHOO.namespace("procura.container"); | ||
| 113 | - YAHOO.procura.container.panel = new YAHOO.widget.Panel("panelprocura", {zIndex:2000, iframe:false, width:"250px", visible:false, draggable:true, close:true } ); | ||
| 114 | - YAHOO.procura.container.panel.setHeader("Encontre no mapa"); | ||
| 115 | - YAHOO.procura.container.panel.setBody(ins); | ||
| 116 | - YAHOO.procura.container.panel.setFooter(""); | ||
| 117 | - YAHOO.procura.container.panel.render(document.body); | ||
| 118 | - YAHOO.procura.container.panel.center(); | ||
| 119 | - document.getElementById("i3GEOOLbotaoBusca").onclick = function(){ | ||
| 120 | - var layer = i3GEOOL.layerAtivo(); | ||
| 121 | - var item = document.getElementById("i3GEOOLbuscaItem").value; | ||
| 122 | - var palavra = document.getElementById("i3GEOOLpalavraBusca").value; | ||
| 123 | - if(item == "" || palavra == "") | ||
| 124 | - {alert("Escolha o item e o texto de busca");return;} | ||
| 125 | - i3GEOOL.busca(layer,item,palavra,"i3GEOOLcomboresultado"); | ||
| 126 | - }; | ||
| 127 | - document.getElementById("i3GEOOLlistaTemasBusca").onchange = function(){ | ||
| 128 | - i3GEOOL.ativaTema(this.value); | ||
| 129 | - document.getElementById("i3GEOOLcomboitens").innerHTML = "..."; | ||
| 130 | - i3GEOOL.listaItens(i3GEOOL.layerAtivo(),"i3GEOOLcomboitens","i3GEOOLbuscaItem"); | ||
| 131 | - }; | 115 | + try{ |
| 116 | + YAHOO.namespace("procura.container"); | ||
| 117 | + YAHOO.procura.container.panel = new YAHOO.widget.Panel("panelprocura", {zIndex:2000, iframe:false, width:"250px", visible:false, draggable:true, close:true } ); | ||
| 118 | + YAHOO.procura.container.panel.setHeader("Encontre no mapa"); | ||
| 119 | + YAHOO.procura.container.panel.setBody(ins); | ||
| 120 | + YAHOO.procura.container.panel.setFooter(""); | ||
| 121 | + YAHOO.procura.container.panel.render(document.body); | ||
| 122 | + YAHOO.procura.container.panel.center(); | ||
| 123 | + | ||
| 124 | + document.getElementById("i3GEOOLbotaoBusca").onclick = function(){ | ||
| 125 | + var layer = i3GEOOL.layerAtivo(); | ||
| 126 | + var item = document.getElementById("i3GEOOLbuscaItem").value; | ||
| 127 | + var palavra = document.getElementById("i3GEOOLpalavraBusca").value; | ||
| 128 | + if(item == "" || palavra == "") | ||
| 129 | + {alert("Escolha o item e o texto de busca");return;} | ||
| 130 | + i3GEOOL.busca(layer,item,palavra,"i3GEOOLcomboresultado"); | ||
| 131 | + }; | ||
| 132 | + document.getElementById("i3GEOOLlistaTemasBusca").onchange = function(){ | ||
| 133 | + i3GEOOL.ativaTema(this.value); | ||
| 134 | + document.getElementById("i3GEOOLcomboitens").innerHTML = "..."; | ||
| 135 | + i3GEOOL.listaItens(i3GEOOL.layerAtivo(),"i3GEOOLcomboitens","i3GEOOLbuscaItem"); | ||
| 136 | + }; | ||
| 137 | + } | ||
| 138 | + catch(e){} | ||
| 132 | }, | 139 | }, |
| 133 | criaJanelaAtivaTema: function(){ | 140 | criaJanelaAtivaTema: function(){ |
| 134 | var layers = i3GEOOL.layersLigados(); | 141 | var layers = i3GEOOL.layersLigados(); |
| @@ -138,18 +145,21 @@ i3GEOOL = { | @@ -138,18 +145,21 @@ i3GEOOL = { | ||
| 138 | combo += "<option value='"+i+"' >"+layers[i].name+"</option>"; | 145 | combo += "<option value='"+i+"' >"+layers[i].name+"</option>"; |
| 139 | } | 146 | } |
| 140 | combo += "</select>"; | 147 | combo += "</select>"; |
| 141 | - YAHOO.namespace("temaativo.container"); | ||
| 142 | - YAHOO.temaativo.container.panel = new YAHOO.widget.Panel("paneltemaativo", {zIndex:2000, iframe:false, width:"250px", visible:false, draggable:true, close:true } ); | ||
| 143 | - YAHOO.temaativo.container.panel.setHeader("Tema ativo"); | ||
| 144 | - YAHOO.temaativo.container.panel.setBody(combo); | ||
| 145 | - YAHOO.temaativo.container.panel.setFooter(""); | ||
| 146 | - YAHOO.temaativo.container.panel.render(document.body); | ||
| 147 | - YAHOO.temaativo.container.panel.center(); | ||
| 148 | - document.getElementById("i3GEOOLlistaTemasAtivos").onchange = function(){ | ||
| 149 | - if(botaoIdentifica){ | ||
| 150 | - botaoIdentifica.layers = [i3GEOOL.layersLigados()[this.value]]; | ||
| 151 | - } | ||
| 152 | - }; | 148 | + try{ |
| 149 | + YAHOO.namespace("temaativo.container"); | ||
| 150 | + YAHOO.temaativo.container.panel = new YAHOO.widget.Panel("paneltemaativo", {zIndex:2000, iframe:false, width:"250px", visible:false, draggable:true, close:true } ); | ||
| 151 | + YAHOO.temaativo.container.panel.setHeader("Tema ativo"); | ||
| 152 | + YAHOO.temaativo.container.panel.setBody(combo); | ||
| 153 | + YAHOO.temaativo.container.panel.setFooter(""); | ||
| 154 | + YAHOO.temaativo.container.panel.render(document.body); | ||
| 155 | + YAHOO.temaativo.container.panel.center(); | ||
| 156 | + document.getElementById("i3GEOOLlistaTemasAtivos").onchange = function(){ | ||
| 157 | + if(botaoIdentifica){ | ||
| 158 | + botaoIdentifica.layers = [i3GEOOL.layersLigados()[this.value]]; | ||
| 159 | + } | ||
| 160 | + }; | ||
| 161 | + } | ||
| 162 | + catch(e){} | ||
| 153 | }, | 163 | }, |
| 154 | ativaTema: function(id){ | 164 | ativaTema: function(id){ |
| 155 | document.getElementById("i3GEOOLlistaTemasAtivos").value = id; | 165 | document.getElementById("i3GEOOLlistaTemasAtivos").value = id; |