Commit 20a18b421bc2a7f79aa90a961b0cedd37525ca1d
1 parent
bea44b97
Exists in
master
and in
7 other branches
--no commit message
Showing
80 changed files
with
1059 additions
and
1432 deletions
Show diff stats
aplicmap/flamingo.htm
| ... | ... | @@ -79,10 +79,10 @@ http://<host>/i3geo/ms_criamapa.php?interface=flamingo.htm |
| 79 | 79 | */ |
| 80 | 80 | g_locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo"; |
| 81 | 81 | g_localimg = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo/imagens"; |
| 82 | -g_barraFerramentas1 = "nao" | |
| 82 | +g_barraFerramentas1 = "sim" | |
| 83 | 83 | g_barraFerramentas2 = "nao" |
| 84 | -g_mapaRefDisplay = "none" | |
| 85 | -g_janelaMen = "nao"; | |
| 84 | +g_mapaRefDisplay = "block" | |
| 85 | +g_janelaMen = "sim"; | |
| 86 | 86 | g_mostraRosa = "nao" |
| 87 | 87 | g_opcoesTemas = "nao"; |
| 88 | 88 | g_3dmap = "3dmap.map"; |
| ... | ... | @@ -93,8 +93,8 @@ g_uploaddbf = "nao"; |
| 93 | 93 | g_conectarwms = "nao"; |
| 94 | 94 | i3GEO.interface.ATUAL = "flamingo"; |
| 95 | 95 | i3GEO.interface.IDCORPO = "contemImg"; |
| 96 | -objmapa = new Mapa(); | |
| 97 | -objmapa.inicializa(); | |
| 96 | +i3GEO.cria(); | |
| 97 | +i3GEO.inicia(); | |
| 98 | 98 | </script> |
| 99 | 99 | |
| 100 | 100 | </body> | ... | ... |
aplicmap/geral.htm
| ... | ... | @@ -27,7 +27,7 @@ |
| 27 | 27 | .info {text-align:left;} |
| 28 | 28 | </style> |
| 29 | 29 | </head> |
| 30 | -<body id="i3geo" > | |
| 30 | +<body id="i3geo" > | |
| 31 | 31 | <center> |
| 32 | 32 | <table id='mst' summary="" style='display:none' width=100% cellspacing='0'> |
| 33 | 33 | <!-- |
| ... | ... | @@ -276,7 +276,7 @@ g_templateLegenda = "legendaseminput.htm"; |
| 276 | 276 | */ |
| 277 | 277 | var g_templateLegenda = ""; |
| 278 | 278 | var g_3dmap = "3dmap.map"; |
| 279 | -var objmapa = new Mapa(); | |
| 279 | +i3GEO.cria() | |
| 280 | 280 | //Log |
| 281 | 281 | |
| 282 | 282 | var myContainer = document.body.appendChild(document.createElement("div")); |
| ... | ... | @@ -289,9 +289,9 @@ i3geoLog.show(); |
| 289 | 289 | Inicializa o mapa |
| 290 | 290 | */ |
| 291 | 291 | //i3GEO.guias.ATUAL = "legenda" |
| 292 | -objmapa.inicializa(); | |
| 292 | +i3GEO.inicia(); | |
| 293 | 293 | //esconde a opção de inclusão da escala quando a resolução da tela for muito pequena |
| 294 | -if($i("escala") && objmapa.w < 500) | |
| 294 | +if($i("escala") && i3GEO.parametros.w < 500) | |
| 295 | 295 | {$i("escala").style.display="none";} |
| 296 | 296 | </script> |
| 297 | 297 | </body> | ... | ... |
classesjs/atlas.js
| ... | ... | @@ -65,7 +65,7 @@ function iniciaAtlas() |
| 65 | 65 | var ins = '<ul class="yui-nav" style="width:2000px;border-width:0pt 0pt 2px;border-color:rgb(240,240,240)">'; |
| 66 | 66 | //if(navm) |
| 67 | 67 | //{ |
| 68 | - document.getElementById("guiasAtlas").style.width=objmapa.w; | |
| 68 | + document.getElementById("guiasAtlas").style.width=i3GEO.parametros.w; | |
| 69 | 69 | //} |
| 70 | 70 | document.getElementById("guiasAtlas").style.height="35px"; |
| 71 | 71 | } | ... | ... |
classesjs/classe_ajuda.js
| ... | ... | @@ -117,10 +117,10 @@ i3GEO.ajuda = { |
| 117 | 117 | if (!$i("janelaMenTexto")){ |
| 118 | 118 | var nx = ""; |
| 119 | 119 | var ny = ""; |
| 120 | - if($i("img")){ | |
| 121 | - var pos = YAHOO.util.Dom.getXY($i("img")); | |
| 120 | + if($i(i3GEO.interface.IDCORPO)){ | |
| 121 | + var pos = YAHOO.util.Dom.getXY($i(i3GEO.interface.IDCORPO)); | |
| 122 | 122 | var nx = pos[0] - 267; |
| 123 | - var ny = objmapa.h - 70; | |
| 123 | + var ny = i3GEO.parametros.h - 70; | |
| 124 | 124 | } |
| 125 | 125 | var texto = '<div id="janelaMenTexto" style="text-align:left;font-size:10px;color:rgb(80,80,80)">'+i3GEO.ajuda.MENSAGEMPADRAO+'</div>'; |
| 126 | 126 | var janela = i3GEO.janela.cria("266","auto","",nx,ny," ","i3geo_janelaMensagens",false); |
| ... | ... | @@ -155,13 +155,13 @@ i3GEO.ajuda = { |
| 155 | 155 | Parameters: |
| 156 | 156 | |
| 157 | 157 | mensagem {String} - (opcional) texto que será mostrado no letreiro. Se não for informado |
| 158 | - será utilizado a variável objmapa.mensagens | |
| 158 | + será utilizado a variável i3GEO.parametros.mensagens | |
| 159 | 159 | */ |
| 160 | 160 | ativaLetreiro: function(mensagem){ |
| 161 | 161 | if($i(i3GEO.ajuda.DIVLETREIRO)) |
| 162 | 162 | { |
| 163 | 163 | if(arguments.length == 0) |
| 164 | - {var mensagem = objmapa.mensagens;} | |
| 164 | + {var mensagem = i3GEO.parametros.mensagens;} | |
| 165 | 165 | if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.ajuda.ativaLetreiro()") < 0) |
| 166 | 166 | {i3GEO.eventos.NAVEGAMAPA.push("i3GEO.ajuda.ativaLetreiro()");} |
| 167 | 167 | try |
| ... | ... | @@ -175,7 +175,7 @@ i3GEO.ajuda = { |
| 175 | 175 | return; |
| 176 | 176 | } |
| 177 | 177 | if (l.size == 1) |
| 178 | - {l.size = objmapa.w / 8;} | |
| 178 | + {l.size = i3GEO.parametros.w / 8;} | |
| 179 | 179 | BMessage = mensagem + " ---Clique para parar--- "; |
| 180 | 180 | l.onclick = function() |
| 181 | 181 | {l.style.display = "none";}; | ... | ... |
classesjs/classe_analise.js
| ... | ... | @@ -56,21 +56,21 @@ i3GEO.analise = { |
| 56 | 56 | Abre a janela que gera grade de pontos |
| 57 | 57 | */ |
| 58 | 58 | gradePontos: function() |
| 59 | - {return(i3GEO.janela.cria("400px","250px",i3GEO.configura.locaplic+"/ferramentas/gradepontos/index.htm","","","Grade de pontos"));}, | |
| 59 | + {i3GEO.janela.cria("400px","250px",i3GEO.configura.locaplic+"/ferramentas/gradepontos/index.htm","","","Grade de pontos");}, | |
| 60 | 60 | /* |
| 61 | 61 | Function: gradePol |
| 62 | 62 | |
| 63 | 63 | Abre a janela que gera grade de poligonos |
| 64 | 64 | */ |
| 65 | 65 | gradePol: function() |
| 66 | - {return(i3GEO.janela.cria("400px","250px",i3GEO.configura.locaplic+"/ferramentas/gradepol/index.htm","","","Grade de polígonos"));}, | |
| 66 | + {i3GEO.janela.cria("400px","250px",i3GEO.configura.locaplic+"/ferramentas/gradepol/index.htm","","","Grade de polígonos");}, | |
| 67 | 67 | /* |
| 68 | 68 | Function: gradeHex |
| 69 | 69 | |
| 70 | 70 | Abre a janela que gera grade de hexágonos |
| 71 | 71 | */ |
| 72 | 72 | gradeHex: function() |
| 73 | - {return(i3GEO.janela.cria("400px","250px",i3GEO.configura.locaplic+"/ferramentas/gradehex/index.htm","","","Grade de hexágonos"));}, | |
| 73 | + {i3GEO.janela.cria("400px","250px",i3GEO.configura.locaplic+"/ferramentas/gradehex/index.htm","","","Grade de hexágonos");}, | |
| 74 | 74 | /* |
| 75 | 75 | Function: analisaGeometrias |
| 76 | 76 | |
| ... | ... | @@ -78,8 +78,8 @@ i3GEO.analise = { |
| 78 | 78 | */ |
| 79 | 79 | analisaGeometrias: function(){ |
| 80 | 80 | g_tipoacao = "selecao"; |
| 81 | - objmapa.temaAtivo = ""; | |
| 82 | - return(i3GEO.janela.cria("500px","400px",i3GEO.configura.locaplic+'/ferramentas/analisageometrias/index.htm',"","","Seleção")); | |
| 81 | + i3GEO.temaAtivo = ""; | |
| 82 | + i3GEO.janela.cria("500px","400px",i3GEO.configura.locaplic+'/ferramentas/analisageometrias/index.htm',"","","Seleção"); | |
| 83 | 83 | }, |
| 84 | 84 | /* |
| 85 | 85 | Function: pontosdistri |
| ... | ... | @@ -87,11 +87,10 @@ i3GEO.analise = { |
| 87 | 87 | Abre a janela para executar análises de distribuição de pontos |
| 88 | 88 | */ |
| 89 | 89 | pontosdistri: function(){ |
| 90 | - //a variável g_r indica se o R está instalado no servidor e é definida na inicialização do I3Geo | |
| 91 | - if (g_r == "nao") | |
| 90 | + if (i3GEO.parametros.r == "nao") | |
| 92 | 91 | {alert("Opção não disponível");} |
| 93 | 92 | else |
| 94 | - {return(i3GEO.janela.cria("400px","300px",i3GEO.configura.locaplic+"/ferramentas/pontosdistri/index.htm","","","Distribuição de pontos"));} | |
| 93 | + {i3GEO.janela.cria("400px","300px",i3GEO.configura.locaplic+"/ferramentas/pontosdistri/index.htm","","","Distribuição de pontos");} | |
| 95 | 94 | }, |
| 96 | 95 | /* |
| 97 | 96 | Function: pontoempoligono |
| ... | ... | @@ -99,35 +98,35 @@ i3GEO.analise = { |
| 99 | 98 | Abre a janela para cruzar um tema de pontos com um ou mais temas poligonais e gerar um novo tema |
| 100 | 99 | */ |
| 101 | 100 | pontoempoligono: function() |
| 102 | - {return(i3GEO.janela.cria("400px","250px",i3GEO.configura.locaplic+"/ferramentas/pontoempoligono/index.htm","","","Ponto em polígono"));}, | |
| 101 | + {i3GEO.janela.cria("400px","250px",i3GEO.configura.locaplic+"/ferramentas/pontoempoligono/index.htm","","","Ponto em polígono");}, | |
| 103 | 102 | /* |
| 104 | 103 | Function: nptPol |
| 105 | 104 | |
| 106 | 105 | Abre a janela para cruzar um tema de pontos com um ou tema poligona e gerar um novo tema com o número de pontos em cada polígono |
| 107 | 106 | */ |
| 108 | 107 | nptPol: function() |
| 109 | - {return(i3GEO.janela.cria("400px","200px",i3GEO.configura.locaplic+"/ferramentas/nptpol/index.htm","","","Pontos por polígono"));}, | |
| 108 | + {i3GEO.janela.cria("400px","200px",i3GEO.configura.locaplic+"/ferramentas/nptpol/index.htm","","","Pontos por polígono");}, | |
| 110 | 109 | /* |
| 111 | 110 | Function: buffer |
| 112 | 111 | |
| 113 | 112 | Gera um buffer em elementos selecionados |
| 114 | 113 | */ |
| 115 | 114 | buffer: function() |
| 116 | - {return(i3GEO.janela.cria("400px","180px",i3GEO.configura.locaplic+"/ferramentas/buffer/index.htm","","","Entorno"));}, | |
| 115 | + {i3GEO.janela.cria("400px","180px",i3GEO.configura.locaplic+"/ferramentas/buffer/index.htm","","","Entorno");}, | |
| 117 | 116 | /* |
| 118 | 117 | Function: distanciaptpt |
| 119 | 118 | |
| 120 | 119 | Abre a janela para calcular a distância entre um ponto e outros pontos próximos |
| 121 | 120 | */ |
| 122 | 121 | distanciaptpt: function() |
| 123 | - {return(i3GEO.janela.cria("400px","220px",i3GEO.configura.locaplic+"/ferramentas/distanciaptpt/index.htm","","","Distância"));}, | |
| 122 | + {i3GEO.janela.cria("400px","220px",i3GEO.configura.locaplic+"/ferramentas/distanciaptpt/index.htm","","","Distância");}, | |
| 124 | 123 | /* |
| 125 | 124 | Function: centroide |
| 126 | 125 | |
| 127 | 126 | Abre a janela que gera um tema com os centroides dos elementos selecionados |
| 128 | 127 | */ |
| 129 | 128 | centroide: function() |
| 130 | - {return(i3GEO.janela.cria("400px","180px",i3GEO.configura.locaplic+"/ferramentas/centroide/index.htm","","","Centróide"));}, | |
| 129 | + {i3GEO.janela.cria("400px","180px",i3GEO.configura.locaplic+"/ferramentas/centroide/index.htm","","","Centróide");}, | |
| 131 | 130 | /* |
| 132 | 131 | Function: dissolve |
| 133 | 132 | |
| ... | ... | @@ -141,7 +140,7 @@ i3GEO.analise = { |
| 141 | 140 | Abre a janela que gera um tema poligonal agrupando elementos de um tema. |
| 142 | 141 | */ |
| 143 | 142 | agrupaElementos: function() |
| 144 | - {return(i3GEO.janela.cria("400px","230px",i3GEO.configura.locaplic+"/ferramentas/agrupaelementos/index.htm","","","Agrupa"));}, | |
| 143 | + {i3GEO.janela.cria("400px","230px",i3GEO.configura.locaplic+"/ferramentas/agrupaelementos/index.htm","","","Agrupa");}, | |
| 145 | 144 | }, |
| 146 | 145 | /* |
| 147 | 146 | Class: i3GEO.analise.medeDistancia |
| ... | ... | @@ -241,7 +240,7 @@ i3GEO.analise = { |
| 241 | 240 | if (navn) |
| 242 | 241 | {pontosdistobj.linhas[n] = i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode, i3GEO.desenho.richdraw.fillColor, i3GEO.desenho.richdraw.lineColor, i3GEO.desenho.richdraw.lineWidth, (pontosdistobj.ximg[n]-1),(pontosdistobj.yimg[n]-1),(pontosdistobj.ximg[n]-1),(pontosdistobj.yimg[n]-1));} |
| 243 | 242 | else |
| 244 | - {pontosdistobj.linhas[n] = i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode, i3GEO.desenho.richdraw.fillColor, i3GEO.desenho.richdraw.lineColor, i3GEO.desenho.richdraw.lineWidth, (pontosdistobj.ximg[n])-(objmapa.w/2),pontosdistobj.yimg[n],(pontosdistobj.ximg[n])-(objmapa.w/2),pontosdistobj.yimg[n]);} | |
| 243 | + {pontosdistobj.linhas[n] = i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode, i3GEO.desenho.richdraw.fillColor, i3GEO.desenho.richdraw.lineColor, i3GEO.desenho.richdraw.lineWidth, (pontosdistobj.ximg[n])-(i3GEO.parametros.w/2),pontosdistobj.yimg[n],(pontosdistobj.ximg[n])-(i3GEO.parametros.w/2),pontosdistobj.yimg[n]);} | |
| 245 | 244 | } |
| 246 | 245 | catch(e){window.status=n+" erro ao desenhar a linha base "+e.message;} |
| 247 | 246 | if (n > 0){ |
| ... | ... | @@ -250,7 +249,7 @@ i3GEO.analise = { |
| 250 | 249 | if($i("pararraios") && $i("pararraios").checked == true ){ |
| 251 | 250 | i3GEO.desenho.aplica("insereCirculo","",n); |
| 252 | 251 | if(navm) |
| 253 | - {pontosdistobj.linhas[n] = i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode, i3GEO.desenho.richdraw.fillColor, i3GEO.desenho.richdraw.lineColor, i3GEO.desenho.richdraw.lineWidth, (pontosdistobj.ximg[n-1])-(objmapa.w/2),pontosdistobj.yimg[n-1],(pontosdistobj.ximg[n])-(objmapa.w/2),pontosdistobj.yimg[n]);} | |
| 252 | + {pontosdistobj.linhas[n] = i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode, i3GEO.desenho.richdraw.fillColor, i3GEO.desenho.richdraw.lineColor, i3GEO.desenho.richdraw.lineWidth, (pontosdistobj.ximg[n-1])-(i3GEO.parametros.w/2),pontosdistobj.yimg[n-1],(pontosdistobj.ximg[n])-(i3GEO.parametros.w/2),pontosdistobj.yimg[n]);} | |
| 254 | 253 | } |
| 255 | 254 | } |
| 256 | 255 | i3GEO.util.insereMarca.cria(objposicaocursor.telax,objposicaocursor.telay,i3GEO.analise.medeDistancia.fechaJanela,"pontosins"); |
| ... | ... | @@ -268,7 +267,7 @@ i3GEO.analise = { |
| 268 | 267 | var n = pontosdistobj.xpt.length; |
| 269 | 268 | if (n > 0){ |
| 270 | 269 | var d = i3GEO.calculo.distancia(pontosdistobj.xpt[n-1],pontosdistobj.ypt[n-1],objposicaocursor.ddx,objposicaocursor.ddy); |
| 271 | - if (objmapa.scale > 500000) | |
| 270 | + if (i3GEO.parametros.mapscale > 500000) | |
| 272 | 271 | {var d = parseInt(d);} |
| 273 | 272 | else{ |
| 274 | 273 | d= d + ""; |
| ... | ... | @@ -314,7 +313,7 @@ i3GEO.analise = { |
| 314 | 313 | {i3GEO.eventos.MOUSEMOVE.push("i3GEO.analise.medeArea.movimento()");} |
| 315 | 314 | YAHOO.util.Event.addListener(YAHOO.janelaDocaarea.xp.panel.close, "click", i3GEO.analise.medeArea.fechaJanela); |
| 316 | 315 | var temp = function(retorno){ |
| 317 | - i3GEO.janela.fechaAguarde("ajaxredesenha"); | |
| 316 | + i3GEO.janela.fechaAguarde("i3GEO.atualiza"); | |
| 318 | 317 | g_areapixel = retorno.data; |
| 319 | 318 | if (g_areapixel < 0) |
| 320 | 319 | {alert("Nao e possivel calcular a area. Entre em contato com o administrador do sistema.");} |
| ... | ... | @@ -327,8 +326,8 @@ i3GEO.analise = { |
| 327 | 326 | i3GEO.desenho.richdraw.lineWidth = "2px"; |
| 328 | 327 | } |
| 329 | 328 | }; |
| 330 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 331 | - i3GEO.php.areaPixel(temp,g_celula); | |
| 329 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 330 | + i3GEO.php.areaPixel(temp,i3GEO.parametros.pixelsize); | |
| 332 | 331 | } |
| 333 | 332 | else{i3GEO.desenho.richdraw.fecha();} |
| 334 | 333 | }, |
| ... | ... | @@ -387,7 +386,7 @@ i3GEO.analise = { |
| 387 | 386 | if (navn) |
| 388 | 387 | {pontosdistobj.linhastemp = i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode, i3GEO.desenho.richdraw.fillColor, i3GEO.desenho.richdraw.lineColor, i3GEO.desenho.richdraw.lineWidth, pontosdistobj.ximg[n]-1,pontosdistobj.yimg[n]-1,pontosdistobj.ximg[0]-1,pontosdistobj.yimg[0]-1);} |
| 389 | 388 | else |
| 390 | - {pontosdistobj.linhastemp = i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode, i3GEO.desenho.richdraw.fillColor, i3GEO.desenho.richdraw.lineColor, i3GEO.desenho.richdraw.lineWidth, (pontosdistobj.ximg[n])-(objmapa.w/2),pontosdistobj.yimg[n],(pontosdistobj.ximg[0])-(objmapa.w/2),pontosdistobj.yimg[0]); } | |
| 389 | + {pontosdistobj.linhastemp = i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode, i3GEO.desenho.richdraw.fillColor, i3GEO.desenho.richdraw.lineColor, i3GEO.desenho.richdraw.lineWidth, (pontosdistobj.ximg[n])-(i3GEO.parametros.w/2),pontosdistobj.yimg[n],(pontosdistobj.ximg[0])-(i3GEO.parametros.w/2),pontosdistobj.yimg[0]); } | |
| 391 | 390 | } |
| 392 | 391 | catch(e){} |
| 393 | 392 | } |
| ... | ... | @@ -395,7 +394,7 @@ i3GEO.analise = { |
| 395 | 394 | if (navn) |
| 396 | 395 | {pontosdistobj.linhas[n] = i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode, i3GEO.desenho.richdraw.fillColor, i3GEO.desenho.richdraw.lineColor, i3GEO.desenho.richdraw.lineWidth, pontosdistobj.ximg[n]-1,pontosdistobj.yimg[n]-1,pontosdistobj.ximg[n]-1,pontosdistobj.yimg[n]-1);} |
| 397 | 396 | else |
| 398 | - {pontosdistobj.linhas[n] = i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode, i3GEO.desenho.richdraw.fillColor, i3GEO.desenho.richdraw.lineColor, i3GEO.desenho.richdraw.lineWidth, (pontosdistobj.ximg[n])-(objmapa.w/2),pontosdistobj.yimg[n],(pontosdistobj.ximg[n])-(objmapa.w/2),pontosdistobj.yimg[n]);} | |
| 397 | + {pontosdistobj.linhas[n] = i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode, i3GEO.desenho.richdraw.fillColor, i3GEO.desenho.richdraw.lineColor, i3GEO.desenho.richdraw.lineWidth, (pontosdistobj.ximg[n])-(i3GEO.parametros.w/2),pontosdistobj.yimg[n],(pontosdistobj.ximg[n])-(i3GEO.parametros.w/2),pontosdistobj.yimg[n]);} | |
| 399 | 398 | } |
| 400 | 399 | catch(e){} |
| 401 | 400 | var m = i3GEO.calculo.area(pontosdistobj,g_areapixel); |
| ... | ... | @@ -421,7 +420,7 @@ i3GEO.analise = { |
| 421 | 420 | //conforme a escala, os dados são arredondados |
| 422 | 421 | // |
| 423 | 422 | var d = i3GEO.calculo.distancia(pontosdistobj.xpt[n-1],pontosdistobj.ypt[n-1],objposicaocursor.ddx,objposicaocursor.ddy); |
| 424 | - if (objmapa.scale > 500000) | |
| 423 | + if (i3GEO.parametros.mapscale > 500000) | |
| 425 | 424 | {var d = parseInt(d);} |
| 426 | 425 | else{ |
| 427 | 426 | d= d + ""; | ... | ... |
classesjs/classe_arvoredecamadas.js
| ... | ... | @@ -313,18 +313,18 @@ i3GEO.arvoreDeCamadas = { |
| 313 | 313 | if(DDM.getDDById(id).id == "i3geo_lixeira"){ |
| 314 | 314 | i3GEO.janela.abreAguarde("ajaxCorpoMapa",$trad("o1")); |
| 315 | 315 | var tema = (this.getEl()).id.split("arrastar_")[1]; |
| 316 | - i3GEO.php.excluitema(ajaxredesenha,tema); | |
| 317 | - objmapa.temaAtivo = ""; | |
| 316 | + i3GEO.php.excluitema(i3GEO.atualiza,tema); | |
| 317 | + i3GEO.temaAtivo = ""; | |
| 318 | 318 | } |
| 319 | 319 | //muda ordem de desenho do tema |
| 320 | 320 | else{ |
| 321 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 321 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 322 | 322 | var destEl = Dom.get(id); |
| 323 | 323 | var noid = id.split("arrastar_")[1]; |
| 324 | 324 | destEl.appendChild(this.getEl()); |
| 325 | 325 | var els = i3GEO.arvoreDeCamadas.listaLigadosDesligados(); |
| 326 | 326 | var lista = els[2].join(","); |
| 327 | - i3GEO.php.reordenatemas(ajaxredesenha,lista); | |
| 327 | + i3GEO.php.reordenatemas(i3GEO.atualiza,lista); | |
| 328 | 328 | } |
| 329 | 329 | } |
| 330 | 330 | } |
| ... | ... | @@ -370,11 +370,11 @@ i3GEO.arvoreDeCamadas = { |
| 370 | 370 | var idtema = node.data.id; |
| 371 | 371 | var ltema = i3GEO.arvoreDeCamadas.pegaTema(idtema); |
| 372 | 372 | var farol = "maisamarelo.png"; |
| 373 | - if (ltema.escala*1 < objmapa.scale*1){ | |
| 373 | + if (ltema.escala*1 < i3GEO.parametros.mapscale*1){ | |
| 374 | 374 | var farol = "maisverde.png"; |
| 375 | 375 | var mfarol = $trad("t9"); |
| 376 | 376 | } |
| 377 | - if (ltema.escala*1 > objmapa.scale*1){ | |
| 377 | + if (ltema.escala*1 > i3GEO.parametros.mapscale*1){ | |
| 378 | 378 | var farol = "maisvermelho.png"; |
| 379 | 379 | var mfarol = $trad("t10"); |
| 380 | 380 | } |
| ... | ... | @@ -449,7 +449,7 @@ i3GEO.arvoreDeCamadas = { |
| 449 | 449 | var d = {html:tnome}; |
| 450 | 450 | var n = new YAHOO.widget.HTMLNode(d, node, false,true); |
| 451 | 451 | n.isLeaf = true; |
| 452 | - if(objmapa.versaoms > 4){ | |
| 452 | + if(i3GEO.parametros.versaoms > 4){ | |
| 453 | 453 | var tnome = "<a href='#' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t37")+"','');\" onclick='i3GEO.tema.dialogo.graficotema(\""+ltema.name+"\")'>"+$trad("t37")+" </a>"; |
| 454 | 454 | var d = {html:tnome}; |
| 455 | 455 | var n = new YAHOO.widget.HTMLNode(d, node, false,true); |
| ... | ... | @@ -591,7 +591,7 @@ i3GEO.arvoreDeCamadas = { |
| 591 | 591 | inverteStatusClasse: function (leg){ |
| 592 | 592 | //YAHOO.log("Invertendo o status da árvore de camadas", "i3geo"); |
| 593 | 593 | var temp = function() |
| 594 | - {ajaxredesenha("");}; | |
| 594 | + {i3GEO.atualiza("");}; | |
| 595 | 595 | i3GEO.php.inverteStatusClasse(temp,leg.name,leg.value); |
| 596 | 596 | }, |
| 597 | 597 | /* |
| ... | ... | @@ -675,11 +675,11 @@ i3GEO.arvoreDeCamadas = { |
| 675 | 675 | //zera o contador de tempo |
| 676 | 676 | // |
| 677 | 677 | var temp = function(){ |
| 678 | - ajaxredesenha(); | |
| 678 | + i3GEO.atualiza(); | |
| 679 | 679 | i3GEO.janela.fechaAguarde("redesenha"); |
| 680 | 680 | }; |
| 681 | - clearTimeout(objmapa.tempo); | |
| 682 | - objmapa.tempo = ""; | |
| 681 | + clearTimeout(tempoBotaoAplicar); | |
| 682 | + tempoBotaoAplicar = ""; | |
| 683 | 683 | i3GEO.janela.abreAguarde("redesenha",$trad("o1")); |
| 684 | 684 | i3GEO.php.ligatemas(temp,t[1].toString(),t[0].toString()); |
| 685 | 685 | }, | ... | ... |
classesjs/classe_arvoredetemas.js
| ... | ... | @@ -960,9 +960,9 @@ i3GEO.arvoreDeTemas = { |
| 960 | 960 | // |
| 961 | 961 | //zera o contador de tempo |
| 962 | 962 | // |
| 963 | - clearTimeout(objmapa.tempo); | |
| 964 | - objmapa.tempo = ""; | |
| 965 | - objmapa.temaAtivo = ""; | |
| 963 | + clearTimeout(tempoBotaoAplicar); | |
| 964 | + tempoBotaoAplicar = ""; | |
| 965 | + i3GEO.temaAtivo = ""; | |
| 966 | 966 | // |
| 967 | 967 | //pega os temas ativados na árvore de menus |
| 968 | 968 | // |
| ... | ... | @@ -972,14 +972,14 @@ i3GEO.arvoreDeTemas = { |
| 972 | 972 | //se forem encontrados temas ativos na árvore de menus, o mapa é redesenhado com a adição de novos temas |
| 973 | 973 | // |
| 974 | 974 | if(tsl.length > 0){ |
| 975 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 975 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 976 | 976 | var temp = function(retorno){ |
| 977 | - i3GEO.janela.fechaAguarde("ajaxredesenha"); | |
| 977 | + i3GEO.janela.fechaAguarde("i3GEO.atualiza"); | |
| 978 | 978 | if(retorno.data.erro){ |
| 979 | 979 | alert(retorno.data.erro); |
| 980 | 980 | return; |
| 981 | 981 | } |
| 982 | - ajaxredesenha(); | |
| 982 | + i3GEO.atualiza(); | |
| 983 | 983 | }; |
| 984 | 984 | i3GEO.php.adtema(temp,tsl.toString()); |
| 985 | 985 | } | ... | ... |
classesjs/classe_barradebotoes.js
| ... | ... | @@ -222,8 +222,8 @@ i3GEO.barraDeBotoes = { |
| 222 | 222 | var corpo = $i("img"); |
| 223 | 223 | if(!corpo){return;} |
| 224 | 224 | iclone.src = corpo.src; |
| 225 | - iclone.style.width = objmapa.w; | |
| 226 | - iclone.style.heigth = objmapa.h; | |
| 225 | + iclone.style.width = i3GEO.parametros.w; | |
| 226 | + iclone.style.heigth = i3GEO.parametros.h; | |
| 227 | 227 | iclone.style.top = corpo.style.top; |
| 228 | 228 | iclone.style.left = corpo.style.left; |
| 229 | 229 | $i("img").style.display = "none"; |
| ... | ... | @@ -234,38 +234,38 @@ i3GEO.barraDeBotoes = { |
| 234 | 234 | $i("vertHandleDiv").onmousemove = function(){ |
| 235 | 235 | var corpo = $i("img"); |
| 236 | 236 | if(!corpo){return;} |
| 237 | - var nw = objmapa.w; | |
| 238 | - var nh = objmapa.h; | |
| 237 | + var nw = i3GEO.parametros.w; | |
| 238 | + var nh = i3GEO.parametros.h; | |
| 239 | 239 | var nt = 0; |
| 240 | 240 | var nl = 0; |
| 241 | - i3geo_ns = parseInt(objmapa.scale); | |
| 241 | + i3geo_ns = parseInt(i3GEO.parametros.mapscale); | |
| 242 | 242 | if ((g_fatordezoom > 0) && (g_fatordezoom < 7)){ |
| 243 | 243 | g_fatordezoom = g_fatordezoom + 1; |
| 244 | 244 | var velhoh = parseInt(iclone.style.height); |
| 245 | 245 | var velhow = parseInt(iclone.style.width); |
| 246 | - nh = objmapa.h / g_fatordezoom; | |
| 247 | - nw = objmapa.w / g_fatordezoom; | |
| 246 | + nh = i3GEO.parametros.h / g_fatordezoom; | |
| 247 | + nw = i3GEO.parametros.w / g_fatordezoom; | |
| 248 | 248 | var t = parseInt(iclone.style.top); |
| 249 | 249 | var l = parseInt(iclone.style.left); |
| 250 | 250 | nt=t + ((velhoh - nh)*.5); |
| 251 | 251 | if (navm){nl=0;} |
| 252 | 252 | else |
| 253 | 253 | {nl=l + ((velhow - nw)*.5);} |
| 254 | - var fatorEscala = nh/objmapa.h; | |
| 255 | - i3geo_ns=parseInt(objmapa.scale / fatorEscala); | |
| 254 | + var fatorEscala = nh/i3GEO.parametros.h; | |
| 255 | + i3geo_ns=parseInt(i3GEO.parametros.mapscale / fatorEscala); | |
| 256 | 256 | } |
| 257 | 257 | if ((g_fatordezoom < 0) && (g_fatordezoom > -7)){ |
| 258 | 258 | g_fatordezoom = g_fatordezoom - 1; |
| 259 | 259 | var velhoh = parseInt(iclone.style.height); |
| 260 | 260 | var velhow = parseInt(iclone.style.width); |
| 261 | - nh = objmapa.h * g_fatordezoom * -1; | |
| 262 | - nw = objmapa.w * g_fatordezoom * -1; | |
| 261 | + nh = i3GEO.parametros.h * g_fatordezoom * -1; | |
| 262 | + nw = i3GEO.parametros.w * g_fatordezoom * -1; | |
| 263 | 263 | var t = parseInt(iclone.style.top); |
| 264 | 264 | var l = parseInt(iclone.style.left); |
| 265 | 265 | nt = t - ((nh - velhoh)*.5); |
| 266 | 266 | nl = l - ((nw - velhow)*.5); |
| 267 | - var fatorEscala = nh/objmapa.h; | |
| 268 | - i3geo_ns=parseInt(objmapa.scale / fatorEscala); | |
| 267 | + var fatorEscala = nh/i3GEO.parametros.h; | |
| 268 | + i3geo_ns=parseInt(i3GEO.parametros.mapscale / fatorEscala); | |
| 269 | 269 | } |
| 270 | 270 | iclone.style.width = nw; |
| 271 | 271 | iclone.style.height = nh; | ... | ... |
classesjs/classe_calculo.js
| ... | ... | @@ -95,18 +95,18 @@ i3GEO.calculo = { |
| 95 | 95 | try |
| 96 | 96 | { |
| 97 | 97 | if(arguments.length == 3){ |
| 98 | - var ext = objmapa.extent; | |
| 99 | - var cellsize = objmapa.cellsize; | |
| 98 | + var ext = i3GEO.parametros.mapexten; | |
| 99 | + var cellsize = i3GEO.parametros.pixelsize; | |
| 100 | 100 | } |
| 101 | 101 | if(arguments.length == 4){ |
| 102 | - var cellsize = objmapa.cellsize; | |
| 102 | + var cellsize = i3GEO.parametros.pixelsize; | |
| 103 | 103 | } |
| 104 | 104 | if(!docmapa) |
| 105 | 105 | {var docmapa = window.document;} |
| 106 | 106 | var dc = docmapa.getElementById("img"); |
| 107 | 107 | if(!dc){var dc = docmapa;} |
| 108 | 108 | var pos = i3GEO.util.pegaPosicaoObjeto(dc); |
| 109 | - var imgext = ext; //objmapa.extent; | |
| 109 | + var imgext = ext; //i3GEO.parametros.mapexten; | |
| 110 | 110 | var imgext = imgext.split(" "); |
| 111 | 111 | vx = (vx * 1) - (imgext[0] * 1); |
| 112 | 112 | vy = (vy * -1) + (imgext[3] * 1); |
| ... | ... | @@ -352,8 +352,8 @@ i3GEO.calculo = { |
| 352 | 352 | var xfig = pix - pos[0]; |
| 353 | 353 | var yfig = piy - pos[1]; |
| 354 | 354 | if (dy < 0) dy=dy * -1; |
| 355 | - var nx = g_celula * xfig; | |
| 356 | - var ny = g_celula * yfig; | |
| 355 | + var nx = i3GEO.parametros.pixelsize * xfig; | |
| 356 | + var ny = i3GEO.parametros.pixelsize * yfig; | |
| 357 | 357 | var x2 = (amext[0] * 1) + nx; |
| 358 | 358 | var y2 = (amext[3] * 1) - ny; |
| 359 | 359 | var v = x2+" "+y2+" "+x1+" "+y1; | ... | ... |
classesjs/classe_configura.js
| ... | ... | @@ -36,6 +36,20 @@ o funcionamento do i3geo. |
| 36 | 36 | */ |
| 37 | 37 | i3GEO.configura = { |
| 38 | 38 | /* |
| 39 | + Variable: mashuppar | |
| 40 | + | |
| 41 | + Define os parâmetros que devem ser aplicados no modo mashup | |
| 42 | + | |
| 43 | + O modo mashup possibilita que o i3Geo seja embutido dentro de uma página HTML. Nesse | |
| 44 | + caso, o mapa não é criado no modo convencional, que utiliza o programa i3geo/ms_criamapa.php | |
| 45 | + A variavel mashuppar deve conter os parâmetros que são utilizados pelo programa ms_criamapa | |
| 46 | + | |
| 47 | + Exemplo: | |
| 48 | + | |
| 49 | + i3GEO.configura.mashuppar = "&pontos=-54 -12&temasa=biomas&layers=biomas" | |
| 50 | + */ | |
| 51 | + mashuppar: "", | |
| 52 | + /* | |
| 39 | 53 | Variable: sid |
| 40 | 54 | |
| 41 | 55 | Código da seção aberta pelo i3Geo no servidor. |
| ... | ... | @@ -163,7 +177,7 @@ i3GEO.configura = { |
| 163 | 177 | Type: |
| 164 | 178 | {sim|nao} |
| 165 | 179 | */ |
| 166 | - mostraRosaDosVentos: "sim", | |
| 180 | + mostraRosaDosVentos: "nao", | |
| 167 | 181 | /* |
| 168 | 182 | Variable: liberaGuias |
| 169 | 183 | ... | ... |
classesjs/classe_desenho.js
| ... | ... | @@ -134,8 +134,8 @@ i3GEO.desenho = { |
| 134 | 134 | ne.cursor="crosshair"; |
| 135 | 135 | ne.zIndex=0; |
| 136 | 136 | ne.position="absolute"; |
| 137 | - ne.width=objmapa.w; | |
| 138 | - ne.height=objmapa.h; | |
| 137 | + ne.width=i3GEO.parametros.w; | |
| 138 | + ne.height=i3GEO.parametros.h; | |
| 139 | 139 | ne.border="1px solid black"; |
| 140 | 140 | ne.display="none"; |
| 141 | 141 | ne.top=pos[1]; |
| ... | ... | @@ -176,8 +176,8 @@ i3GEO.desenho = { |
| 176 | 176 | var r = $i(i3GEO.desenho.richdraw.container.id); |
| 177 | 177 | r.removeChild(r.lastChild); |
| 178 | 178 | var dy = objposicaocursor.imgy; |
| 179 | - var dx = objposicaocursor.imgx - (objmapa.w/2); | |
| 180 | - i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode, i3GEO.desenho.richdraw.fillColor, i3GEO.desenho.richdraw.lineColor, i3GEO.desenho.richdraw.lineWidth, (pontosdistobj.ximg[n-1])-(objmapa.w/2)-1,pontosdistobj.yimg[n-1]-3,dx,dy-3); | |
| 179 | + var dx = objposicaocursor.imgx - (i3GEO.parametros.w/2); | |
| 180 | + i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode, i3GEO.desenho.richdraw.fillColor, i3GEO.desenho.richdraw.lineColor, i3GEO.desenho.richdraw.lineWidth, (pontosdistobj.ximg[n-1])-(i3GEO.parametros.w/2)-1,pontosdistobj.yimg[n-1]-3,dx,dy-3); | |
| 181 | 181 | } |
| 182 | 182 | catch(e){window.status=n+" erro ao movimentar a linha ";} |
| 183 | 183 | } |
| ... | ... | @@ -187,9 +187,9 @@ i3GEO.desenho = { |
| 187 | 187 | r.removeChild(r.lastChild); |
| 188 | 188 | r.removeChild(r.lastChild); |
| 189 | 189 | var dy = objposicaocursor.imgy; |
| 190 | - var dx = objposicaocursor.imgx - (objmapa.w/2); | |
| 191 | - i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode, i3GEO.desenho.richdraw.fillColor, i3GEO.desenho.richdraw.lineColor, i3GEO.desenho.richdraw.lineWidth, (pontosdistobj.ximg[n-1])-(objmapa.w/2)-1,pontosdistobj.yimg[n-1]-3,dx,dy-3); | |
| 192 | - i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode, i3GEO.desenho.richdraw.fillColor, i3GEO.desenho.richdraw.lineColor, i3GEO.desenho.richdraw.lineWidth, (pontosdistobj.ximg[0])-(objmapa.w/2)-1,pontosdistobj.yimg[0]-3,dx,dy-3); | |
| 190 | + var dx = objposicaocursor.imgx - (i3GEO.parametros.w/2); | |
| 191 | + i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode, i3GEO.desenho.richdraw.fillColor, i3GEO.desenho.richdraw.lineColor, i3GEO.desenho.richdraw.lineWidth, (pontosdistobj.ximg[n-1])-(i3GEO.parametros.w/2)-1,pontosdistobj.yimg[n-1]-3,dx,dy-3); | |
| 192 | + i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode, i3GEO.desenho.richdraw.fillColor, i3GEO.desenho.richdraw.lineColor, i3GEO.desenho.richdraw.lineWidth, (pontosdistobj.ximg[0])-(i3GEO.parametros.w/2)-1,pontosdistobj.yimg[0]-3,dx,dy-3); | |
| 193 | 193 | } |
| 194 | 194 | catch(e){window.status=n+" erro ao movimentar a linha ";} |
| 195 | 195 | } | ... | ... |
classesjs/classe_eventos.js
| ... | ... | @@ -295,8 +295,8 @@ i3GEO.eventos = { |
| 295 | 295 | else |
| 296 | 296 | {var pos = i3GEO.util.pegaPosicaoObjeto(targ);} |
| 297 | 297 | if((i3GEO.configura.entorno == "sim") && (g_panM == "sim")){ |
| 298 | - pos[0] = pos[0] - objmapa.w; | |
| 299 | - pos[1] = pos[1] - objmapa.h; | |
| 298 | + pos[0] = pos[0] - i3GEO.parametros.w; | |
| 299 | + pos[1] = pos[1] - i3GEO.parametros.h; | |
| 300 | 300 | } |
| 301 | 301 | } |
| 302 | 302 | catch(m){var pos = i3GEO.util.pegaPosicaoObjeto(targ);} |
| ... | ... | @@ -310,9 +310,9 @@ i3GEO.eventos = { |
| 310 | 310 | var mousey = e.pageY; |
| 311 | 311 | } |
| 312 | 312 | else if (e.clientX || e.clientY){ |
| 313 | - mousex = e.clientX + document.body.scrollLeft | |
| 313 | + var mousex = e.clientX + document.body.scrollLeft | |
| 314 | 314 | + document.documentElement.scrollLeft; |
| 315 | - mousey = e.clientY + document.body.scrollTop | |
| 315 | + var mousey = e.clientY + document.body.scrollTop | |
| 316 | 316 | + document.documentElement.scrollTop; |
| 317 | 317 | } |
| 318 | 318 | // |
| ... | ... | @@ -330,18 +330,18 @@ i3GEO.eventos = { |
| 330 | 330 | //conversão de coordenadas de tela para coordenadas geográficas |
| 331 | 331 | //esses valores são obtidos das funções ajax que redesenham ou inicializam o mapa |
| 332 | 332 | // |
| 333 | - var c = g_celula; | |
| 334 | - var ex = objmapa.extent; | |
| 333 | + var c = i3GEO.parametros.pixelsize; | |
| 334 | + var ex = i3GEO.parametros.mapexten; | |
| 335 | 335 | try{ |
| 336 | 336 | if(targ.id == "imagemReferencia"){ |
| 337 | - var c = g_celularef; | |
| 338 | - var ex = objmapa.extentref; | |
| 337 | + var c = i3GEO.parametros.celularef; | |
| 338 | + var ex = i3GEO.parametros.extentref; | |
| 339 | 339 | var r = $i("i3geo_rosa"); |
| 340 | 340 | if(r) |
| 341 | 341 | r.style.display = "none" |
| 342 | 342 | } |
| 343 | 343 | } |
| 344 | - catch(e){g_celularef = 0;} | |
| 344 | + catch(e){i3GEO.parametros.celularef = 0;} | |
| 345 | 345 | var teladd = i3GEO.calculo.tela2dd(xfig,yfig,c,ex); |
| 346 | 346 | var teladms = i3GEO.calculo.dd2dms(teladd[0],teladd[1]); |
| 347 | 347 | objposicaocursor = { |
| ... | ... | @@ -388,7 +388,7 @@ i3GEO.eventos = { |
| 388 | 388 | }; |
| 389 | 389 | docMapa.onmouseout = function(){ |
| 390 | 390 | try |
| 391 | - {objmapa.parado="parar";} | |
| 391 | + {objmapaparado="parar";} | |
| 392 | 392 | catch(e){var e = "";} |
| 393 | 393 | }; |
| 394 | 394 | docMapa.onmousedown = function(exy){ | ... | ... |
classesjs/classe_gadgets.js
| ... | ... | @@ -191,10 +191,10 @@ i3GEO.gadgets = { |
| 191 | 191 | if(arguments.length == 1) |
| 192 | 192 | e.value = escala; |
| 193 | 193 | else |
| 194 | - e.value = parseInt(objmapa.scale); | |
| 194 | + e.value = parseInt(i3GEO.parametros.mapscale); | |
| 195 | 195 | }; |
| 196 | 196 | if(!$i("i3geo_escalanum")){ |
| 197 | - var i = $inputText(id,"138","i3geo_escalanum",$trad("d10"),"19",""); | |
| 197 | + var i = $inputText(id,"138","i3geo_escalanum",$trad("d10"),"19",parseInt(i3GEO.parametros.mapscale)); | |
| 198 | 198 | var ins = "<table><tr><td>1:"+i; |
| 199 | 199 | var temp = 'var nova = document.getElementById("i3geo_escalanum").value;'; |
| 200 | 200 | temp += 'i3GEO.navega.aplicaEscala(i3GEO.configura.locaplic,i3GEO.configura.sid,nova);'; |
| ... | ... | @@ -348,8 +348,8 @@ i3GEO.gadgets = { |
| 348 | 348 | if(arguments.length == 0) |
| 349 | 349 | {var id = i3GEO.gadgets.PARAMETROS.mostraVisual.idhtml;} |
| 350 | 350 | if($i(id)){ |
| 351 | - if (objmapa.listavisual != ""){ | |
| 352 | - var l = objmapa.listavisual.split(","); | |
| 351 | + if (i3GEO.parametros.listavisual != ""){ | |
| 352 | + var l = i3GEO.parametros.listavisual.split(","); | |
| 353 | 353 | var visuais = ""; |
| 354 | 354 | var li = l.length-1; |
| 355 | 355 | if(li >= 0){ |
| ... | ... | @@ -365,7 +365,7 @@ i3GEO.gadgets = { |
| 365 | 365 | /* |
| 366 | 366 | Function: troca |
| 367 | 367 | |
| 368 | - Troca o visual atual. A lista de visuais disponíveis é obtida em objmapa.listavisual | |
| 368 | + Troca o visual atual. A lista de visuais disponíveis é obtida em i3GEO.parametros.listavisual | |
| 369 | 369 | |
| 370 | 370 | Parameters: |
| 371 | 371 | |
| ... | ... | @@ -374,7 +374,7 @@ i3GEO.gadgets = { |
| 374 | 374 | troca: function(visual){ |
| 375 | 375 | var monta = function(retorno){ |
| 376 | 376 | try{ |
| 377 | - i3GEO.janela.fechaAguarde("ajaxredesenha"); | |
| 377 | + i3GEO.janela.fechaAguarde("i3GEO.atualiza"); | |
| 378 | 378 | // |
| 379 | 379 | //pega todas as imagens da interface |
| 380 | 380 | // |
| ... | ... | @@ -430,12 +430,12 @@ i3GEO.gadgets = { |
| 430 | 430 | } |
| 431 | 431 | i3GEO.configura.visual = visual; |
| 432 | 432 | } |
| 433 | - catch(e){alert("Ocorreu um erro. mudaVisual"+e);i3GEO.janela.fechaAguarde("ajaxredesenha");} | |
| 433 | + catch(e){alert("Ocorreu um erro. mudaVisual"+e);i3GEO.janela.fechaAguarde("i3GEO.atualiza");} | |
| 434 | 434 | }; |
| 435 | 435 | // |
| 436 | 436 | //pega a lista de imagens no diretório do i3geo correspondente ao visual selecionado |
| 437 | 437 | // |
| 438 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 438 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 439 | 439 | i3GEO.php.listaarquivos(monta,"imagens/visual/"+visual); |
| 440 | 440 | } |
| 441 | 441 | }, |
| ... | ... | @@ -503,8 +503,8 @@ i3GEO.gadgets = { |
| 503 | 503 | i3GEO.gadgets.quadros.quadroatual = 0; |
| 504 | 504 | if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.gadgets.quadros.avanca()") < 0) |
| 505 | 505 | {i3GEO.eventos.NAVEGAMAPA.push("i3GEO.gadgets.quadros.avanca()");} |
| 506 | - if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.gadgets.quadros.grava('extensao',objmapa.extent)") < 0) | |
| 507 | - {i3GEO.eventos.NAVEGAMAPA.push("i3GEO.gadgets.quadros.grava('extensao',objmapa.extent)");} | |
| 506 | + if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.gadgets.quadros.grava('extensao',i3GEO.parametros.mapexten)") < 0) | |
| 507 | + {i3GEO.eventos.NAVEGAMAPA.push("i3GEO.gadgets.quadros.grava('extensao',i3GEO.parametros.extent)");} | |
| 508 | 508 | }, |
| 509 | 509 | /* |
| 510 | 510 | Function: grava |
| ... | ... | @@ -572,8 +572,8 @@ i3GEO.gadgets = { |
| 572 | 572 | iclone.style.border="1px solid blue"; |
| 573 | 573 | i.parentNode.appendChild(iclone); |
| 574 | 574 | iclone.src = corpo.src; |
| 575 | - iclone.style.width = objmapa.w; | |
| 576 | - iclone.style.heigth = objmapa.h; | |
| 575 | + iclone.style.width = i3GEO.parametros.w; | |
| 576 | + iclone.style.heigth = i3GEO.parametros.h; | |
| 577 | 577 | iclone.style.top = corpo.style.top; |
| 578 | 578 | iclone.style.left = corpo.style.left; |
| 579 | 579 | } |
| ... | ... | @@ -596,8 +596,8 @@ i3GEO.gadgets = { |
| 596 | 596 | obj {Object} - objeto clicado |
| 597 | 597 | */ |
| 598 | 598 | opcoes: function(obj){ |
| 599 | - if (objmapa.utilizacgi == "sim"){ | |
| 600 | - objmapa.utilizacgi = "nao"; | |
| 599 | + if (i3GEO.parametros.utilizacgi == "sim"){ | |
| 600 | + i3GEO.parametros.utilizacgi = "nao"; | |
| 601 | 601 | var volta = function(){ |
| 602 | 602 | alert("Armazenamento de imagens ativado. As proximas imagens ficarao disponiveis"); |
| 603 | 603 | }; |
| ... | ... | @@ -641,8 +641,8 @@ i3GEO.gadgets = { |
| 641 | 641 | Lista as imagens armazenadas em uma nova página no navegador |
| 642 | 642 | */ |
| 643 | 643 | listaImagens: function(){ |
| 644 | - if (objmapa.utilizacgi == "sim"){ | |
| 645 | - objmapa.utilizacgi = "nao"; | |
| 644 | + if (i3GEO.parametros.utilizacgi == "sim"){ | |
| 645 | + i3GEO.parametros.utilizacgi = "nao"; | |
| 646 | 646 | var volta = function() |
| 647 | 647 | {alert("Armazenamento de imagens ativado. As proximas imagens ficarao disponiveis");}; |
| 648 | 648 | i3GEO.php.desativacgi(volta); | ... | ... |
classesjs/classe_guias.js
| ... | ... | @@ -57,10 +57,11 @@ i3GEO.guias = { |
| 57 | 57 | i3GEO.guias.mostra("adiciona"); |
| 58 | 58 | if(!$i("arvoreAdicionaTema")) |
| 59 | 59 | { |
| 60 | - if (objmapa.guiaMenu != undefined) | |
| 61 | - var ondeArvore = objmapa.guiaMenu+"obj"; | |
| 62 | - else | |
| 63 | - var ondeArvore = "guia2obj"; | |
| 60 | + try{ | |
| 61 | + if (objmapa.guiaMenu != undefined) | |
| 62 | + var ondeArvore = objmapa.guiaMenu+"obj"; | |
| 63 | + } | |
| 64 | + catch(e){var ondeArvore = "guia2obj";}; | |
| 64 | 65 | } |
| 65 | 66 | else |
| 66 | 67 | {var ondeArvore = "arvoreAdicionaTema";} |
| ... | ... | @@ -228,7 +229,7 @@ i3GEO.guias = { |
| 228 | 229 | }; |
| 229 | 230 | if($i(guia.idconteudo)){ |
| 230 | 231 | $i(guia.idconteudo).style.overflow="auto"; |
| 231 | - $i(guia.idconteudo).style.height = objmapa.h; | |
| 232 | + $i(guia.idconteudo).style.height = i3GEO.parametros.h; | |
| 232 | 233 | } |
| 233 | 234 | } |
| 234 | 235 | } |
| ... | ... | @@ -300,10 +301,10 @@ i3GEO.guias = { |
| 300 | 301 | if (i) |
| 301 | 302 | {i.style.width="0px";i.innerHTML="";} |
| 302 | 303 | var pos = "px"; |
| 303 | - var a = objmapa.h; | |
| 304 | - var l = objmapa.w + w; | |
| 305 | - objmapa.h = a; | |
| 306 | - objmapa.w = l; | |
| 304 | + var a = i3GEO.parametros.h; | |
| 305 | + var l = i3GEO.parametros.w + w; | |
| 306 | + i3GEO.parametros.h = a; | |
| 307 | + i3GEO.parametros.w = l; | |
| 307 | 308 | if (navm){pos = "";} |
| 308 | 309 | var i = $i("img"); |
| 309 | 310 | if(i){ |
| ... | ... | @@ -327,20 +328,20 @@ i3GEO.guias = { |
| 327 | 328 | var letras=["L","O"]; |
| 328 | 329 | for (var l=0;l<2; l++){ |
| 329 | 330 | if ($i("img"+letras[l])){ |
| 330 | - $i("img"+letras[l]).style.width = objmapa.w+pos; | |
| 331 | - $i("img"+letras[l]).style.height = objmapa.h+pos; | |
| 332 | - $i("corpoMapa"+letras[l]).style.width=objmapa.w+pos; | |
| 333 | - $i("corpoMapa"+letras[l]).style.height=objmapa.h+pos+pos; | |
| 331 | + $i("img"+letras[l]).style.width = i3GEO.parametros.w+pos; | |
| 332 | + $i("img"+letras[l]).style.height = i3GEO.parametros.h+pos; | |
| 333 | + $i("corpoMapa"+letras[l]).style.width=i3GEO.parametros.w+pos; | |
| 334 | + $i("corpoMapa"+letras[l]).style.height=i3GEO.parametros.h+pos+pos; | |
| 334 | 335 | $i("corpoMapa"+letras[l]).style.clip = 'rect(0 0 0 0)'; |
| 335 | 336 | } |
| 336 | 337 | } |
| 337 | 338 | var letras=["N","S"]; |
| 338 | 339 | for (var l=0;l<2; l++){ |
| 339 | 340 | if ($i("img"+letras[l])){ |
| 340 | - $i("img"+letras[l]).style.width = objmapa.w * 2+pos; | |
| 341 | - $i("img"+letras[l]).style.height = objmapa.h * 2+pos; | |
| 342 | - $i("corpoMapa"+letras[l]).style.width=objmapa.w * 3+pos; | |
| 343 | - $i("corpoMapa"+letras[l]).style.height=objmapa.h+pos; | |
| 341 | + $i("img"+letras[l]).style.width = i3GEO.parametros.w * 2+pos; | |
| 342 | + $i("img"+letras[l]).style.height = i3GEO.parametros.h * 2+pos; | |
| 343 | + $i("corpoMapa"+letras[l]).style.width=i3GEO.parametros.w * 3+pos; | |
| 344 | + $i("corpoMapa"+letras[l]).style.height=i3GEO.parametros.h+pos; | |
| 344 | 345 | $i("corpoMapa"+letras[l]).style.clip = 'rect(0 0 0 0)'; |
| 345 | 346 | } |
| 346 | 347 | } |
| ... | ... | @@ -377,12 +378,12 @@ i3GEO.guias = { |
| 377 | 378 | $i(i3GEO.guias.CONFIGURA[guias[g]].idconteudo).style.left="-1px"; |
| 378 | 379 | } |
| 379 | 380 | } |
| 380 | - ajaxredesenha("") | |
| 381 | + i3GEO.atualiza("") | |
| 381 | 382 | i.style.display="block"; |
| 382 | 383 | i.style.left = "-1px"; |
| 383 | 384 | i.style.width = "270px"; |
| 384 | 385 | }; |
| 385 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 386 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 386 | 387 | i3GEO.php.mudatamanho(temp,a,l); |
| 387 | 388 | } |
| 388 | 389 | else{ | ... | ... |
| ... | ... | @@ -0,0 +1,377 @@ |
| 1 | +/* | |
| 2 | +Title: I3Geo | |
| 3 | + | |
| 4 | +File: i3geo/classesjs/classe_i3geo.js | |
| 5 | + | |
| 6 | +About: Licença | |
| 7 | + | |
| 8 | +I3Geo Interface Integrada de Ferramentas de Geoprocessamento para Internet | |
| 9 | + | |
| 10 | +Direitos Autorais Reservados (c) 2006 Ministério do Meio Ambiente Brasil | |
| 11 | +Desenvolvedor: Edmar Moretti edmar.moretti@mma.gov.br | |
| 12 | + | |
| 13 | +Este programa é software livre; você pode redistribuí-lo | |
| 14 | +e/ou modificá-lo sob os termos da Licença Pública Geral | |
| 15 | +GNU conforme publicada pela Free Software Foundation; | |
| 16 | +tanto a versão 2 da Licença. | |
| 17 | +Este programa é distribuído na expectativa de que seja útil, | |
| 18 | +porém, SEM NENHUMA GARANTIA; nem mesmo a garantia implícita | |
| 19 | +de COMERCIABILIDADE OU ADEQUAÇÃO A UMA FINALIDADE ESPECÍFICA. | |
| 20 | +Consulte a Licença Pública Geral do GNU para mais detalhes. | |
| 21 | +Você deve ter recebido uma cópia da Licença Pública Geral do | |
| 22 | +GNU junto com este programa; se não, escreva para a | |
| 23 | +Free Software Foundation, Inc., no endereço | |
| 24 | +59 Temple Street, Suite 330, Boston, MA 02111-1307 USA. | |
| 25 | +*/ | |
| 26 | +/* | |
| 27 | +Class: i3GEO | |
| 28 | + | |
| 29 | +A classe i3GEO possuí os métodos de criação e atualização do mapa. Todas as subclasses | |
| 30 | +são baseadas em i3GEO, por exemplo, para criar uma janela flutuante sobre o mapa, | |
| 31 | +utilize i3GEO.janela.cria() | |
| 32 | + | |
| 33 | +Para inicializar o mapa, utilize i3GEO.inicia() e para atualizar o mapa, utilize i3GEO.atualiza() | |
| 34 | + | |
| 35 | +Ao inicializar ou atualizar o i3Geo, é feita uma chamada em AJAX | |
| 36 | +para a obtenção dos parâmetros necessários ao funcionamento do mapa. Esses parâmetros | |
| 37 | +são armazenados na variável i3GEO.parametros | |
| 38 | + | |
| 39 | +Nessa classe estão disponíveis variáveis internas utilizadas em várias funções, como i3GEO.temaAtivo | |
| 40 | +*/ | |
| 41 | +i3GEO = { | |
| 42 | + | |
| 43 | + /* | |
| 44 | + Variable: parametros | |
| 45 | + | |
| 46 | + Parâmetros obtidos do mapa atual | |
| 47 | + | |
| 48 | + Parameters: | |
| 49 | + | |
| 50 | + mapexten {String} - extensão geográfica do mapa no formato xmin ymin xmax ymax | |
| 51 | + | |
| 52 | + mapscale {Numeric} - denominador da escala do mapa | |
| 53 | + | |
| 54 | + mapres {Numeric} - resolução da imagem do mapa em DPI | |
| 55 | + | |
| 56 | + pixelsize {Numeric} - tamanho em unidades de terreno dos pixels da imagem | |
| 57 | + | |
| 58 | + mapfile {String} - nome do mapfile atualmente em uso | |
| 59 | + | |
| 60 | + cgi {String} - endereço do executável do mapserver no servidor acessível pela URL | |
| 61 | + | |
| 62 | + extentTotal {String} - extensão do mapa na inicialização | |
| 63 | + | |
| 64 | + mapimagem {String} - URL da imagem que compõe o mapa | |
| 65 | + | |
| 66 | + geoip {sim|nao} - indica se o geoip está instalado, podendo ou não ser utilizado | |
| 67 | + | |
| 68 | + listavisual {String} - lista de visuais disponíveis | |
| 69 | + | |
| 70 | + utilizacgi {sim|nao} - indica se o mapa atual está no modo CGI | |
| 71 | + | |
| 72 | + versaoms {String} - versão do Mapserver instalado no servidor | |
| 73 | + | |
| 74 | + mensagens {String} - mensagens para uso no letreiro | |
| 75 | + | |
| 76 | + w {Integer} - largura do mapa atual | |
| 77 | + | |
| 78 | + h {Integer} - altura do mapa atual | |
| 79 | + | |
| 80 | + locsistemas {String} - endereço do xml com a lista de sistemas adicionais | |
| 81 | + | |
| 82 | + locidentifica {String} - endereço do xml com a lista de sistemas de identificação | |
| 83 | + | |
| 84 | + r {sim|nao} - indica se o software R está instalado no servidor | |
| 85 | + | |
| 86 | + locmapas {String} - endereço do xml com a lista de mapas | |
| 87 | + | |
| 88 | + extentref {String} - extensão geográfica do mapa de referência | |
| 89 | + | |
| 90 | + celularef {Numeric} - tamanho do pixel do mapa de referência em unidades do terreno | |
| 91 | + */ | |
| 92 | + parametros: { | |
| 93 | + mapexten: "", | |
| 94 | + mapscale: "", | |
| 95 | + mapres: "", | |
| 96 | + pixelsize: "", | |
| 97 | + mapfile: "", | |
| 98 | + cgi: "", | |
| 99 | + extentTotal: "", | |
| 100 | + mapimagem: "", | |
| 101 | + geoip: "", | |
| 102 | + listavisual: "", | |
| 103 | + utilizacgi:"", | |
| 104 | + versaoms:"", | |
| 105 | + mensagens:"", | |
| 106 | + w: "", | |
| 107 | + h: "", | |
| 108 | + locsistemas:"", | |
| 109 | + locidentifica:"", | |
| 110 | + r:"", | |
| 111 | + locmapas:"", | |
| 112 | + celularef:"" | |
| 113 | + }, | |
| 114 | + /* | |
| 115 | + Variable: temaAtivo | |
| 116 | + | |
| 117 | + Indica o último tema que foi ativado no mapa | |
| 118 | + | |
| 119 | + Um tema é ativado em algumas ferramentas, permitindo aue ao se passar de uma ferramenta | |
| 120 | + para outra, os menus reflitam a última escolha | |
| 121 | + */ | |
| 122 | + temaAtivo: "", | |
| 123 | + | |
| 124 | + cria:function(){ | |
| 125 | + //para efeitos de compatibilidade | |
| 126 | + try {i3GEO.configura.locaplic = g_locaplic;} | |
| 127 | + catch(e){g_locaplic = i3GEO.configura.locaplic;}; | |
| 128 | + // | |
| 129 | + //calcula o tamanho do mapa | |
| 130 | + var diminuix = (navm) ? g_diminuixM : g_diminuixN; | |
| 131 | + var diminuiy = (navm) ? g_diminuiyM : g_diminuiyN; | |
| 132 | + if (e == undefined){ | |
| 133 | + var menos = 0; | |
| 134 | + if ($i("contemFerramentas")) | |
| 135 | + {menos = menos + parseInt($i("contemFerramentas").style.width);} | |
| 136 | + if ($i("ferramentas")) | |
| 137 | + {menos = menos + parseInt($i("ferramentas").style.width);} | |
| 138 | + var novow = parseInt(screen.availWidth) - diminuix; | |
| 139 | + var novoh = parseInt(screen.availHeight) - diminuiy; | |
| 140 | + if (novow >= 1024){novow = 1000;} | |
| 141 | + if (novoh >= 700){novoh = 700;} | |
| 142 | + //o try aqui é necessário por conta do uso possível do i3geo em um iframe | |
| 143 | + try{ | |
| 144 | + if (document.body.style.width < 400){ | |
| 145 | + var novow = parseInt(screen.availWidth) - diminuix; | |
| 146 | + var novoh = parseInt(screen.availHeight) - diminuiy; | |
| 147 | + window.resizeTo(screen.availWidth,screen.availHeight); | |
| 148 | + window.moveTo(0,0); | |
| 149 | + } | |
| 150 | + } | |
| 151 | + catch(e){var e = "";} | |
| 152 | + document.body.style.width = novow; | |
| 153 | + document.body.style.height = novoh; | |
| 154 | + var w = novow - menos - diminuix; | |
| 155 | + var h = novoh - diminuiy; | |
| 156 | + if (document.getElementById("corpoMapa")){ | |
| 157 | + if (document.getElementById("corpoMapa").style.width){ | |
| 158 | + var w = parseInt(document.getElementById("corpoMapa").style.width); | |
| 159 | + var h = parseInt(document.getElementById("corpoMapa").style.width); | |
| 160 | + } | |
| 161 | + if (document.getElementById("corpoMapa").style.height) | |
| 162 | + {var h = parseInt(document.getElementById("corpoMapa").style.height);} | |
| 163 | + } | |
| 164 | + } | |
| 165 | + else{ | |
| 166 | + var w = document.body.offsetWidth - parseInt($i("contemFerramentas").style.width) - diminuix; | |
| 167 | + var h = document.body.offsetHeight - diminuiy; | |
| 168 | + } | |
| 169 | + if($i("contemImg")){ | |
| 170 | + $i("contemImg").style.height=h + "px"; | |
| 171 | + $i("contemImg").style.width=w + "px"; | |
| 172 | + } | |
| 173 | + i3GEO.interface.cria(w,h); | |
| 174 | + i3GEO.parametros = { | |
| 175 | + mapexten: "", | |
| 176 | + mapscale: "", | |
| 177 | + mapres: "", | |
| 178 | + pixelsize: "", | |
| 179 | + mapfile: "", | |
| 180 | + cgi: "", | |
| 181 | + extentTotal: "", | |
| 182 | + mapimagem: "", | |
| 183 | + geoip: "", | |
| 184 | + listavisual: "", | |
| 185 | + utilizacgi:"", | |
| 186 | + versaoms:"", | |
| 187 | + mensagens:"", | |
| 188 | + w: w, | |
| 189 | + h: h, | |
| 190 | + locsistemas:"", | |
| 191 | + locidentifica:"", | |
| 192 | + r:"", | |
| 193 | + locmapas:"", | |
| 194 | + extentref:"" | |
| 195 | + }; | |
| 196 | + }, | |
| 197 | + inicia:function(){ | |
| 198 | + i3GEOmantemCompatibilidade(); | |
| 199 | + var montaMapa = function(retorno){ | |
| 200 | + if(retorno == ""){alert("Ocorreu um erro no mapa - montaMapa");retorno = {data:{erro: "erro"}};} | |
| 201 | + if(retorno.data.erro){ | |
| 202 | + i3GEO.janela.fechaAguarde("montaMapa"); | |
| 203 | + document.body.style.backgroundColor="white"; | |
| 204 | + document.body.innerHTML = "<br>Para abrir o i3Geo utilize o link:<br><a href="+i3GEO.configura.locaplic+"/ms_criamapa.php >"+i3GEO.configura.locaplic+"/ms_criamapa.php</a>"; | |
| 205 | + return("linkquebrado"); | |
| 206 | + } | |
| 207 | + else{ | |
| 208 | + if(retorno.data.variaveis){ | |
| 209 | + // | |
| 210 | + //executa com eval a string que é retornada pelo servidor (função inicia do mapa_controle.php | |
| 211 | + // | |
| 212 | + var tempo = ""; | |
| 213 | + var titulo = ""; | |
| 214 | + eval(retorno.data.variaveis); | |
| 215 | + try{ | |
| 216 | + if (titulo != "") | |
| 217 | + {top.document.title = titulo;} | |
| 218 | + } | |
| 219 | + catch(e){var e = "";} | |
| 220 | + i3GEO.ajuda.mostraJanela("Tempo de desenho em segundos: "+tempo,""); | |
| 221 | + | |
| 222 | + i3GEO.parametros.mapexten= mapexten; | |
| 223 | + i3GEO.parametros.mapscale= parseInt(mapscale); | |
| 224 | + i3GEO.parametros.mapres= mapres; | |
| 225 | + i3GEO.parametros.pixelsize= g_celula; | |
| 226 | + i3GEO.parametros.mapfile= mapfile; | |
| 227 | + i3GEO.parametros.cgi= cgi; | |
| 228 | + i3GEO.parametros.extentTotal=mapexten; | |
| 229 | + i3GEO.parametros.mapimagem= mapimagem; | |
| 230 | + i3GEO.parametros.geoip= geoip; | |
| 231 | + i3GEO.parametros.listavisual= listavisual; | |
| 232 | + i3GEO.parametros.utilizacgi= utilizacgi; | |
| 233 | + i3GEO.parametros.versaoms= versaoms; | |
| 234 | + i3GEO.parametros.mensagens= mensagens; | |
| 235 | + i3GEO.parametros.locsistemas = locsistemas; | |
| 236 | + i3GEO.parametros.locidentifica = locidentifica; | |
| 237 | + i3GEO.parametros.r = r; | |
| 238 | + i3GEO.parametros.locmapas = locmapas; | |
| 239 | + i3GEO.parametros.extentref = extentref; | |
| 240 | + i3GEO.gadgets.quadros.inicia(10); | |
| 241 | + i3GEO.gadgets.quadros.grava("extensao",mapexten); | |
| 242 | + i3GEO.arvoreDeCamadas.cria("",retorno.data.temas,i3GEO.configura.sid,i3GEO.configura.locaplic); | |
| 243 | + i3GEO.util.arvore("<b>"+$trad("p13")+"</b>","listaPropriedades",i3GEO.configura.listaDePropriedadesDoMapa); | |
| 244 | + i3GEO.gadgets.mostraBuscaRapida(); | |
| 245 | + i3GEO.guias.cria(); | |
| 246 | + if($i("arvoreAdicionaTema")) | |
| 247 | + i3GEO.arvoreDeTemas.cria(i3GEO.configura.sid,i3GEO.configura.locaplic,"arvoreAdicionaTema"); | |
| 248 | + | |
| 249 | + if($i("mst")){$i("mst").style.display="block";} | |
| 250 | + i3GEO.atualiza(retorno); | |
| 251 | + // | |
| 252 | + //calcula (opcional) o tamanho correto da tabela onde fica o mapa | |
| 253 | + //se não for feito esse cálculo, o mapa fica ajustado à esquerda | |
| 254 | + // | |
| 255 | + var temp = 0; | |
| 256 | + if ($i("contemFerramentas")){temp = temp + parseInt($i("contemFerramentas").style.width);} | |
| 257 | + if ($i("ferramentas")){temp = temp + parseInt($i("ferramentas").style.width);} | |
| 258 | + if($i("mst")) | |
| 259 | + {$i("mst").style.width=i3GEO.parametros.w + temp + "px";} | |
| 260 | + if (i3GEO.configura.entorno == "sim"){ | |
| 261 | + i3GEO.configura.entorno == "nao"; | |
| 262 | + i3GEO.navega.entorno.ativaDesativa(); | |
| 263 | + } | |
| 264 | + i3GEO.navega.autoRedesenho.ativa(); | |
| 265 | + if ($i("i3geo_escalanum")){$i("i3geo_escalanum").value = i3GEO.parametros.mapscale;} | |
| 266 | + if ((i3GEO.parametros.geoip == "nao") && ($i("ondeestou"))) | |
| 267 | + {$i("ondeestou").style.display="none";} | |
| 268 | + | |
| 269 | + i3GEO.interface.inicia(); | |
| 270 | + if (i3GEO.finaliza) | |
| 271 | + {eval(i3GEO.finaliza);} | |
| 272 | + } | |
| 273 | + else | |
| 274 | + {alert("Erro. Impossivel criar o mapa "+retorno.data);return;} | |
| 275 | + // | |
| 276 | + //ativa a janela de mensagens se for o caso | |
| 277 | + // | |
| 278 | + if(document.getElementById("ajuda")) //para efeitos de compatibilidade com as versões anteriores a 4.1 | |
| 279 | + {i3GEO.ajuda.DIVAJUDA = "ajuda";} | |
| 280 | + var abreJM = "sim"; | |
| 281 | + if (i3GEO.util.pegaCookie("g_janelaMen")){ | |
| 282 | + var abreJM = i3GEO.util.pegaCookie("g_janelaMen"); | |
| 283 | + if(abreJM == "sim") | |
| 284 | + i3GEO.configura.iniciaJanelaMensagens = true; | |
| 285 | + else | |
| 286 | + i3GEO.configura.iniciaJanelaMensagens = false; | |
| 287 | + } | |
| 288 | + if(i3GEO.configura.iniciaJanelaMensagens == true) | |
| 289 | + {i3GEO.ajuda.abreJanela();} | |
| 290 | + i3GEO.janela.fechaAguarde("montaMapa"); | |
| 291 | + if (i3GEO.configura.liberaGuias == "sim"){i3GEO.guias.libera();} | |
| 292 | + } | |
| 293 | + if($i("mst")){$i("mst").style.visibility ="visible";} | |
| 294 | + }; | |
| 295 | + if (!$i("i3geo")) | |
| 296 | + {document.body.id = "i3geo";} | |
| 297 | + $i("i3geo").className = "yui-skin-sam"; | |
| 298 | + if($i("mst")) | |
| 299 | + $i("mst").style.visibility ="hidden"; | |
| 300 | + // | |
| 301 | + //se g_sid="", o html foi aberto diretamente | |
| 302 | + //então, é necessário criar os arquivos temporários do mapa | |
| 303 | + //essa operação deve ser assíncrona | |
| 304 | + // | |
| 305 | + if(i3GEO.configura.sid==""){ | |
| 306 | + var mashup = function (retorno){ | |
| 307 | + i3GEO.configura.sid = retorno.data; | |
| 308 | + i3GEO.inicia(); | |
| 309 | + }; | |
| 310 | + i3GEO.php.criamapa(mashup,i3GEO.configura.mashuppar); | |
| 311 | + } | |
| 312 | + else{ | |
| 313 | + //YAHOO.log("Chamada AJAX para obter o mapa inicial", "i3geo"); | |
| 314 | + i3GEO.janela.abreAguarde("montaMapa",$trad("o5")); | |
| 315 | + i3GEO.php.inicia(montaMapa,g_embedLegenda,i3GEO.parametros.w,i3GEO.parametros.h); | |
| 316 | + } | |
| 317 | + if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.janela.fechaAguarde()") < 0) | |
| 318 | + {i3GEO.eventos.NAVEGAMAPA.push("i3GEO.janela.fechaAguarde()");} | |
| 319 | + }, | |
| 320 | + finaliza:"", | |
| 321 | + | |
| 322 | + /* | |
| 323 | + Function: atualiza | |
| 324 | + | |
| 325 | + Atualiza o mapa atual, alterando a imagem do mapa e os gadgets ativos | |
| 326 | + | |
| 327 | + Parameters: | |
| 328 | + | |
| 329 | + retorno {String} - string com os parâmetros do novo mapa. Se retorno não | |
| 330 | + for especificado, será feita uma chamada em ajax para sua obtenção. O resultado | |
| 331 | + dessa chamada é armazenada em i3GEO.parametros | |
| 332 | + */ | |
| 333 | + atualiza: function(retorno){ | |
| 334 | + //verifica se o parâmetro retorno existe, caso contrário, | |
| 335 | + //faz a chamada ao programa PHP para obter os parâmetros | |
| 336 | + if(arguments.length == 0 || retorno == ""){ | |
| 337 | + var legimagem = ""; | |
| 338 | + i3GEO.janela.abreAguarde("ajaxiniciaParametros",$trad("o1")); | |
| 339 | + i3GEO.php.corpo(i3GEO.atualiza,g_tipoimagem); | |
| 340 | + } | |
| 341 | + else{ | |
| 342 | + if(arguments.length == 0){return;} | |
| 343 | + i3GEO.mapa.corpo.verifica(retorno); | |
| 344 | + var tempo = ""; | |
| 345 | + if(i3GEO.desenho.richdraw) | |
| 346 | + {i3GEO.desenho.richdraw.clearWorkspace();} | |
| 347 | + mapscale = ""; | |
| 348 | + mapexten = ""; | |
| 349 | + //transforma o retorno em variáveis | |
| 350 | + eval(retorno.data.variaveis); | |
| 351 | + | |
| 352 | + i3GEO.arvoreDeCamadas.atualiza(retorno.data.temas); | |
| 353 | + if (i3GEO.parametros.mapscale != mapscale) | |
| 354 | + i3GEO.arvoreDeCamadas.atualizaFarol(mapscale); | |
| 355 | + | |
| 356 | + i3GEO.parametros.mapexten = mapexten; | |
| 357 | + i3GEO.parametros.mapscale = mapscale; | |
| 358 | + i3GEO.parametros.mapres = mapres; | |
| 359 | + i3GEO.parametros.pixelsize = g_celula; | |
| 360 | + i3GEO.parametros.mapimagem = mapimagem; | |
| 361 | + | |
| 362 | + i3GEO.interface.redesenha(); | |
| 363 | + g_operacao = ""; | |
| 364 | + i3GEO.parametros.mapexten = mapexten; | |
| 365 | + if ($i("mensagemt")) | |
| 366 | + {$i("mensagemt").value = i3GEO.parametros.mapexten;} | |
| 367 | + | |
| 368 | + i3GEO.arvoreDeCamadas.CAMADAS = retorno.data.temas; | |
| 369 | + i3GEO.eventos.navegaMapa(); | |
| 370 | + if (i3GEO.configura.entorno == "sim"){ | |
| 371 | + i3GEO.navega.entorno.geraURL(); | |
| 372 | + i3GEO.navega.entorno.ajustaPosicao(); | |
| 373 | + } | |
| 374 | + i3GEO.ajuda.mostraJanela("Tempo de redesenho em segundos: "+tempo,""); | |
| 375 | + } | |
| 376 | + } | |
| 377 | +}; | |
| 0 | 378 | \ No newline at end of file | ... | ... |
classesjs/classe_interface.js
| ... | ... | @@ -95,7 +95,7 @@ i3GEO.interface = { |
| 95 | 95 | { |
| 96 | 96 | $i("img").onload = ""; |
| 97 | 97 | //atualiza quadro |
| 98 | - i3GEO.gadgets.quadros.grava("imagem",objmapa.mapimagem); | |
| 98 | + i3GEO.gadgets.quadros.grava("imagem",i3GEO.parametros.mapimagem); | |
| 99 | 99 | var temp = function(retorno){ |
| 100 | 100 | eval(retorno.data); |
| 101 | 101 | i3GEO.gadgets.quadros.grava("legenda",legimagem); |
| ... | ... | @@ -122,14 +122,14 @@ i3GEO.interface = { |
| 122 | 122 | { |
| 123 | 123 | $i("imgtemp").style.left = parseInt($i("img").style.left); |
| 124 | 124 | $i("imgtemp").style.top = parseInt($i("img").style.top); |
| 125 | - $i("imgtemp").style.width = objmapa.w; | |
| 126 | - $i("imgtemp").style.height = objmapa.h; | |
| 125 | + $i("imgtemp").style.width = i3GEO.parametros.w; | |
| 126 | + $i("imgtemp").style.height = i3GEO.parametros.h; | |
| 127 | 127 | $i("imgtemp").style.display="block"; |
| 128 | 128 | $i("imgtemp").style.backgroundImage = 'url("'+$i("img").src+'")'; |
| 129 | 129 | } |
| 130 | 130 | $i("img").style.left = 0; |
| 131 | 131 | $i("img").style.top = 0; |
| 132 | - $i("img").src=objmapa.mapimagem; | |
| 132 | + $i("img").src=i3GEO.parametros.mapimagem; | |
| 133 | 133 | }, |
| 134 | 134 | cria:function(){ |
| 135 | 135 | var ins = "<table>"; |
| ... | ... | @@ -140,15 +140,59 @@ i3GEO.interface = { |
| 140 | 140 | $i(i3GEO.interface.IDCORPO).innerHTML = ins; |
| 141 | 141 | }, |
| 142 | 142 | inicia:function(){ |
| 143 | + if ($i("contemImg")) | |
| 144 | + {var elemento = "contemImg";} | |
| 145 | + else | |
| 146 | + {var elemento = "img";} | |
| 147 | + i3GEO.mapa.ajustaPosicao(elemento); | |
| 143 | 148 | var i = $i("img"); |
| 144 | - i.style.width=objmapa.w +"px"; | |
| 145 | - i.style.height=objmapa.h +"px"; | |
| 149 | + i.style.width=i3GEO.parametros.w +"px"; | |
| 150 | + i.style.height=i3GEO.parametros.h +"px"; | |
| 146 | 151 | var estilo = $i(i3GEO.interface.IDCORPO).style; |
| 147 | - estilo.width=objmapa.w +"px"; | |
| 148 | - estilo.height=objmapa.h +"px"; | |
| 149 | - estilo.clip = 'rect('+0+" "+(objmapa.w)+" "+(objmapa.h)+" "+0+')'; | |
| 150 | - objmapa.parado = "nao"; //utilizado para verificar se o mouse esta parado | |
| 151 | - i3GEO.eventos.ativa(i); | |
| 152 | + estilo.width=i3GEO.parametros.w +"px"; | |
| 153 | + estilo.height=i3GEO.parametros.h +"px"; | |
| 154 | + estilo.clip = 'rect('+0+" "+(i3GEO.parametros.w)+" "+(i3GEO.parametros.h)+" "+0+')'; | |
| 155 | + objmapaparado = "nao"; //utilizado para verificar se o mouse esta parado | |
| 156 | + i3GEO.eventos.ativa(i); | |
| 157 | + i3GEO.gadgets.mostraCoordenadasGEO(); | |
| 158 | + i3GEO.gadgets.mostraEscalaNumerica(); | |
| 159 | + i3GEO.gadgets.mostraEscalaGrafica(); | |
| 160 | + i3GEO.gadgets.visual.inicia(); | |
| 161 | + i3GEO.ajuda.ativaLetreiro(i3GEO.parametros.mensagens); | |
| 162 | + // | |
| 163 | + //inicia as barras de ferramentas | |
| 164 | + // | |
| 165 | + var imagemxy = i3GEO.util.pegaPosicaoObjeto($i(i3GEO.interface.IDCORPO)); | |
| 166 | + if ($i("barraDeBotoes1")){ | |
| 167 | + var x1 = imagemxy[0]+40; | |
| 168 | + var y1 = imagemxy[1]+10; | |
| 169 | + } | |
| 170 | + if ($i("barraDeBotoes2")){ | |
| 171 | + var x2 = imagemxy[0]; | |
| 172 | + var y2 = imagemxy[1]+10; | |
| 173 | + } | |
| 174 | + else{ | |
| 175 | + if ($i("barraDeBotoes1")){ | |
| 176 | + var x1 = imagemxy[0]; | |
| 177 | + var x2 = imagemxy[1]+10; | |
| 178 | + } | |
| 179 | + } | |
| 180 | + if ($i("barraDeBotoes1")) | |
| 181 | + i3GEO.barraDeBotoes.inicializaBarra("barraDeBotoes1","i3geo_barra1",true,x1,y1); | |
| 182 | + if ($i("barraDeBotoes2")) | |
| 183 | + i3GEO.barraDeBotoes.inicializaBarra("barraDeBotoes2","i3geo_barra2",false,x2,y2); | |
| 184 | + //ativa as funções dos botões | |
| 185 | + i3GEO.barraDeBotoes.ativaBotoes(); | |
| 186 | + if (document.getElementById("botao3d")) | |
| 187 | + { | |
| 188 | + if (g_3dmap == ""){document.getElementById("botao3d").style.display="none";} | |
| 189 | + } | |
| 190 | + i3GEO.maparef.atualiza(); | |
| 191 | + if (i3GEO.configura.mapaRefDisplay != "none") | |
| 192 | + { | |
| 193 | + if (i3GEO.util.pegaCookie("i3GEO.configura.mapaRefDisplay")){i3GEO.configura.mapaRefDisplay = i3GEO.util.pegaCookie("i3GEO.configura.mapaRefDisplay");} | |
| 194 | + if (i3GEO.configura.mapaRefDisplay == "block"){i3GEO.maparef.inicia();} | |
| 195 | + } | |
| 152 | 196 | } |
| 153 | 197 | }, |
| 154 | 198 | /* |
| ... | ... | @@ -159,7 +203,7 @@ i3GEO.interface = { |
| 159 | 203 | flamingo:{ |
| 160 | 204 | redesenha: function(){ |
| 161 | 205 | var w = parseInt($i("flamingo").style.width); |
| 162 | - if (w == objmapa.w) | |
| 206 | + if (w == i3GEO.parametros.w) | |
| 163 | 207 | {$i("flamingo").style.height = parseInt($i("flamingo").style.height)+1;} |
| 164 | 208 | else |
| 165 | 209 | {$i("flamingo").style.height = parseInt($i("flamingo").style.height)-1;} |
| ... | ... | @@ -180,14 +224,23 @@ i3GEO.interface = { |
| 180 | 224 | }, |
| 181 | 225 | inicia: function(){ |
| 182 | 226 | var monta = function(retorno){ |
| 183 | - $i("flamingo").style.height = objmapa.h + 45; | |
| 227 | + $i("flamingo").style.height = i3GEO.parametros.h + 45; | |
| 184 | 228 | childPopups = new Array(); |
| 185 | 229 | childPopupNr = 0; |
| 186 | 230 | var so = new SWFObject(i3GEO.configura.locaplic+"/pacotes/flamingo/flamingo/flamingo.swf?config="+retorno.data, "flamingoi", "100%", "100%", "8", "#eaeaea"); |
| 187 | - so.addParam("wmode","window"); | |
| 231 | + so.addParam("wmode","transparent"); | |
| 188 | 232 | so.write("flamingo"); |
| 189 | 233 | } |
| 190 | 234 | i3GEO.php.flamingo(monta); |
| 235 | + i3GEO.eventos.ativa($i("flamingo")); | |
| 236 | + | |
| 237 | + i3GEO.maparef.atualiza(); | |
| 238 | + if (i3GEO.configura.mapaRefDisplay != "none") | |
| 239 | + { | |
| 240 | + if (i3GEO.util.pegaCookie("i3GEO.configura.mapaRefDisplay")){i3GEO.configura.mapaRefDisplay = i3GEO.util.pegaCookie("i3GEO.configura.mapaRefDisplay");} | |
| 241 | + if (i3GEO.configura.mapaRefDisplay == "block"){i3GEO.maparef.inicia();} | |
| 242 | + } | |
| 243 | + | |
| 191 | 244 | } |
| 192 | 245 | }, |
| 193 | 246 | /* |
| ... | ... | @@ -230,8 +283,8 @@ i3GEO.interface = { |
| 230 | 283 | }, |
| 231 | 284 | inicia: function(){ |
| 232 | 285 | var montaMapa = function(){ |
| 233 | - var url = window.location.protocol+"//"+window.location.host+objmapa.cgi+"?"; | |
| 234 | - url += "map="+objmapa.mapfile+"&mode=map&SRS=epsg:4326&"; | |
| 286 | + var url = window.location.protocol+"//"+window.location.host+i3GEO.parametros.cgi+"?"; | |
| 287 | + url += "map="+i3GEO.parametros.mapfile+"&mode=map&SRS=epsg:4326&"; | |
| 235 | 288 | i3geoOL = new OpenLayers.Map('openlayers', { controls: [] }); |
| 236 | 289 | i3geoOLlayer = new OpenLayers.Layer.WMS( "Temas I3Geo", url,{layers:'estadosl'},{'buffer':0},{isBaseLayer:true, opacity: 1}); |
| 237 | 290 | i3geoOLlayer.setVisibility(true); |
| ... | ... | @@ -291,7 +344,7 @@ i3GEO.interface = { |
| 291 | 344 | |
| 292 | 345 | i3geoOL.addControl(new OpenLayers.Control.LayerSwitcher()); |
| 293 | 346 | |
| 294 | - var m = objmapa.extent.split(" "); | |
| 347 | + var m = i3GEO.parametros.mapexten.split(" "); | |
| 295 | 348 | var b = new OpenLayers.Bounds(m[0],m[1],m[2],m[3]); |
| 296 | 349 | i3geoOL.zoomToExtent(b); |
| 297 | 350 | |
| ... | ... | @@ -302,6 +355,11 @@ i3GEO.interface = { |
| 302 | 355 | //var overview = new OpenLayers.Control.OverviewMap(options); |
| 303 | 356 | //i3geoOL.addControl(overview); |
| 304 | 357 | i3GEO.eventos.ativa($i("openlayers")); |
| 358 | + var pos = i3GEO.util.pegaPosicaoObjeto($i("openlayers")); | |
| 359 | + if ($i("aguarde")){ | |
| 360 | + $top("aguarde",pos[1]); | |
| 361 | + $left("aguarde",pos[0]); | |
| 362 | + } | |
| 305 | 363 | }; |
| 306 | 364 | i3GEO.php.openlayers(montaMapa); |
| 307 | 365 | } | ... | ... |
classesjs/classe_janela.js
| ... | ... | @@ -35,6 +35,12 @@ As janelas são criadas por meio da biblioteca YUI |
| 35 | 35 | */ |
| 36 | 36 | i3GEO.janela = { |
| 37 | 37 | /* |
| 38 | + Variable: TIPS | |
| 39 | + | |
| 40 | + Lista os tips inseridos no mapa, possibilitando sua remoção em lote | |
| 41 | + */ | |
| 42 | + TIPS: new Array(), | |
| 43 | + /* | |
| 38 | 44 | Property: ANTESCRIA |
| 39 | 45 | |
| 40 | 46 | Lista com os nomes das funções que serão executadas antes de abrir a janela. |
| ... | ... | @@ -281,11 +287,11 @@ i3GEO.janela = { |
| 281 | 287 | else |
| 282 | 288 | {novoel.style.opacity = ".9";} |
| 283 | 289 | document.body.appendChild(novoel); |
| 284 | - objmapa.objtips.push($i(Nid)); | |
| 290 | + i3GEO.janela.TIPS.push($i(Nid)); | |
| 285 | 291 | // |
| 286 | 292 | //monta o TIP com o id único criado |
| 287 | 293 | //quando o usuário escolhe a opção de fixar, |
| 288 | - //o div é incluido no array objmapa.objtips | |
| 294 | + //o div é incluido no array i3GEO.janela.TIPS | |
| 289 | 295 | //quando o mapa é redesenhado, esses elementos são excluídos do mapa |
| 290 | 296 | // |
| 291 | 297 | var res = "<div id='"+Nid+"cabecatip' style='text-align:left;background-color:rgb(240,240,240)'>"; |
| ... | ... | @@ -308,34 +314,34 @@ i3GEO.janela = { |
| 308 | 314 | /* |
| 309 | 315 | Function: excluiTips |
| 310 | 316 | |
| 311 | - Exclui os tips armazenados na variável objmapa.objtips | |
| 317 | + Exclui os tips armazenados na variável i3GEO.janela.TIPS | |
| 312 | 318 | |
| 313 | 319 | Parameters: |
| 314 | 320 | |
| 315 | 321 | tipo {String} - todos|naofixos tipos de tips que serão excluídos |
| 316 | 322 | */ |
| 317 | 323 | excluiTips: function(tipo){ |
| 318 | - if(objmapa.objtips.length > 0){ | |
| 319 | - var ot = objmapa.objtips.length-1; | |
| 324 | + if(i3GEO.janela.TIPS.length > 0){ | |
| 325 | + var ot = i3GEO.janela.TIPS.length-1; | |
| 320 | 326 | if (ot >= 0){ |
| 321 | 327 | do{ |
| 322 | 328 | if(tipo == 'todos'){ |
| 323 | - if(objmapa.objtips[ot]){ | |
| 324 | - var i = $i(objmapa.objtips[ot].id); | |
| 329 | + if(i3GEO.janela.TIPS[ot]){ | |
| 330 | + var i = $i(i3GEO.janela.TIPS[ot].id); | |
| 325 | 331 | document.body.removeChild(i); |
| 326 | 332 | } |
| 327 | 333 | } |
| 328 | 334 | if(tipo == 'naofixos'){ |
| 329 | - if ($i(objmapa.objtips[ot])){ | |
| 330 | - if($i(objmapa.objtips[ot].id+"cabecatip").innerHTML != ""){ | |
| 331 | - document.body.removeChild($i(objmapa.objtips[ot].id)); | |
| 335 | + if ($i(i3GEO.janela.TIPS[ot])){ | |
| 336 | + if($i(i3GEO.janela.TIPS[ot].id+"cabecatip").innerHTML != ""){ | |
| 337 | + document.body.removeChild($i(i3GEO.janela.TIPS[ot].id)); | |
| 332 | 338 | } |
| 333 | 339 | } |
| 334 | 340 | } |
| 335 | 341 | } |
| 336 | 342 | while(ot--) |
| 337 | 343 | if(tipo == "todos") |
| 338 | - {objmapa.objtips = new Array();} | |
| 344 | + {i3GEO.janela.TIPS = new Array();} | |
| 339 | 345 | } |
| 340 | 346 | } |
| 341 | 347 | }, |
| ... | ... | @@ -357,7 +363,7 @@ i3GEO.janela = { |
| 357 | 363 | i3GEO.janela.fechaAguarde("ajaxdestaca"); |
| 358 | 364 | i3GEO.janela.fechaAguarde("ajaxabrelente"); |
| 359 | 365 | i3GEO.janela.fechaAguarde("ajaxiniciaParametros"); |
| 360 | - i3GEO.janela.fechaAguarde("ajaxredesenha"); | |
| 366 | + i3GEO.janela.fechaAguarde("i3GEO.atualiza"); | |
| 361 | 367 | i3GEO.janela.fechaAguarde("ajaxCorpoMapaEntorno"); |
| 362 | 368 | i3GEO.janela.fechaAguarde("ajaxCorpoMapa"); |
| 363 | 369 | i3GEO.janela.fechaAguarde("ajaxLegenda"); | ... | ... |
classesjs/classe_mapa.js
| ... | ... | @@ -41,8 +41,12 @@ i3GEO.mapa = { |
| 41 | 41 | Ajusta o posicionamento do corpo do mapa |
| 42 | 42 | |
| 43 | 43 | Esse ajuste é necessário na inicialização, uma vez que o mapa utiliza style.position='absolute' |
| 44 | + | |
| 45 | + Parameters: | |
| 46 | + | |
| 47 | + elemento {String} - id do elemento HTML que deverá ser ajustado e que contém o mapa | |
| 44 | 48 | */ |
| 45 | - ajustaPosicao: function(){ | |
| 49 | + ajustaPosicao: function(elemento){ | |
| 46 | 50 | try{ |
| 47 | 51 | imagemxi = 0; |
| 48 | 52 | imagemyi = 0; |
| ... | ... | @@ -52,38 +56,19 @@ i3GEO.mapa = { |
| 52 | 56 | if(!dc){return;} |
| 53 | 57 | if (dc.style.left){imagemxi += parseInt(dc.style.left);} |
| 54 | 58 | if (dc.style.top){imagemyi += parseInt(dc.style.top);} |
| 55 | - if ($i("contemImg")) | |
| 56 | - {var dc = $i("contemImg");} | |
| 57 | - else | |
| 58 | - {var dc = $i("img");} | |
| 59 | - if ($i("openlayers")) | |
| 60 | - {var dc = $i("openlayers");} | |
| 61 | - if ($i("flamingo")) | |
| 62 | - {var dc = $i("flamingo");} | |
| 59 | + var dc = $i(elemento); | |
| 63 | 60 | while ((dc.offsetParent) && (dc.offsetParent.id != "i3geo")){ |
| 64 | 61 | dc = dc.offsetParent; |
| 65 | 62 | imagemxi = imagemxi + dc.offsetLeft; |
| 66 | 63 | imagemyi = imagemyi + dc.offsetTop; |
| 67 | - } | |
| 68 | - var c = $i("corpoMapa"); | |
| 64 | + } | |
| 65 | + var c = $i(i3GEO.interface.IDCORPO); | |
| 69 | 66 | if (c){ |
| 70 | 67 | c.style.position="absolute"; |
| 71 | - $left("corpoMapa",imagemxi); | |
| 72 | - $top("corpoMapa",imagemyi); | |
| 73 | - if ($i("i3geo").style.left){$left("corpoMapa",imagemxi - parseInt($i("i3geo").style.left));} | |
| 74 | - if ($i("i3geo").style.top){$top("corpoMapa",imagemyi - parseInt($i("i3geo").style.top));} | |
| 75 | - } | |
| 76 | - if ($i("ref")){ | |
| 77 | - var dc = $i("ref"); | |
| 78 | - while (dc.offsetParent.id != "i3geo"){ | |
| 79 | - dc = dc.offsetParent; | |
| 80 | - imagemxref = imagemxref + dc.offsetLeft; | |
| 81 | - imagemyref = imagemyref + dc.offsetTop; | |
| 82 | - } | |
| 83 | - } | |
| 84 | - if ($i("aguarde")){ | |
| 85 | - $top("aguarde",imagemyi); | |
| 86 | - $left("aguarde",imagemxi); | |
| 68 | + $left(i3GEO.interface.IDCORPO,imagemxi); | |
| 69 | + $top(i3GEO.interface.IDCORPO,imagemyi); | |
| 70 | + if ($i("i3geo").style.left){$left(i3GEO.interface.IDCORPO,imagemxi - parseInt($i("i3geo").style.left));} | |
| 71 | + if ($i("i3geo").style.top){$top(i3GEO.interface.IDCORPO,imagemyi - parseInt($i("i3geo").style.top));} | |
| 87 | 72 | } |
| 88 | 73 | } |
| 89 | 74 | catch(e){alert("Ocorreu um erro. i3GEO.mapa.ajustaPosicao"+e);} |
| ... | ... | @@ -92,10 +77,9 @@ i3GEO.mapa = { |
| 92 | 77 | Function: ativaLogo |
| 93 | 78 | |
| 94 | 79 | Ativa ou desativa a logo marca. |
| 95 | - | |
| 96 | 80 | */ |
| 97 | 81 | ativaLogo: function(){ |
| 98 | - i3GEO.php.ativalogo(ajaxredesenha); | |
| 82 | + i3GEO.php.ativalogo(i3GEO.atualiza); | |
| 99 | 83 | }, |
| 100 | 84 | /* |
| 101 | 85 | Function: insereToponimo |
| ... | ... | @@ -138,12 +122,12 @@ i3GEO.mapa = { |
| 138 | 122 | var digi = function(retorno){ |
| 139 | 123 | //se texto for igual a vazio é pq o valor foi pego de um atributo |
| 140 | 124 | if(texto == ""){ |
| 141 | - i3GEO.janela.fechaAguarde("ajaxredesenha"); | |
| 125 | + i3GEO.janela.fechaAguarde("i3GEO.atualiza"); | |
| 142 | 126 | texto = retorno.data; |
| 143 | 127 | } |
| 144 | 128 | if (texto != " "){ |
| 145 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 146 | - i3GEO.php.insereAnnotation(ajaxredesenha,g_nomepin+"topo",objposicaocursor.ddx+" "+objposicaocursor.ddy,texto,pos,pl,ox,oy,mf,md,forca,fcs,fxs,fys,m,c,ys,xs,cs,cf,a,t,f); | |
| 129 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 130 | + i3GEO.php.insereAnnotation(i3GEO.atualiza,g_nomepin+"topo",objposicaocursor.ddx+" "+objposicaocursor.ddy,texto,pos,pl,ox,oy,mf,md,forca,fcs,fxs,fys,m,c,ys,xs,cs,cf,a,t,f); | |
| 147 | 131 | } |
| 148 | 132 | }; |
| 149 | 133 | if (doc.getElementById("tipoInsere").value == "digitando") |
| ... | ... | @@ -154,7 +138,7 @@ i3GEO.mapa = { |
| 154 | 138 | if ((doc.getElementById("temasLigados")) && (doc.getElementById("itemsel"))){ |
| 155 | 139 | var tema = doc.getElementById("temasLigados").value; |
| 156 | 140 | var item = doc.getElementById("itemsel").value; |
| 157 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 141 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 158 | 142 | i3GEO.php.identificaunico(digi,objposicaocursor.ddx+","+objposicaocursor.ddy,tema,item); |
| 159 | 143 | } |
| 160 | 144 | } |
| ... | ... | @@ -184,8 +168,8 @@ i3GEO.mapa = { |
| 184 | 168 | } |
| 185 | 169 | if (g_nomepin == ""){alert("Nenhum tema definido para editar");} |
| 186 | 170 | else{ |
| 187 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 188 | - i3GEO.php.insereSHP(ajaxredesenha,g_nomepin,item,valoritem,objposicaocursor.ddx+" "+objposicaocursor.ddy); | |
| 171 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 172 | + i3GEO.php.insereSHP(i3GEO.atualiza,g_nomepin,item,valoritem,objposicaocursor.ddx+" "+objposicaocursor.ddy); | |
| 189 | 173 | } |
| 190 | 174 | } |
| 191 | 175 | }, |
| ... | ... | @@ -224,8 +208,8 @@ i3GEO.mapa = { |
| 224 | 208 | if (itens == "") |
| 225 | 209 | {alert("Nenhum item foi escolhido");} |
| 226 | 210 | else{ |
| 227 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 228 | - i3GEO.php.insereSHPgrafico(ajaxredesenha,tema,objposicaocursor.ddx,objposicaocursor.ddy,itens,shadow_height,width,inclinacao); | |
| 211 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 212 | + i3GEO.php.insereSHPgrafico(i3GEO.atualiza,tema,objposicaocursor.ddx,objposicaocursor.ddy,itens,shadow_height,width,inclinacao); | |
| 229 | 213 | } |
| 230 | 214 | } |
| 231 | 215 | } |
| ... | ... | @@ -267,7 +251,7 @@ i3GEO.mapa = { |
| 267 | 251 | Restaura o mapa para a cópia de segurança existente no servidor |
| 268 | 252 | */ |
| 269 | 253 | restaura: function(){ |
| 270 | - i3GEO.php.recuperamapa(ajaxredesenha); | |
| 254 | + i3GEO.php.recuperamapa(i3GEO.atualiza); | |
| 271 | 255 | } |
| 272 | 256 | }, |
| 273 | 257 | /* |
| ... | ... | @@ -416,7 +400,7 @@ i3GEO.mapa = { |
| 416 | 400 | Abre a janela para salvar localmente o mapfile utilizado no mapa atual |
| 417 | 401 | */ |
| 418 | 402 | salvaMapa: function(){ |
| 419 | - if(objmapa.mapfile == "") | |
| 403 | + if(i3GEO.parametros == "") | |
| 420 | 404 | {alert("Essa opcao nao pode ser ativada. Consulte o administrador do sistema. Mapfile nao esta exposto.");return;} |
| 421 | 405 | i3GEO.janela.cria("300px","180px",i3GEO.configura.locaplic+"/ferramentas/salvamapa/index.htm","","","Salva mapa"); |
| 422 | 406 | }, |
| ... | ... | @@ -433,7 +417,7 @@ i3GEO.mapa = { |
| 433 | 417 | Abre a janela para converter o mapa atual em web service WMS |
| 434 | 418 | */ |
| 435 | 419 | convertews: function(){ |
| 436 | - if(objmapa.mapfile == "") | |
| 420 | + if(i3GEO.parametros.mapfile == "") | |
| 437 | 421 | {alert("Essa opcao nao pode ser ativada. Consulte o administrador do sistema. Mapfile nao esta exposto.");return;} |
| 438 | 422 | i3GEO.janela.cria("440px","280px",i3GEO.configura.locaplic+"/ferramentas/convertews/index.htm","","","Web service"); |
| 439 | 423 | }, |
| ... | ... | @@ -590,7 +574,7 @@ i3GEO.mapa = { |
| 590 | 574 | alert("Recuperacao impossivel. Sera feita uma tentativa de reiniciar o mapa."); |
| 591 | 575 | if (i3GEO.mapa.recupera.TENTATIVA == 1){ |
| 592 | 576 | i3GEO.mapa.recupera.TENTATIVA = 2; |
| 593 | - i3GEO.php.reiniciaMapa(ajaxredesenha); | |
| 577 | + i3GEO.php.reiniciaMapa(i3GEO.atualiza); | |
| 594 | 578 | } |
| 595 | 579 | } |
| 596 | 580 | } | ... | ... |
classesjs/classe_maparef.js
| ... | ... | @@ -32,6 +32,17 @@ Class: i3GEO.maparef |
| 32 | 32 | Cria e processa o mapa de referência |
| 33 | 33 | */ |
| 34 | 34 | i3GEO.maparef = { |
| 35 | + /* | |
| 36 | + Variable: fatorZoomDinamico | |
| 37 | + | |
| 38 | + Define o fator de zoom inicial do mapa de referência quando o modo dinâmico for ativado | |
| 39 | + */ | |
| 40 | + fatorZoomDinamico: -3, | |
| 41 | + /* | |
| 42 | + Function: inicia | |
| 43 | + | |
| 44 | + Inicializa o mapa de referência | |
| 45 | + */ | |
| 35 | 46 | inicia: function(){ |
| 36 | 47 | //YAHOO.log("initJanelaRef", "i3geo"); |
| 37 | 48 | if (!$i("i3geo_winRef")){ |
| ... | ... | @@ -40,9 +51,9 @@ i3GEO.maparef = { |
| 40 | 51 | novoel.style.display="none"; |
| 41 | 52 | novoel.style.borderColor="gray"; |
| 42 | 53 | var ins = '<div class="hd">'; |
| 43 | - var temp = "javascript:if(g_zoomRefDinamico == -1){g_zoomRefDinamico = 1};g_zoomRefDinamico = g_zoomRefDinamico + 1 ;$i(\"refDinamico\").checked = true;i3GEO.maparef.atualiza();"; | |
| 54 | + var temp = "javascript:if(i3GEO.maparef.fatorZoomDinamico == -1){i3GEO.maparef.fatorZoomDinamico = 1};i3GEO.maparef.fatorZoomDinamico = i3GEO.maparef.fatorZoomDinamico + 1 ;$i(\"refDinamico\").checked = true;i3GEO.maparef.atualiza();"; | |
| 44 | 55 | ins += "<img class=mais onclick='"+temp+"' src="+i3GEO.util.$im("branco.gif")+" />"; |
| 45 | - var temp = "javascript:if(g_zoomRefDinamico == 1){g_zoomRefDinamico = -1};g_zoomRefDinamico = g_zoomRefDinamico - 1 ;$i(\"refDinamico\").checked = true;i3GEO.maparef.atualiza();"; | |
| 56 | + var temp = "javascript:if(i3GEO.maparef.fatorZoomDinamico == 1){i3GEO.maparef.fatorZoomDinamico = -1};i3GEO.maparef.fatorZoomDinamico = i3GEO.maparef.fatorZoomDinamico - 1 ;$i(\"refDinamico\").checked = true;i3GEO.maparef.atualiza();"; | |
| 46 | 57 | ins += "<img class=menos onclick='"+temp+"' src="+i3GEO.util.$im("branco.gif")+" /> "; |
| 47 | 58 | ins += '<input style="cursor:pointer" onclick="javascript:i3GEO.maparef.atualiza()" type="checkbox" id="refDinamico" /> '+$trad("o6")+'</div>'; |
| 48 | 59 | ins += '<div class="bd" style="text-align:left;padding:3px;" id="mapaReferencia" onmouseover="this.onmousemove=function(exy){i3GEO.eventos.posicaoMouseMapa(exy)}" onclick="javascript:i3GEO.maparef.click()">'; |
| ... | ... | @@ -51,7 +62,6 @@ i3GEO.maparef = { |
| 51 | 62 | ins += '<div style="text-align:left;font-size:0px" id="refmensagem" ></div></div>'; |
| 52 | 63 | novoel.innerHTML = ins; |
| 53 | 64 | document.body.appendChild(novoel); |
| 54 | - //$i("imagemReferencia").style.height = objmapa.refheight+"px"; | |
| 55 | 65 | } |
| 56 | 66 | if($i("i3geo_winRef").style.display != "block"){ |
| 57 | 67 | $i("i3geo_winRef").style.display = "block"; |
| ... | ... | @@ -59,9 +69,9 @@ i3GEO.maparef = { |
| 59 | 69 | YAHOO.janelaRef.xp.panel = new YAHOO.widget.Panel("i3geo_winRef", { width:"156px", fixedcenter: false, constraintoviewport: true, underlay:"shadow", close:true, visible:true, draggable:true, modal:false } ); |
| 60 | 70 | YAHOO.janelaRef.xp.panel.render(); |
| 61 | 71 | var pos = i3GEO.util.pegaPosicaoObjeto($i("img")); |
| 62 | - if (navm){YAHOO.janelaRef.xp.panel.moveTo((pos[0]+objmapa.w-160),pos[1]+4);} | |
| 72 | + if (navm){YAHOO.janelaRef.xp.panel.moveTo((pos[0]+i3GEO.parametros.w-160),pos[1]+4);} | |
| 63 | 73 | else |
| 64 | - {YAHOO.janelaRef.xp.panel.moveTo((pos[0]+objmapa.w-160),pos[1]+4);} | |
| 74 | + {YAHOO.janelaRef.xp.panel.moveTo((pos[0]+i3GEO.parametros.w-160),pos[1]+4);} | |
| 65 | 75 | var escondeRef = function(){ |
| 66 | 76 | YAHOO.util.Event.removeListener(YAHOO.janelaRef.xp.panel.close, "click"); |
| 67 | 77 | YAHOO.janelaRef.xp.panel.destroy(); |
| ... | ... | @@ -69,8 +79,10 @@ i3GEO.maparef = { |
| 69 | 79 | }; |
| 70 | 80 | YAHOO.util.Event.addListener(YAHOO.janelaRef.xp.panel.close, "click", escondeRef); |
| 71 | 81 | i3GEO.util.insereCookie("i3GEO.configura.mapaRefDisplay","block"); |
| 72 | - if(i3GEO.gadgets.PARAMETROS.mostraCoordenadasGEO.idhtml) | |
| 73 | - YAHOO.util.Event.addListener($i("imagemReferencia"),"mousemove", atualizaLocalizarxy); | |
| 82 | + if(typeof(atualizaLocalizarxy) == "function"){ | |
| 83 | + if(i3GEO.gadgets.PARAMETROS.mostraCoordenadasGEO.idhtml) | |
| 84 | + YAHOO.util.Event.addListener($i("imagemReferencia"),"mousemove", atualizaLocalizarxy); | |
| 85 | + } | |
| 74 | 86 | } |
| 75 | 87 | //YAHOO.log("Fim initJanelaRef", "i3geo"); |
| 76 | 88 | if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.maparef.atualiza()") < 0) |
| ... | ... | @@ -98,10 +110,10 @@ i3GEO.maparef = { |
| 98 | 110 | if ($i("mapaReferencia")){ |
| 99 | 111 | //YAHOO.log("Atualizando o mapa de referência", "i3geo"); |
| 100 | 112 | if(dinamico){ |
| 101 | - i3GEO.php.referenciadinamica(this.processaImagem,g_zoomRefDinamico); | |
| 113 | + i3GEO.php.referenciadinamica(this.processaImagem,i3GEO.maparef.fatorZoomDinamico); | |
| 102 | 114 | } |
| 103 | 115 | else{ |
| 104 | - if(($i("imagemReferencia").src == "") || (objmapa.cgi != "sim")){ | |
| 116 | + if(($i("imagemReferencia").src == "") || (i3GEO.parametros.cgi != "sim")){ | |
| 105 | 117 | i3GEO.php.referencia(this.processaImagem); |
| 106 | 118 | } |
| 107 | 119 | else{ |
| ... | ... | @@ -132,11 +144,13 @@ i3GEO.maparef = { |
| 132 | 144 | i3GEO.janela.fechaAguarde("ajaxreferencia1"); |
| 133 | 145 | if ((retorno.data != "erro") && (retorno.data != undefined)){ |
| 134 | 146 | eval(retorno.data); |
| 147 | + i3GEO.parametros.celularef = g_celularef; | |
| 148 | + i3GEO.parametros.extentref = extentref; | |
| 135 | 149 | if ($i("imagemReferencia")){ |
| 136 | 150 | var m = new Image(); |
| 137 | 151 | m.src = refimagem; |
| 138 | 152 | $i("imagemReferencia").src=m.src; |
| 139 | - if ((objmapa.scale < 15000000) && (objmapa.scale > 10000000)){ | |
| 153 | + if ((i3GEO.parametros.mapscale < 15000000) && (i3GEO.parametros.mapscale > 10000000)){ | |
| 140 | 154 | $i("refmensagem").innerHTML = "Para navegar no mapa principal, você pode clicar em um ponto no mapa de referência."; |
| 141 | 155 | $i("refmensagem").style.fontSize="10px"; |
| 142 | 156 | } |
| ... | ... | @@ -158,10 +172,10 @@ i3GEO.maparef = { |
| 158 | 172 | */ |
| 159 | 173 | click: function(){ |
| 160 | 174 | try{ |
| 161 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 162 | - i3GEO.php.pan(ajaxredesenha,objmapa.scale,"ref",objposicaocursor.refx,objposicaocursor.refy); | |
| 175 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 176 | + i3GEO.php.pan(i3GEO.atualiza,i3GEO.parametros.mapscale,"ref",objposicaocursor.refx,objposicaocursor.refy); | |
| 163 | 177 | } |
| 164 | 178 | catch(e) |
| 165 | - {var e = "";i3GEO.janela.fechaAguarde("ajaxredesenha");} | |
| 179 | + {var e = "";i3GEO.janela.fechaAguarde("i3GEO.atualiza");} | |
| 166 | 180 | } |
| 167 | 181 | }; |
| 168 | 182 | \ No newline at end of file | ... | ... |
classesjs/classe_navega.js
| ... | ... | @@ -66,8 +66,8 @@ i3GEO.navega = { |
| 66 | 66 | i3GEO.configura.locaplic = locaplic; |
| 67 | 67 | i3GEO.configura.sid = sid; |
| 68 | 68 | } |
| 69 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 70 | - i3GEO.php.aproxima(ajaxredesenha,i3GEO.navega.FATORZOOM); | |
| 69 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 70 | + i3GEO.php.aproxima(i3GEO.atualiza,i3GEO.navega.FATORZOOM); | |
| 71 | 71 | }, |
| 72 | 72 | /* |
| 73 | 73 | Function: zoomout |
| ... | ... | @@ -86,8 +86,8 @@ i3GEO.navega = { |
| 86 | 86 | i3GEO.configura.locaplic = locaplic; |
| 87 | 87 | i3GEO.configura.sid = sid; |
| 88 | 88 | } |
| 89 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 90 | - i3GEO.php.afasta(ajaxredesenha,i3GEO.navega.FATORZOOM); | |
| 89 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 90 | + i3GEO.php.afasta(i3GEO.atualiza,i3GEO.navega.FATORZOOM); | |
| 91 | 91 | }, |
| 92 | 92 | /* |
| 93 | 93 | Function: zoomponto |
| ... | ... | @@ -108,8 +108,8 @@ i3GEO.navega = { |
| 108 | 108 | //YAHOO.log("zoomponto", "i3geo"); |
| 109 | 109 | if(locaplic != ""){i3GEO.configura.locaplic = locaplic;} |
| 110 | 110 | if(sid != ""){i3GEO.configura.sid = sid;} |
| 111 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 112 | - i3GEO.php.zoomponto(ajaxredesenha,x,y); | |
| 111 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 112 | + i3GEO.php.zoomponto(i3GEO.atualiza,x,y); | |
| 113 | 113 | }, |
| 114 | 114 | /* |
| 115 | 115 | Function: zoompontoIMG |
| ... | ... | @@ -129,8 +129,8 @@ i3GEO.navega = { |
| 129 | 129 | zoompontoIMG: function(locaplic,sid,x,y){ |
| 130 | 130 | if(locaplic != ""){i3GEO.configura.locaplic = locaplic;} |
| 131 | 131 | if(sid != ""){i3GEO.configura.sid = sid;} |
| 132 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 133 | - i3GEO.php.pan(ajaxredesenha,"","",x,y); | |
| 132 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 133 | + i3GEO.php.pan(i3GEO.atualiza,"","",x,y); | |
| 134 | 134 | }, |
| 135 | 135 | /* |
| 136 | 136 | Function: xy2xy |
| ... | ... | @@ -244,8 +244,8 @@ i3GEO.navega = { |
| 244 | 244 | if(sid != ""){i3GEO.configura.sid = sid;} |
| 245 | 245 | if(tipoimagem == "") |
| 246 | 246 | {var tipoimagem = "nenhum";} |
| 247 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 248 | - i3GEO.php.mudaext(ajaxredesenha,tipoimagem,ext); | |
| 247 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 248 | + i3GEO.php.mudaext(i3GEO.atualiza,tipoimagem,ext); | |
| 249 | 249 | }, |
| 250 | 250 | /* |
| 251 | 251 | Function: aplicaEscala |
| ... | ... | @@ -264,8 +264,8 @@ i3GEO.navega = { |
| 264 | 264 | //YAHOO.log("aplicaescala", "i3geo"); |
| 265 | 265 | if(locaplic != ""){i3GEO.configura.locaplic = locaplic;} |
| 266 | 266 | if(sid != ""){i3GEO.configura.sid = sid;} |
| 267 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 268 | - i3GEO.php.mudaescala(ajaxredesenha,escala); | |
| 267 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 268 | + i3GEO.php.mudaescala(i3GEO.atualiza,escala); | |
| 269 | 269 | }, |
| 270 | 270 | /* |
| 271 | 271 | Function: panFixo |
| ... | ... | @@ -322,8 +322,8 @@ i3GEO.navega = { |
| 322 | 322 | var y = h - (h / 6); |
| 323 | 323 | var x = w / 6; |
| 324 | 324 | } |
| 325 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 326 | - i3GEO.php.pan(ajaxredesenha,escala,tipo,x,y); | |
| 325 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 326 | + i3GEO.php.pan(i3GEO.atualiza,escala,tipo,x,y); | |
| 327 | 327 | }, |
| 328 | 328 | /* |
| 329 | 329 | Function: mostraRosaDosVentos |
| ... | ... | @@ -344,7 +344,7 @@ i3GEO.navega = { |
| 344 | 344 | if(g_tipoacao == "area"){return;} |
| 345 | 345 | } |
| 346 | 346 | catch(e){}; |
| 347 | - if(objposicaocursor.imgx < 10 || objposicaocursor.imgy < 10 || objposicaocursor.imgy > (objmapa.h - 10)) | |
| 347 | + if(objposicaocursor.imgx < 10 || objposicaocursor.imgy < 10 || objposicaocursor.imgy > (i3GEO.parametros.h - 10)) | |
| 348 | 348 | {return;} |
| 349 | 349 | if (!$i("i3geo_rosa")){ |
| 350 | 350 | var novoel = document.createElement("div"); |
| ... | ... | @@ -359,18 +359,18 @@ i3GEO.navega = { |
| 359 | 359 | } |
| 360 | 360 | var setas = "<table id='rosaV' >"; |
| 361 | 361 | setas += "<tr onclick=\"javascript:i3GEO.configura.mostraRosaDosVentos='nao'\"><td></td><td></td><td style=cursor:pointer >x</td></tr><tr>"; |
| 362 | - setas += "<td><img class='rosanoroeste' title='noroeste' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','noroeste','"+objmapa.w+"','"+objmapa.h+"','"+objmapa.scale+"')\" /></td>"; | |
| 363 | - setas += "<td><img class='rosanorte' title='norte' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','norte','"+objmapa.w+"','"+objmapa.h+"','"+objmapa.scale+"')\" /></td>"; | |
| 364 | - setas += "<td><img class='rosanordeste' title='nordeste' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','nordeste','"+objmapa.w+"','"+objmapa.h+"','"+objmapa.scale+"')\" /></td></tr>"; | |
| 365 | - setas += "<tr><td><img class='rosaoeste' title='oeste' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','oeste','"+objmapa.w+"','"+objmapa.h+"','"+objmapa.scale+"')\" /></td>"; | |
| 362 | + setas += "<td><img class='rosanoroeste' title='noroeste' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','noroeste','"+i3GEO.parametros.w+"','"+i3GEO.parametros.h+"','"+i3GEO.parametros.mapscale+"')\" /></td>"; | |
| 363 | + setas += "<td><img class='rosanorte' title='norte' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','norte','"+i3GEO.parametros.w+"','"+i3GEO.parametros.h+"','"+i3GEO.parametros.mapscale+"')\" /></td>"; | |
| 364 | + setas += "<td><img class='rosanordeste' title='nordeste' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','nordeste','"+i3GEO.parametros.w+"','"+i3GEO.parametros.h+"','"+i3GEO.parametros.mapscale+"')\" /></td></tr>"; | |
| 365 | + setas += "<tr><td><img class='rosaoeste' title='oeste' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','oeste','"+i3GEO.parametros.w+"','"+i3GEO.parametros.h+"','"+i3GEO.parametros.mapscale+"')\" /></td>"; | |
| 366 | 366 | setas += "<td><table><tr>"; |
| 367 | 367 | setas += "<td><img class='rosamais' title='aproxima' onclick=\"i3GEO.navega.zoomin('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"')\" src='"+$im("branco.gif")+"' </td>"; |
| 368 | 368 | setas += "<td><img class='rosamenos' title='afasta' onclick=\"i3GEO.navega.zoomout('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"')\" src='"+$im("branco.gif")+"' </td>"; |
| 369 | 369 | setas += "</tr></table></td>"; |
| 370 | - setas += "<td><img class='rosaleste' title='leste' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','leste','"+objmapa.w+"','"+objmapa.h+"','"+objmapa.scale+"')\" /></td></tr>"; | |
| 371 | - setas += "<tr><td><img class='rosasudoeste' title='sudoeste' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','sudoeste','"+objmapa.w+"','"+objmapa.h+"','"+objmapa.scale+"')\" /></td>"; | |
| 372 | - setas += "<td><img class='rosasul' title='sul' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','sul','"+objmapa.w+"','"+objmapa.h+"','"+objmapa.scale+"')\" /></td>"; | |
| 373 | - setas += "<td><img class='rosasudeste' title='sudeste' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','sudeste','"+objmapa.w+"','"+objmapa.h+"','"+objmapa.scale+"')\" /></td></tr></table>"; | |
| 370 | + setas += "<td><img class='rosaleste' title='leste' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','leste','"+i3GEO.parametros.w+"','"+i3GEO.parametros.h+"','"+i3GEO.parametros.mapscale+"')\" /></td></tr>"; | |
| 371 | + setas += "<tr><td><img class='rosasudoeste' title='sudoeste' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','sudoeste','"+i3GEO.parametros.w+"','"+i3GEO.parametros.h+"','"+i3GEO.parametros.mapscale+"')\" /></td>"; | |
| 372 | + setas += "<td><img class='rosasul' title='sul' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','sul','"+i3GEO.parametros.w+"','"+i3GEO.parametros.h+"','"+i3GEO.parametros.mapscale+"')\" /></td>"; | |
| 373 | + setas += "<td><img class='rosasudeste' title='sudeste' src='"+$im("branco.gif")+"' onclick=\"i3GEO.navega.panFixo('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"','sudeste','"+i3GEO.parametros.w+"','"+i3GEO.parametros.h+"','"+i3GEO.parametros.mapscale+"')\" /></td></tr></table>"; | |
| 374 | 374 | var i = $i("i3geo_rosa"); |
| 375 | 375 | i.innerHTML = setas; |
| 376 | 376 | i.style.top = objposicaocursor.telay - 27; |
| ... | ... | @@ -452,7 +452,7 @@ i3GEO.navega = { |
| 452 | 452 | redesenha: function(){ |
| 453 | 453 | clearTimeout(i3GEO.navega.tempoRedesenho); |
| 454 | 454 | clearTimeout(i3GEO.navega.contaTempoRedesenho); |
| 455 | - ajaxredesenha(""); | |
| 455 | + i3GEO.atualiza(""); | |
| 456 | 456 | i3GEO.navega.autoRedesenho.ativa(i3GEO.navega.autoRedesenho.ID); |
| 457 | 457 | }, |
| 458 | 458 | /* |
| ... | ... | @@ -580,7 +580,7 @@ i3GEO.navega = { |
| 580 | 580 | termina: function(){ |
| 581 | 581 | if(g_tipoacao!='zoomli'){return;} |
| 582 | 582 | try{ |
| 583 | - var valor = i3GEO.calculo.rect2ext("i3geoboxZoom",objmapa.extent,g_celula); | |
| 583 | + var valor = i3GEO.calculo.rect2ext("i3geoboxZoom",i3GEO.parametros.mapexten,i3GEO.parametros.pixelsize); | |
| 584 | 584 | var v = valor[0]; |
| 585 | 585 | var x1 = valor[1]; |
| 586 | 586 | var y1 = valor[2]; |
| ... | ... | @@ -596,7 +596,7 @@ i3GEO.navega = { |
| 596 | 596 | if((x1 == x2) || (y1 == y2)) |
| 597 | 597 | {limpa.call();return;} |
| 598 | 598 | // se o retangulo for negativo pula essa parte para n� gerar erro |
| 599 | - objmapa.extent=v; | |
| 599 | + i3GEO.parametros.mapexten=v; | |
| 600 | 600 | limpa.call(); |
| 601 | 601 | i3GEO.eventos.MOUSEMOVE.remove("i3GEO.navega.zoomBox.desloca()"); |
| 602 | 602 | i3GEO.eventos.MOUSEUP.remove("i3GEO.navega.zoomBox.termina()"); |
| ... | ... | @@ -620,7 +620,7 @@ i3GEO.navega = { |
| 620 | 620 | Ao ser chamada, essa função muda o modo atual, ativando ou desativando o entorno |
| 621 | 621 | */ |
| 622 | 622 | ativaDesativa: function(){ |
| 623 | - if(objmapa.mapfile == "") | |
| 623 | + if(i3GEO.parametros.mapfile == "") | |
| 624 | 624 | {alert("Essa opcao nao pode ser ativada. Consulte o administrador do sistema. Mapfile nao esta exposto.");return;} |
| 625 | 625 | if (i3GEO.configura.entorno == "sim"){ |
| 626 | 626 | var letras=["L","O","N","S"]; |
| ... | ... | @@ -642,8 +642,8 @@ i3GEO.navega = { |
| 642 | 642 | var letras=["L","O","N","S"]; |
| 643 | 643 | for (var l=0;l<4; l++){ |
| 644 | 644 | if ($i("img"+letras[l])){ |
| 645 | - $i("img"+letras[l]).style.width = objmapa.w; | |
| 646 | - $i("img"+letras[l]).style.height = objmapa.h; | |
| 645 | + $i("img"+letras[l]).style.width = i3GEO.parametros.w; | |
| 646 | + $i("img"+letras[l]).style.height = i3GEO.parametros.h; | |
| 647 | 647 | $i("img"+letras[l]).style.display = "block"; |
| 648 | 648 | } |
| 649 | 649 | } |
| ... | ... | @@ -658,16 +658,16 @@ i3GEO.navega = { |
| 658 | 658 | Gera as URLs que serão utilizadas na tag IMG dos elementos do entorno do mapa |
| 659 | 659 | */ |
| 660 | 660 | geraURL: function(){ |
| 661 | - var nny = (objmapa.h / 2) * -1; | |
| 662 | - var nnx = objmapa.w / 2; | |
| 663 | - var sy = objmapa.h + (objmapa.h / 2); | |
| 664 | - var sx = objmapa.w / 2; | |
| 665 | - var lx = objmapa.w + (objmapa.w / 2); | |
| 666 | - var ly = objmapa.h / 2; | |
| 667 | - var ox = (parseInt(objmapa.w/2)) * -1; | |
| 668 | - var oy = objmapa.h / 2; | |
| 669 | - var u = window.location.protocol+"\/\/"+window.location.host+objmapa.cgi+"?map="+objmapa.mapfile; | |
| 670 | - u += "&mode=map&imgext="+objmapa.extent+"&mapsize="+nnx+" "+oy; | |
| 661 | + var nny = (i3GEO.parametros.h / 2) * -1; | |
| 662 | + var nnx = i3GEO.parametros.w / 2; | |
| 663 | + var sy = i3GEO.parametros.h + (i3GEO.parametros.h / 2); | |
| 664 | + var sx = i3GEO.parametros.w / 2; | |
| 665 | + var lx = i3GEO.parametros.w + (i3GEO.parametros.w / 2); | |
| 666 | + var ly = i3GEO.parametros.h / 2; | |
| 667 | + var ox = (parseInt(i3GEO.parametros.w/2)) * -1; | |
| 668 | + var oy = i3GEO.parametros.h / 2; | |
| 669 | + var u = window.location.protocol+"\/\/"+window.location.host+i3GEO.parametros.cgi+"?map="+i3GEO.parametros.mapfile; | |
| 670 | + u += "&mode=map&imgext="+i3GEO.parametros.mapexten+"&mapsize="+nnx+" "+oy; | |
| 671 | 671 | var sul = u+"&imgxy="+sx/2+" "+sy/2; |
| 672 | 672 | var norte = u+"&imgxy="+nnx/2+" "+nny/2; |
| 673 | 673 | var leste = u+"&imgxy="+lx/2+" "+ly/2; |
| ... | ... | @@ -683,16 +683,16 @@ i3GEO.navega = { |
| 683 | 683 | Ajusta a posição das imagens do entorno do mapa |
| 684 | 684 | */ |
| 685 | 685 | ajustaPosicao: function(){ |
| 686 | - $left("img",objmapa.w*-1); | |
| 687 | - $left("imgS",objmapa.w*-1); | |
| 688 | - $left("imgL",objmapa.w); | |
| 689 | - $left("imgO",objmapa.w*-3); | |
| 690 | - $left("imgN",objmapa.w*-1); | |
| 691 | - $top("img",objmapa.h*-1); | |
| 692 | - $top("imgS",objmapa.h*-1); | |
| 693 | - $top("imgL",objmapa.h*-1); | |
| 694 | - $top("imgN",objmapa.h*-1); | |
| 695 | - $top("imgO",objmapa.h*-1); | |
| 686 | + $left("img",i3GEO.parametros.w*-1); | |
| 687 | + $left("imgS",i3GEO.parametros.w*-1); | |
| 688 | + $left("imgL",i3GEO.parametros.w); | |
| 689 | + $left("imgO",i3GEO.parametros.w*-3); | |
| 690 | + $left("imgN",i3GEO.parametros.w*-1); | |
| 691 | + $top("img",i3GEO.parametros.h*-1); | |
| 692 | + $top("imgS",i3GEO.parametros.h*-1); | |
| 693 | + $top("imgL",i3GEO.parametros.h*-1); | |
| 694 | + $top("imgN",i3GEO.parametros.h*-1); | |
| 695 | + $top("imgO",i3GEO.parametros.h*-1); | |
| 696 | 696 | } |
| 697 | 697 | }, |
| 698 | 698 | /* |
| ... | ... | @@ -883,8 +883,8 @@ i3GEO.navega = { |
| 883 | 883 | $i("div_d").style.top = parseInt($i("corpoMapa").style.top); |
| 884 | 884 | $i("img_d").style.left = 0; |
| 885 | 885 | $i("img_d").style.top = 0; |
| 886 | - $i("img_d").style.width = objmapa.w; | |
| 887 | - $i("img_d").style.height = objmapa.h; | |
| 886 | + $i("img_d").style.width = i3GEO.parametros.w; | |
| 887 | + $i("img_d").style.height = i3GEO.parametros.h; | |
| 888 | 888 | $i("div_d").style.clip = 'rect(0 75 75 0)'; |
| 889 | 889 | var novoeli = document.createElement("div"); |
| 890 | 890 | novoeli.id = "div_di"; | ... | ... |
classesjs/classe_selecao.js
| ... | ... | @@ -47,8 +47,8 @@ i3GEO.selecao = { |
| 47 | 47 | */ |
| 48 | 48 | porxy: function(tema,tipo,tolerancia){ |
| 49 | 49 | var retorna = function(retorno) |
| 50 | - {ajaxredesenha(retorno);}; | |
| 51 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 50 | + {i3GEO.atualiza(retorno);}; | |
| 51 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 52 | 52 | i3GEO.php.selecaopt(retorna,tema,objposicaocursor.ddx+" "+objposicaocursor.ddy,tipo,tolerancia); |
| 53 | 53 | }, |
| 54 | 54 | /* |
| ... | ... | @@ -66,8 +66,8 @@ i3GEO.selecao = { |
| 66 | 66 | */ |
| 67 | 67 | porbox: function(tema,tipo,box){ |
| 68 | 68 | var retorna = function(retorno) |
| 69 | - {ajaxredesenha(retorno);}; | |
| 70 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 69 | + {i3GEO.atualiza(retorno);}; | |
| 70 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 71 | 71 | i3GEO.php.selecaobox(retorna,tema,tipo,box); |
| 72 | 72 | }, |
| 73 | 73 | /* |
| ... | ... | @@ -79,7 +79,7 @@ i3GEO.selecao = { |
| 79 | 79 | */ |
| 80 | 80 | janelaOpcoes: function(){ |
| 81 | 81 | g_tipoacao = "selecao"; |
| 82 | - objmapa.temaAtivo = ""; | |
| 82 | + i3GEO.temaAtivo = ""; | |
| 83 | 83 | var janela = i3GEO.janela.cria("430px","320px",i3GEO.configura.locaplic+'/ferramentas/selecao/index.htm',"","","Seleção"); |
| 84 | 84 | if(i3GEO.eventos.MOUSECLIQUE.toString().search("i3GEO.selecao.clique()") < 0) |
| 85 | 85 | {i3GEO.eventos.MOUSECLIQUE.push("i3GEO.selecao.clique()");} |
| ... | ... | @@ -128,11 +128,11 @@ i3GEO.selecao = { |
| 128 | 128 | var tipo = "adiciona"; |
| 129 | 129 | //pega o tipo de operacao da janela de selecao |
| 130 | 130 | if (doc.getElementById("tipoOperacao")){var tipo = doc.getElementById("tipoOperacao").value;} |
| 131 | - if (objmapa.temaAtivo == ""){alert("Nenhum tema ativo");return;} | |
| 131 | + if (i3GEO.temaAtivo == ""){alert("Nenhum tema ativo");return;} | |
| 132 | 132 | var tolerancia = doc.getElementById("toleranciapt").value; |
| 133 | 133 | //se tipo for limpa ou inverte, a operacao nao e executada no clique no mapa |
| 134 | 134 | if ((tipo != "limpa") && (tipo != "inverte")) |
| 135 | - {i3GEO.selecao.porxy(objmapa.temaAtivo,tipo,tolerancia);} | |
| 135 | + {i3GEO.selecao.porxy(i3GEO.temaAtivo,tipo,tolerancia);} | |
| 136 | 136 | } |
| 137 | 137 | }, |
| 138 | 138 | /* |
| ... | ... | @@ -250,7 +250,7 @@ i3GEO.selecao = { |
| 250 | 250 | termina: function(){ |
| 251 | 251 | if(g_tipoacao!='selecaobox'){return;} |
| 252 | 252 | try{ |
| 253 | - var valor = i3GEO.calculo.rect2ext("i3geoboxSel",objmapa.extent,g_celula); | |
| 253 | + var valor = i3GEO.calculo.rect2ext("i3geoboxSel",i3GEO.parametros.mapexten,i3GEO.parametros.pixelsize); | |
| 254 | 254 | var v = valor[0]; |
| 255 | 255 | var x1 = valor[1]; |
| 256 | 256 | var y1 = valor[2]; |
| ... | ... | @@ -266,7 +266,7 @@ i3GEO.selecao = { |
| 266 | 266 | if((x1 == x2) || (y1 == y2)) |
| 267 | 267 | {limpa.call();return;} |
| 268 | 268 | // se o retangulo for negativo pula essa parte para n� gerar erro |
| 269 | - objmapa.extent=v; | |
| 269 | + i3GEO.parametros.mapexten=v; | |
| 270 | 270 | limpa.call(); |
| 271 | 271 | i3GEO.eventos.MOUSEMOVE.remove("i3GEO.selecao.box.desloca()"); |
| 272 | 272 | i3GEO.eventos.MOUSEUP.remove("i3GEO.selecao.box.termina()"); |
| ... | ... | @@ -277,7 +277,7 @@ i3GEO.selecao = { |
| 277 | 277 | if (doc.getElementById("tipoOperacao")){var tipo = doc.getElementById("tipoOperacao").value;} |
| 278 | 278 | |
| 279 | 279 | if ((tipo != "limpa") && (tipo != "inverte")) |
| 280 | - {i3GEO.selecao.porbox(objmapa.temaAtivo,tipo,v);} | |
| 280 | + {i3GEO.selecao.porbox(i3GEO.temaAtivo,tipo,v);} | |
| 281 | 281 | } |
| 282 | 282 | catch(e){limpa.call();return;} |
| 283 | 283 | } |
| ... | ... | @@ -317,7 +317,7 @@ i3GEO.selecao = { |
| 317 | 317 | var n = pontosdistobj.xpt.length; |
| 318 | 318 | if (n > 0){ |
| 319 | 319 | var d = i3GEO.calculo.distancia(pontosdistobj.xpt[n-1],pontosdistobj.ypt[n-1],objposicaocursor.ddx,objposicaocursor.ddy); |
| 320 | - if (objmapa.scale > 500000) | |
| 320 | + if (i3GEO.parametros.mapscale > 500000) | |
| 321 | 321 | {var d = parseInt(d);} |
| 322 | 322 | else{ |
| 323 | 323 | d= d + ""; |
| ... | ... | @@ -354,7 +354,7 @@ i3GEO.selecao = { |
| 354 | 354 | pontosdistobj.linhastemp = i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode, i3GEO.desenho.richdraw.fillColor, i3GEO.desenho.richdraw.lineColor, i3GEO.desenho.richdraw.lineWidth, pontosdistobj.ximg[n]-1,pontosdistobj.yimg[n]-1,pontosdistobj.ximg[0]-1,pontosdistobj.yimg[0]-1); |
| 355 | 355 | } |
| 356 | 356 | else{ |
| 357 | - pontosdistobj.linhastemp = i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode, i3GEO.desenho.richdraw.fillColor, i3GEO.desenho.richdraw.lineColor, i3GEO.desenho.richdraw.lineWidth, (pontosdistobj.ximg[n])-(objmapa.w/2),pontosdistobj.yimg[n],(pontosdistobj.ximg[0])-(objmapa.w/2),pontosdistobj.yimg[0]); | |
| 357 | + pontosdistobj.linhastemp = i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode, i3GEO.desenho.richdraw.fillColor, i3GEO.desenho.richdraw.lineColor, i3GEO.desenho.richdraw.lineWidth, (pontosdistobj.ximg[n])-(i3GEO.parametros.w/2),pontosdistobj.yimg[n],(pontosdistobj.ximg[0])-(i3GEO.parametros.w/2),pontosdistobj.yimg[0]); | |
| 358 | 358 | } |
| 359 | 359 | } |
| 360 | 360 | catch(e){} |
| ... | ... | @@ -364,7 +364,7 @@ i3GEO.selecao = { |
| 364 | 364 | pontosdistobj.linhas[n] = i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode, i3GEO.desenho.richdraw.fillColor, i3GEO.desenho.richdraw.lineColor, i3GEO.desenho.richdraw.lineWidth, pontosdistobj.ximg[n],pontosdistobj.yimg[n],pontosdistobj.ximg[n],pontosdistobj.yimg[n]); |
| 365 | 365 | } |
| 366 | 366 | else{ |
| 367 | - pontosdistobj.linhas[n] = i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode, i3GEO.desenho.richdraw.fillColor, i3GEO.desenho.richdraw.lineColor, i3GEO.desenho.richdraw.lineWidth, (pontosdistobj.ximg[n])-(objmapa.w/2),pontosdistobj.yimg[n],(pontosdistobj.ximg[n])-(objmapa.w/2),pontosdistobj.yimg[n]); | |
| 367 | + pontosdistobj.linhas[n] = i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode, i3GEO.desenho.richdraw.fillColor, i3GEO.desenho.richdraw.lineColor, i3GEO.desenho.richdraw.lineWidth, (pontosdistobj.ximg[n])-(i3GEO.parametros.w/2),pontosdistobj.yimg[n],(pontosdistobj.ximg[n])-(i3GEO.parametros.w/2),pontosdistobj.yimg[n]); | |
| 368 | 368 | } |
| 369 | 369 | } |
| 370 | 370 | catch(e){} |
| ... | ... | @@ -384,14 +384,14 @@ i3GEO.selecao = { |
| 384 | 384 | var pontos = pontosdistobj; |
| 385 | 385 | i3GEO.desenho.richdraw.fecha(); |
| 386 | 386 | var n = pontos.xpt.length; |
| 387 | - objmapa.temaAtivo = doc.getElementById("comboTemas").value; | |
| 387 | + i3GEO.temaAtivo = doc.getElementById("comboTemas").value; | |
| 388 | 388 | var xs = pontos.xpt.toString(","); |
| 389 | 389 | var ys = pontos.ypt.toString(","); |
| 390 | 390 | var retorna = function(){ |
| 391 | - i3GEO.janela.fechaAguarde("ajaxredesenha",$trad("o1")); | |
| 392 | - ajaxredesenha(""); | |
| 391 | + i3GEO.janela.fechaAguarde("i3GEO.atualiza",$trad("o1")); | |
| 392 | + i3GEO.atualiza(""); | |
| 393 | 393 | }; |
| 394 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 394 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 395 | 395 | var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=selecaoPoli"; |
| 396 | 396 | var cp = new cpaint(); |
| 397 | 397 | //cp.set_debug(2) | ... | ... |
classesjs/classe_tema.js
| ... | ... | @@ -51,9 +51,9 @@ i3GEO.tema = { |
| 51 | 51 | {p.removeChild(p.childNodes[0]);} |
| 52 | 52 | while (p.childNodes.length > 0); |
| 53 | 53 | p.parentNode.removeChild(p); |
| 54 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 55 | - i3GEO.php.excluitema(ajaxredesenha,tema); | |
| 56 | - objmapa.temaAtivo = ""; | |
| 54 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 55 | + i3GEO.php.excluitema(i3GEO.atualiza,tema); | |
| 56 | + i3GEO.temaAtivo = ""; | |
| 57 | 57 | }, |
| 58 | 58 | /* |
| 59 | 59 | Function: sobe |
| ... | ... | @@ -65,8 +65,8 @@ i3GEO.tema = { |
| 65 | 65 | tema - código do tema |
| 66 | 66 | */ |
| 67 | 67 | sobe: function(tema){ |
| 68 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 69 | - i3GEO.php.sobetema(ajaxredesenha,tema); | |
| 68 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 69 | + i3GEO.php.sobetema(i3GEO.atualiza,tema); | |
| 70 | 70 | }, |
| 71 | 71 | /* |
| 72 | 72 | Function: desce |
| ... | ... | @@ -78,8 +78,8 @@ i3GEO.tema = { |
| 78 | 78 | tema - código do tema |
| 79 | 79 | */ |
| 80 | 80 | desce: function(tema){ |
| 81 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 82 | - i3GEO.php.descetema(ajaxredesenha,tema); | |
| 81 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 82 | + i3GEO.php.descetema(i3GEO.atualiza,tema); | |
| 83 | 83 | }, |
| 84 | 84 | /* |
| 85 | 85 | Function: zoom |
| ... | ... | @@ -91,8 +91,8 @@ i3GEO.tema = { |
| 91 | 91 | tema - código do tema |
| 92 | 92 | */ |
| 93 | 93 | zoom: function(tema){ |
| 94 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 95 | - i3GEO.php.zoomtema(ajaxredesenha,tema); | |
| 94 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 95 | + i3GEO.php.zoomtema(i3GEO.atualiza,tema); | |
| 96 | 96 | }, |
| 97 | 97 | /* |
| 98 | 98 | Function: limpasel |
| ... | ... | @@ -105,8 +105,8 @@ i3GEO.tema = { |
| 105 | 105 | */ |
| 106 | 106 | limpasel: function(tema){ |
| 107 | 107 | g_operacao = "limpasel"; |
| 108 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 109 | - i3GEO.php.limpasel(ajaxredesenha,tema); | |
| 108 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 109 | + i3GEO.php.limpasel(i3GEO.atualiza,tema); | |
| 110 | 110 | }, |
| 111 | 111 | /* |
| 112 | 112 | Function: mudatransp |
| ... | ... | @@ -125,8 +125,8 @@ i3GEO.tema = { |
| 125 | 125 | else |
| 126 | 126 | {alert("Ocorreu um erro");} |
| 127 | 127 | if (valor != ""){ |
| 128 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 129 | - i3GEO.php.mudatransp(ajaxredesenha,idtema,valor); | |
| 128 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 129 | + i3GEO.php.mudatransp(i3GEO.atualiza,idtema,valor); | |
| 130 | 130 | } |
| 131 | 131 | else |
| 132 | 132 | {alert("Valor não definido.");} |
| ... | ... | @@ -147,8 +147,8 @@ i3GEO.tema = { |
| 147 | 147 | else |
| 148 | 148 | {alert("Ocorreu um erro");} |
| 149 | 149 | if (valor != ""){ |
| 150 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 151 | - i3GEO.php.mudanome(ajaxredesenha,idtema,valor); | |
| 150 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 151 | + i3GEO.php.mudanome(i3GEO.atualiza,idtema,valor); | |
| 152 | 152 | } |
| 153 | 153 | else |
| 154 | 154 | {alert("Nome não definido");} |
| ... | ... | @@ -174,9 +174,9 @@ i3GEO.tema = { |
| 174 | 174 | */ |
| 175 | 175 | abreKml: function(tema){ |
| 176 | 176 | if(tema == "mapfile"){ |
| 177 | - if(objmapa.mapfile == "") | |
| 177 | + if(i3GEO.parametros.mapfile == "") | |
| 178 | 178 | {alert("Essa opcao nao pode ser ativada. Consulte o administrador do sistema. Mapfile nao esta exposto.");return;} |
| 179 | - return(i3GEO.janela.cria("450px","250px",i3GEO.configura.locaplic+'/ferramentas/convertekml/index.htm?tema='+objmapa.mapfile,"","","Kml")); | |
| 179 | + return(i3GEO.janela.cria("450px","250px",i3GEO.configura.locaplic+'/ferramentas/convertekml/index.htm?tema='+i3GEO.parametros.mapfile,"","","Kml")); | |
| 180 | 180 | } |
| 181 | 181 | else |
| 182 | 182 | {return(i3GEO.janela.cria("450px","250px",i3GEO.configura.locaplic+'/ferramentas/convertekml/index.htm?tema='+tema,"","","Kml"));} | ... | ... |
classesjs/classe_util.js
| ... | ... | @@ -27,6 +27,49 @@ if(typeof(i3GEO) == 'undefined'){ |
| 27 | 27 | i3GEO = new Array(); |
| 28 | 28 | } |
| 29 | 29 | /* |
| 30 | +Variable: navm | |
| 31 | + | |
| 32 | +Verdadeiro (true) se o navegador for o Internet Explorer | |
| 33 | +*/ | |
| 34 | +navm = false; | |
| 35 | +/* | |
| 36 | +Variable: navn | |
| 37 | + | |
| 38 | +Verdadeiro (true) se o navegador for o Firefox | |
| 39 | +*/ | |
| 40 | +navn = false; | |
| 41 | +//seta as variáveis navn e navm | |
| 42 | +var app = navigator.appName.substring(0,1); | |
| 43 | +if (app=='N') navn=true; else navm=true; | |
| 44 | +/* | |
| 45 | +Variable: g_operacao | |
| 46 | + | |
| 47 | +Nome da última operação que foi executada. | |
| 48 | + | |
| 49 | +Dependendo do tipo de operação são aplicadas as atualizações necessárias aos componentes do mapa. Por exemplo, redesenha o corpo do mapa, atualiza a lista de temas, etc. | |
| 50 | + | |
| 51 | +Essas operações são controladas pela função ajaxiniciaparametros. | |
| 52 | +*/ | |
| 53 | +g_operacao = ""; | |
| 54 | +/* | |
| 55 | +Variable: g_tipoacao | |
| 56 | + | |
| 57 | +Tipo de ação que está sendo executada. | |
| 58 | +Quando o usuário clica no mapa, essa variável é pesquisada para definir o tipo de operação que deve ser executada. | |
| 59 | +É definida quando o usuário seleciona uma determinada ferramenta do i3Geo. | |
| 60 | +*/ | |
| 61 | +g_tipoacao = "zoomli"; | |
| 62 | +g_postpx = "px"; | |
| 63 | +g_tipotop = "top"; | |
| 64 | +g_tipoleft = "left"; | |
| 65 | +if (navm) | |
| 66 | +{ | |
| 67 | + g_postpx = ""; //utilizado para crossbrowser | |
| 68 | + g_tipotop = "pixelTop"; //utilizado para crossbrowser | |
| 69 | + g_tipoleft = "pixelLeft"; //utilizado para crossbrowser | |
| 70 | +} | |
| 71 | + | |
| 72 | +/* | |
| 30 | 73 | Function: $i |
| 31 | 74 | |
| 32 | 75 | Obtém um elemento DOM a partir de seu id |
| ... | ... | @@ -51,6 +94,7 @@ Array.prototype.remove=function(s){ |
| 51 | 94 | var i = this.indexOf(s); |
| 52 | 95 | if(i != -1) this.splice(i, 1); |
| 53 | 96 | }; |
| 97 | + | |
| 54 | 98 | /* |
| 55 | 99 | Class: i3GEO.util |
| 56 | 100 | |
| ... | ... | @@ -143,8 +187,8 @@ i3GEO.util = { |
| 143 | 187 | |
| 144 | 188 | */ |
| 145 | 189 | criaBotaoAplicar: function (nomeFuncao,titulo,classe,obj) { |
| 146 | - clearTimeout(objmapa.tempo); | |
| 147 | - objmapa.tempo = eval("setTimeout('"+nomeFuncao+"\(\)',(i3GEO.configura.tempoAplicar))"); | |
| 190 | + try{clearTimeout(tempoBotaoAplicar);}catch(e){}; | |
| 191 | + tempoBotaoAplicar = eval("setTimeout('"+nomeFuncao+"\(\)',(i3GEO.configura.tempoAplicar))"); | |
| 148 | 192 | autoRedesenho("reinicia"); |
| 149 | 193 | if(arguments.length == 1) |
| 150 | 194 | {var titulo = "Aplicar";} |
| ... | ... | @@ -169,8 +213,8 @@ i3GEO.util = { |
| 169 | 213 | else |
| 170 | 214 | {var novoel = document.getElementById("i3geo_aplicar");} |
| 171 | 215 | novoel.onclick = function(){ |
| 172 | - clearTimeout(objmapa.tempo); | |
| 173 | - objmapa.tempo = ""; | |
| 216 | + clearTimeout(i3GEO.parametros.tempo); | |
| 217 | + i3GEO.parametros.tempo = ""; | |
| 174 | 218 | this.style.display='none'; |
| 175 | 219 | eval(nomeFuncao+"\(\)"); |
| 176 | 220 | }; |
| ... | ... | @@ -634,12 +678,12 @@ i3GEO.util = { |
| 634 | 678 | path {String} - caminho completo do shapefile |
| 635 | 679 | */ |
| 636 | 680 | adicionaSHP: function(path){ |
| 637 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 681 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 638 | 682 | var temp = path.split("."); |
| 639 | 683 | if ((temp[1] == "SHP") || (temp[1] == "shp")) |
| 640 | - {i3GEO.php.adicionaTemaSHP(ajaxredesenha,path);} | |
| 684 | + {i3GEO.php.adicionaTemaSHP(i3GEO.atualiza,path);} | |
| 641 | 685 | else |
| 642 | - {i3GEO.php.adicionaTemaIMG(ajaxredesenha,path);} | |
| 686 | + {i3GEO.php.adicionaTemaIMG(i3GEO.atualiza,path);} | |
| 643 | 687 | }, |
| 644 | 688 | /* |
| 645 | 689 | Function: abreCor | ... | ... |
classesjs/compactajs.php
| ... | ... | @@ -65,8 +65,6 @@ packer("classe_ajuda.js","compactados/classe_ajuda_compacto.js","Normal"); |
| 65 | 65 | packer("configura.js","compactados/configura_compacto.js","Normal"); |
| 66 | 66 | packer("classe_configura.js","compactados/classe_configura_compacto.js","Normal"); |
| 67 | 67 | packer("classe_navega.js","compactados/classe_navega_compacto.js","Normal"); |
| 68 | -packer("redesenho.js","compactados/redesenho_compacto.js","Normal"); | |
| 69 | -packer("iniciamma.js","compactados/iniciamma_compacto.js","Normal"); | |
| 70 | 68 | packer("menususpenso.js","compactados/menususpenso_compacto.js","Normal"); |
| 71 | 69 | packer("classe_gadgets.js","compactados/classe_gadgets_compacto.js","Normal"); |
| 72 | 70 | packer("classe_eventos.js","compactados/classe_eventos_compacto.js","Normal"); |
| ... | ... | @@ -79,6 +77,7 @@ packer("classe_tema.js","compactados/classe_tema_compacto.js","Normal"); |
| 79 | 77 | packer("classe_analise.js","compactados/classe_analise_compacto.js","Normal"); |
| 80 | 78 | packer("classe_php.js","compactados/classe_php_compacto.js","Normal"); |
| 81 | 79 | packer("classe_interface.js","compactados/classe_interface_compacto.js","Normal"); |
| 80 | +packer("classe_i3geo.js","compactados/classe_i3geo_compacto.js","Normal"); | |
| 82 | 81 | // |
| 83 | 82 | //gera um único js para a inicialização do I3Geo |
| 84 | 83 | // |
| ... | ... | @@ -99,12 +98,10 @@ $jsfiles = array( |
| 99 | 98 | "../pacotes/yui252/build/autocomplete/autocomplete.js", |
| 100 | 99 | "../pacotes/cpaint/cpaint2.inc.compressed.js", |
| 101 | 100 | "../pacotes/yui252/build/treeview/treeview.js", |
| 102 | -//"../pacotes/jsobjects/jsUI-Global/common_compacto.js", | |
| 103 | -//"../pacotes/jsobjects/jsUI-Global/uiCommon_compacto.js", | |
| 104 | -//"../pacotes/jsobjects/jsUI-Treeview/component_compacto.js", | |
| 105 | 101 | "../pacotes/richdraw/richdraw_tudo_compacto.js", |
| 106 | 102 | "../pacotes/balloon-tooltips/htdocs/js/balloon.config.js", |
| 107 | 103 | "../pacotes/balloon-tooltips/htdocs/js/balloon.js", |
| 104 | +"classe_i3geo.js", | |
| 108 | 105 | "classe_php.js", |
| 109 | 106 | "classe_configura.js", |
| 110 | 107 | "depreciados.js", |
| ... | ... | @@ -128,8 +125,6 @@ $jsfiles = array( |
| 128 | 125 | "classe_arvoredetemas.js", |
| 129 | 126 | "configura.js", |
| 130 | 127 | "classe_barradebotoes.js", |
| 131 | -"redesenho.js", | |
| 132 | -"iniciamma.js", | |
| 133 | 128 | "menususpenso.js", |
| 134 | 129 | "classe_gadgets.js" |
| 135 | 130 | ); | ... | ... |
classesjs/configura.js
| ... | ... | @@ -308,7 +308,7 @@ g_listaFuncoesBotoes = { |
| 308 | 308 | tipo:"", |
| 309 | 309 | dica:$trad("d2"), |
| 310 | 310 | funcaoonclick:function(){ |
| 311 | - i3GEO.navega.zoomExt(i3GEO.configura.locaplic,i3GEO.configura.sid,g_tipoimagem,objmapa.extentTotal); | |
| 311 | + i3GEO.navega.zoomExt(i3GEO.configura.locaplic,i3GEO.configura.sid,g_tipoimagem,i3GEO.parametros.extentTotal); | |
| 312 | 312 | marcadorZoom = ""; |
| 313 | 313 | } |
| 314 | 314 | }, |
| ... | ... | @@ -371,16 +371,16 @@ g_listaFuncoesBotoes = { |
| 371 | 371 | $i("img").style.top = ny - t; |
| 372 | 372 | } |
| 373 | 373 | else{ |
| 374 | - $left("img",objmapa.w*-1 + nx); | |
| 375 | - $left("imgS",objmapa.w*-1 + nx); | |
| 376 | - $left("imgL",objmapa.w + nx); | |
| 377 | - $left("imgO",objmapa.w*-3 + nx); | |
| 378 | - $left("imgN",objmapa.w*-1 + nx); | |
| 379 | - $top("img",objmapa.h*-1 + ny); | |
| 380 | - $top("imgS",objmapa.h*-1 + ny); | |
| 381 | - $top("imgL",objmapa.h*-1 + ny); | |
| 382 | - $top("imgN",objmapa.h*-1 + ny); | |
| 383 | - $top("imgO",objmapa.h*-1 + ny); | |
| 374 | + $left("img",i3GEO.parametros.w*-1 + nx); | |
| 375 | + $left("imgS",i3GEO.parametros.w*-1 + nx); | |
| 376 | + $left("imgL",i3GEO.parametros.w + nx); | |
| 377 | + $left("imgO",i3GEO.parametros.w*-3 + nx); | |
| 378 | + $left("imgN",i3GEO.parametros.w*-1 + nx); | |
| 379 | + $top("img",i3GEO.parametros.h*-1 + ny); | |
| 380 | + $top("imgS",i3GEO.parametros.h*-1 + ny); | |
| 381 | + $top("imgL",i3GEO.parametros.h*-1 + ny); | |
| 382 | + $top("imgN",i3GEO.parametros.h*-1 + ny); | |
| 383 | + $top("imgO",i3GEO.parametros.h*-1 + ny); | |
| 384 | 384 | } |
| 385 | 385 | } |
| 386 | 386 | }; |
| ... | ... | @@ -388,7 +388,7 @@ g_listaFuncoesBotoes = { |
| 388 | 388 | if ($i("img") && (g_tipoacao == "pan")){ |
| 389 | 389 | marcadorZoom = ""; |
| 390 | 390 | g_panM = "nao"; |
| 391 | - var res = i3GEO.navega.xy2xy(i3GEO.configura.locaplic,i3GEO.configura.sid,ddinicialx,ddinicialy,objposicaocursor.ddx,objposicaocursor.ddy,objmapa.extent,g_tipoimagem); | |
| 391 | + var res = i3GEO.navega.xy2xy(i3GEO.configura.locaplic,i3GEO.configura.sid,ddinicialx,ddinicialy,objposicaocursor.ddx,objposicaocursor.ddy,i3GEO.parametros.mapexten,g_tipoimagem); | |
| 392 | 392 | if(res == false){i3GEO.navega.zoompontoIMG(i3GEO.configura.locaplic,i3GEO.configura.sid,objposicaocursor.imgx,objposicaocursor.imgy)} |
| 393 | 393 | } |
| 394 | 394 | }; |
| ... | ... | @@ -438,7 +438,7 @@ g_listaFuncoesBotoes = { |
| 438 | 438 | if (g_tipoacao == "identifica") |
| 439 | 439 | { |
| 440 | 440 | i3GEO.eventos.MOUSEPARADO.remove("verificaTip()"); |
| 441 | - var janela = i3GEO.janela.cria("450px","250px",i3GEO.configura.locaplic+'/ferramentas/identifica/index.htm?&x='+objposicaocursor.ddx+'&y='+objposicaocursor.ddy+'&escala='+objmapa.scale,"","","Identifica"); | |
| 441 | + var janela = i3GEO.janela.cria("450px","250px",i3GEO.configura.locaplic+'/ferramentas/identifica/index.htm?&x='+objposicaocursor.ddx+'&y='+objposicaocursor.ddy+'&escala='+i3GEO.parametros.mapscale,"","","Identifica"); | |
| 442 | 442 | var temp = function(){ |
| 443 | 443 | i3GEO.eventos.MOUSECLIQUE.remove("cliqueIdentifica()"); |
| 444 | 444 | i3GEO.barraDeBotoes.ativaBotoes(); |
| ... | ... | @@ -601,7 +601,7 @@ g_listaFuncoesBotoes = { |
| 601 | 601 | funcaoonclick:function(){ |
| 602 | 602 | i3GEO.util.criaBox(); |
| 603 | 603 | g_operacao = "navega"; |
| 604 | - if(navn){wdocaf((objmapa.w/2)+40+"px",(objmapa.h/2)+50+"px",i3GEO.configura.locaplic+"/ferramentas/googlemaps/index.php","","","Google maps");} | |
| 604 | + if(navn){wdocaf((i3GEO.parametros.w/2)+40+"px",(i3GEO.parametros.h/2)+50+"px",i3GEO.configura.locaplic+"/ferramentas/googlemaps/index.php","","","Google maps");} | |
| 605 | 605 | else |
| 606 | 606 | {wdocaf("500px","380px",i3GEO.configura.locaplic+"/ferramentas/googlemaps/index.php","","","Google maps");} |
| 607 | 607 | atualizagoogle = function(){ |
| ... | ... | @@ -694,8 +694,8 @@ g_listaFuncoesBotoes = { |
| 694 | 694 | tipo:"", |
| 695 | 695 | dica:$trad("d20"), |
| 696 | 696 | funcaoonclick:function(){ |
| 697 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 698 | - i3GEO.php.reiniciaMapa(ajaxredesenha); | |
| 697 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 698 | + i3GEO.php.reiniciaMapa(i3GEO.atualiza); | |
| 699 | 699 | } |
| 700 | 700 | }, |
| 701 | 701 | { | ... | ... |
classesjs/depreciados.js
| ... | ... | @@ -2,6 +2,15 @@ |
| 2 | 2 | //acerta algumas variáveis para efeitos de compatibilidade |
| 3 | 3 | // |
| 4 | 4 | function i3GEOmantemCompatibilidade(){ |
| 5 | + try{ | |
| 6 | + if(objmapa.finaliza != "") | |
| 7 | + i3GEO.finaliza = objmapa.finaliza | |
| 8 | + }catch(e){}; | |
| 9 | + | |
| 10 | + | |
| 11 | + g_arvoreClick = ""; | |
| 12 | + g_arvoreClicks = ""; | |
| 13 | + | |
| 5 | 14 | if ($i("longlat")){ |
| 6 | 15 | atualizalonglat = function(){ |
| 7 | 16 | $i("longlat").innerHTML = objposicaocursor.dmsx + " " + objposicaocursor.dmsy; |
| ... | ... | @@ -13,6 +22,14 @@ function i3GEOmantemCompatibilidade(){ |
| 13 | 22 | {i3GEO.arvoreDeCamadas.OPCOESTEMAS = false;} |
| 14 | 23 | } |
| 15 | 24 | catch(e){}; |
| 25 | + try { | |
| 26 | + i3GEO.maparef.fatorZoomDinamico = g_zoomRefDinamico; | |
| 27 | + } | |
| 28 | + catch(e){}; | |
| 29 | + try { | |
| 30 | + i3GEO.configura.mashuppar = g_mashuppar; | |
| 31 | + } | |
| 32 | + catch(e){}; | |
| 16 | 33 | try{ |
| 17 | 34 | //if($i("arvoreAdicionaTema") || $i("outrasOpcoesAdiciona")){ |
| 18 | 35 | if(!$i("arvoreAdicionaTema")) |
| ... | ... | @@ -176,6 +193,7 @@ function i3GEOmantemCompatibilidade(){ |
| 176 | 193 | } |
| 177 | 194 | catch(e){} |
| 178 | 195 | } |
| 196 | + | |
| 179 | 197 | // |
| 180 | 198 | // |
| 181 | 199 | // |
| ... | ... | @@ -186,15 +204,24 @@ cpObj = new cpaint(); |
| 186 | 204 | cpObj.set_async("true"); |
| 187 | 205 | cpObj.set_response_type("JSON"); |
| 188 | 206 | |
| 207 | +/* | |
| 208 | +Class: Mapa (depreciado) | |
| 209 | +*/ | |
| 210 | +function Mapa(e,m) | |
| 211 | +{ | |
| 212 | + i3GEO.cria(); | |
| 213 | + this.inicializa= function() | |
| 214 | + {i3GEO.inicia();}; | |
| 215 | +} | |
| 189 | 216 | // |
| 190 | 217 | //funcoes depreciadas |
| 191 | 218 | // |
| 192 | 219 | objaguarde = { |
| 193 | 220 | abre: function(){ |
| 194 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 221 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 195 | 222 | }, |
| 196 | 223 | fecha: function(){ |
| 197 | - i3GEO.janela.fechaAguarde("ajaxredesenha"); | |
| 224 | + i3GEO.janela.fechaAguarde("i3GEO.atualiza"); | |
| 198 | 225 | } |
| 199 | 226 | } |
| 200 | 227 | /* |
| ... | ... | @@ -459,7 +486,7 @@ function i3geo_pegaElementoPai(e) |
| 459 | 486 | Function: convddtela (depreciado) |
| 460 | 487 | */ |
| 461 | 488 | function convddtela(vx,vy,docmapa) |
| 462 | -{alert("convddtela foi depreciado utilize i3GEO.calculo");return(i3GEO.calculo.dd2tela(vx,vy,docmapa,objmapa.extent,objmapa.cellsize));} | |
| 489 | +{alert("convddtela foi depreciado utilize i3GEO.calculo");return(i3GEO.calculo.dd2tela(vx,vy,docmapa,i3GEO.parametros.extent,i3GEO.parametros.pixelsize));} | |
| 463 | 490 | /* |
| 464 | 491 | Function: convdmsf (depreciado) |
| 465 | 492 | */ |
| ... | ... | @@ -798,8 +825,8 @@ function mostraTip(retorno) |
| 798 | 825 | {$i("img").title = "";} |
| 799 | 826 | if (retorno != "") |
| 800 | 827 | { |
| 801 | - var res = "<div id='cabecatip' style='text-align:left;background-color:rgb(240,240,240)'><span style='color:navy;cursor:pointer;text-align:left' onclick='javascript:objmapa.parado=\"cancela\"'>parar </span>"; | |
| 802 | - res += "<span style='color:navy;cursor:pointer;text-align:left' onclick='javascript:objmapa.objtips.push($i(\"tip\"));$i(\"tip\").id=\"\";$i(\"cabecatip\").innerHTML =\"\";$i(\"cabecatip\").id =\"\"' >fixar</span></div>"; | |
| 828 | + var res = "<div id='cabecatip' style='text-align:left;background-color:rgb(240,240,240)'><span style='color:navy;cursor:pointer;text-align:left' onclick='javascript:objmapaparado=\"cancela\"'>parar </span>"; | |
| 829 | + res += "<span style='color:navy;cursor:pointer;text-align:left' onclick='javascript:i3GEO.janela.TIPS.push($i(\"tip\"));$i(\"tip\").id=\"\";$i(\"cabecatip\").innerHTML =\"\";$i(\"cabecatip\").id =\"\"' >fixar</span></div>"; | |
| 803 | 830 | var temas = retorno.split("!"); |
| 804 | 831 | var tema = temas.length-1; |
| 805 | 832 | if(tema >= 0) |
| ... | ... | @@ -918,14 +945,17 @@ function ativaGuias() |
| 918 | 945 | // |
| 919 | 946 | //define os títulos das guias padrão |
| 920 | 947 | // |
| 921 | - if($i(objmapa.guiaTemas)) | |
| 922 | - {$i(objmapa.guiaTemas).innerHTML = $trad("g1");} | |
| 923 | - if($i(objmapa.guiaMenu)) | |
| 924 | - {$i(objmapa.guiaMenu).innerHTML = $trad("g2");} | |
| 925 | - if($i(objmapa.guiaLegenda)) | |
| 926 | - {$i(objmapa.guiaLegenda).innerHTML = $trad("g3");} | |
| 927 | - if($i(objmapa.guiaListaMapas)) | |
| 928 | - {$i(objmapa.guiaListaMapas).innerHTML = $trad("g4");} | |
| 948 | + try{ | |
| 949 | + if($i(objmapa.guiaTemas)) | |
| 950 | + {$i(objmapa.guiaTemas).innerHTML = $trad("g1");} | |
| 951 | + if($i(objmapa.guiaMenu)) | |
| 952 | + {$i(objmapa.guiaMenu).innerHTML = $trad("g2");} | |
| 953 | + if($i(objmapa.guiaLegenda)) | |
| 954 | + {$i(objmapa.guiaLegenda).innerHTML = $trad("g3");} | |
| 955 | + if($i(objmapa.guiaListaMapas)) | |
| 956 | + {$i(objmapa.guiaListaMapas).innerHTML = $trad("g4");} | |
| 957 | + } | |
| 958 | + catch(e){}; | |
| 929 | 959 | // |
| 930 | 960 | // |
| 931 | 961 | for(var g=0;g<12;g++) |
| ... | ... | @@ -975,7 +1005,7 @@ function ativaGuias() |
| 975 | 1005 | if($i("guia"+g+"obj")) |
| 976 | 1006 | { |
| 977 | 1007 | $i("guia"+g+"obj").style.overflow="auto"; |
| 978 | - $i("guia"+g+"obj").style.height = objmapa.h; | |
| 1008 | + $i("guia"+g+"obj").style.height = i3GEO.parametros.h; | |
| 979 | 1009 | } |
| 980 | 1010 | } |
| 981 | 1011 | } |
| ... | ... | @@ -1017,7 +1047,7 @@ function ativaGuias() |
| 1017 | 1047 | i3GEO.arvoreDeTemas.cria(i3GEO.configura.sid,i3GEO.configura.locaplic,ondeArvore); |
| 1018 | 1048 | }; |
| 1019 | 1049 | } |
| 1020 | - if ($i(objmapa.guiaLegenda)) | |
| 1050 | + if($i(objmapa.guiaLegenda)) | |
| 1021 | 1051 | { |
| 1022 | 1052 | $i(objmapa.guiaLegenda).onclick = function() |
| 1023 | 1053 | {g_guiaativa = objmapa.guiaLegenda;mostraguiaf(4);objmapa.atualizaLegendaHTML();}; |
| ... | ... | @@ -1055,7 +1085,7 @@ function ativaGuias() |
| 1055 | 1085 | { |
| 1056 | 1086 | var d = $i(s).style; |
| 1057 | 1087 | d.style.overflow="auto"; |
| 1058 | - d.style.height = objmapa.h-13; | |
| 1088 | + d.style.height = i3GEO.parametros.h-13; | |
| 1059 | 1089 | d.style.width = "100%"; |
| 1060 | 1090 | } |
| 1061 | 1091 | } |
| ... | ... | @@ -1111,7 +1141,7 @@ function i3geo_comboTemasMenu(funcaoOnchange,idDestino,idCombo,idGrupo,idSubGrup |
| 1111 | 1141 | Function: remapaf (depreciado) |
| 1112 | 1142 | */ |
| 1113 | 1143 | function remapaf() |
| 1114 | -{ajaxredesenha("");} | |
| 1144 | +{i3GEO.atualiza("");} | |
| 1115 | 1145 | /* |
| 1116 | 1146 | Function: limpacontainerf (depreciado) |
| 1117 | 1147 | */ |
| ... | ... | @@ -1416,3 +1446,13 @@ Function: ajaxCorpoMapa (depreciado) |
| 1416 | 1446 | */ |
| 1417 | 1447 | function ajaxCorpoMapa(retorno) |
| 1418 | 1448 | {i3GEO.mapa.corpo.veirifca(retorno);} |
| 1449 | +/* | |
| 1450 | +Function: ajaxredesenha (depreciado) | |
| 1451 | +*/ | |
| 1452 | +function ajaxredesenha(retorno) | |
| 1453 | +{i3GEO.atualiza(retorno);} | |
| 1454 | +/* | |
| 1455 | +Function: ajaxIniciaParametros (depreciado) | |
| 1456 | +*/ | |
| 1457 | +function ajaxIniciaParametros(retorno) | |
| 1458 | +{i3GEO.atualiza(retorno);} | |
| 1419 | 1459 | \ No newline at end of file | ... | ... |
classesjs/i3geonaocompacto.js
| ... | ... | @@ -31,6 +31,7 @@ var jsfiles = new Array( |
| 31 | 31 | "../pacotes/yui252/build/treeview/treeview-min.js", |
| 32 | 32 | "../pacotes/balloon-tooltips/htdocs/js/balloon.config.js", |
| 33 | 33 | "../pacotes/balloon-tooltips/htdocs/js/balloon.js", |
| 34 | +"classe_i3geo.js", | |
| 34 | 35 | "classe_php.js", |
| 35 | 36 | "classe_configura.js", |
| 36 | 37 | "depreciados.js", |
| ... | ... | @@ -54,8 +55,6 @@ var jsfiles = new Array( |
| 54 | 55 | "classe_arvoredetemas.js", |
| 55 | 56 | "configura.js", |
| 56 | 57 | "classe_barradebotoes.js", |
| 57 | -"redesenho.js", | |
| 58 | -"iniciamma.js", | |
| 59 | 58 | "menususpenso.js", |
| 60 | 59 | "../pacotes/richdraw/richdraw_tudo_compacto.js", |
| 61 | 60 | "classe_gadgets.js" | ... | ... |
classesjs/iniciamma.js
| ... | ... | @@ -1,596 +0,0 @@ |
| 1 | -/* | |
| 2 | -Title: iniciamma.js | |
| 3 | - | |
| 4 | -Cria o objeto objmapa e inicializa o i3geo. | |
| 5 | - | |
| 6 | -Define as operações das funcionalidades principais. | |
| 7 | - | |
| 8 | -O I3Geo utiliza variáveis (veja o item específico na documentação) globais que possibilitam alterar algumas das características da interface. | |
| 9 | -Essas variáveis recebem valores default quando o I3Geo é iniciado mas podem ser alterados antes da inicialização do mapa (método inicializa()). | |
| 10 | -No arquivo aplicmapa/geral.htm existem exemplos de como fazer isso. | |
| 11 | -As variáveis globais podem também ser alteradas em tempo de execução. | |
| 12 | - | |
| 13 | -Exemplo: | |
| 14 | - | |
| 15 | -g_janelaMen = "nao" | |
| 16 | - | |
| 17 | -objmapa = new Mapa() | |
| 18 | - | |
| 19 | -objmapa.inicializa() | |
| 20 | - | |
| 21 | -File: i3geo/classesjs/iniciamma.js | |
| 22 | - | |
| 23 | -About: Licença | |
| 24 | - | |
| 25 | -I3Geo Interface Integrada de Ferramentas de Geoprocessamento para Internet | |
| 26 | - | |
| 27 | -Direitos Autorais Reservados (c) 2006 Ministério do Meio Ambiente Brasil | |
| 28 | -Desenvolvedor: Edmar Moretti edmar.moretti@mma.gov.br | |
| 29 | - | |
| 30 | -Este programa é software livre; você pode redistribuí-lo | |
| 31 | -e/ou modificá-lo sob os termos da Licença Pública Geral | |
| 32 | -GNU conforme publicada pela Free Software Foundation; | |
| 33 | -tanto a versão 2 da Licença. | |
| 34 | -Este programa é distribuído na expectativa de que seja útil, | |
| 35 | -porém, SEM NENHUMA GARANTIA; nem mesmo a garantia implícita | |
| 36 | -de COMERCIABILIDADE OU ADEQUAÇÃO A UMA FINALIDADE ESPECÍFICA. | |
| 37 | -Consulte a Licença Pública Geral do GNU para mais detalhes. | |
| 38 | -Você deve ter recebido uma cópia da Licença Pública Geral do | |
| 39 | -GNU junto com este programa; se não, escreva para a | |
| 40 | -Free Software Foundation, Inc., no endereço | |
| 41 | -59 Temple Street, Suite 330, Boston, MA 02111-1307 USA. | |
| 42 | -*/ | |
| 43 | -/* | |
| 44 | -Section: variáveis de configuração calculadas na inicialização do mapa | |
| 45 | -*/ | |
| 46 | -/* | |
| 47 | -Variable: imagemxi depreciada | |
| 48 | - | |
| 49 | -Inicialização da variável de cálculo de posicionamento que indica a posição em x do corpo do mapa. | |
| 50 | -É calculada na iniciallização e indica a posição em pixels do corpo do mapa na página. Muitos elementos da interface são posicionados em função desse valor. | |
| 51 | -*/ | |
| 52 | -imagemxi = 0; | |
| 53 | -/* | |
| 54 | -Variable: imagemyi depreciada | |
| 55 | - | |
| 56 | -Inicialização da variável de cálculo de posicionamento que indica a posição em x do corpo do mapa | |
| 57 | -É calculada na iniciallização e indica a posição em pixels do corpo do mapa na página. Muitos elementos da interface são posicionados em função desse valor. | |
| 58 | - | |
| 59 | -*/ | |
| 60 | -imagemyi = 0; | |
| 61 | -/* | |
| 62 | -Variable: navm | |
| 63 | - | |
| 64 | -Verdadeiro (true) se o navegador for o Internet Explorer | |
| 65 | -*/ | |
| 66 | -navm = false; | |
| 67 | -/* | |
| 68 | -Variable: navn | |
| 69 | - | |
| 70 | -Verdadeiro (true) se o navegador for o Firefox | |
| 71 | -*/ | |
| 72 | -navn = false; | |
| 73 | -//seta as variáveis navn e navm | |
| 74 | -var app = navigator.appName.substring(0,1); | |
| 75 | -if (app=='N') navn=true; else navm=true; | |
| 76 | -/* | |
| 77 | -Section: variáveis que são definidas para controle de processos das funções do I3Geo. São definidas aqui para não gerarem erros nas funções que as utilizam. | |
| 78 | -*/ | |
| 79 | -/* | |
| 80 | -Variable: atuaLeg | |
| 81 | - | |
| 82 | -Variável interna que define se a legenda docável deve ser atualizada. | |
| 83 | -Quando a legenda é colocada em uma janela móvel, essa variável é utilizada para demonstrar seu status. | |
| 84 | -Se sim, a legenda móvel é atualizada quando o mapa é alterado. | |
| 85 | -*/ | |
| 86 | -atuaLeg="nao"; | |
| 87 | -/* | |
| 88 | -Variable: g_zoomRefDinamico | |
| 89 | - | |
| 90 | -Define o fator de zoom que será aplicado ao mapa de referência quando este estiver no modo dinâmico. | |
| 91 | -*/ | |
| 92 | -g_zoomRefDinamico = -3; | |
| 93 | -/* | |
| 94 | -Variable: g_mashuppar | |
| 95 | - | |
| 96 | -Parâmetros de inicialização que podem ser utilizados na interface mashup. | |
| 97 | - | |
| 98 | -Os parâmetros são os mesmos que podem ser utilizados quando o i3geo é inicializado pelo ms_criamapa.php. | |
| 99 | - | |
| 100 | -Exemplo: g_mashuppar = "&pontos=-54 -12&temasa=biomas&layers=biomas" | |
| 101 | - | |
| 102 | -A inicialização do I3Geo como Mashup possibilita que o I3Geo funcione dentro de uma página web qualquer, como um componente. | |
| 103 | -*/ | |
| 104 | -g_mashuppar = ""; | |
| 105 | -/* | |
| 106 | -Variable: g_operacao | |
| 107 | - | |
| 108 | -Nome da última operação que foi executada. | |
| 109 | - | |
| 110 | -Dependendo do tipo de operação são aplicadas as atualizações necessárias aos componentes do mapa. Por exemplo, redesenha o corpo do mapa, atualiza a lista de temas, etc. | |
| 111 | - | |
| 112 | -Essas operações são controladas pela função ajaxiniciaparametros. | |
| 113 | -*/ | |
| 114 | -g_operacao = ""; | |
| 115 | -/* | |
| 116 | -Variable: g_zoomProximo | |
| 117 | - | |
| 118 | -Array com as extensões geográficas da função de zoom anterior e zoom próximo. | |
| 119 | - | |
| 120 | -*/ | |
| 121 | -g_zoomProximo = new Array(); | |
| 122 | -/* | |
| 123 | -Variable: g_nomepin | |
| 124 | - | |
| 125 | -Nome do tema atual que irá receber dados pontuais ou toponimia. | |
| 126 | - | |
| 127 | -*/ | |
| 128 | -g_nomepin = ""; | |
| 129 | -/* | |
| 130 | -Variable: g_arvoreClick (depreciado) | |
| 131 | - | |
| 132 | -Item da árvore de temas que foi clicado por último. Guarda o identificador do nó da árvore de temas. | |
| 133 | -Essa variável permite que as funções lembrem qual foi o último tema sobre o qual o usuário fez alguma operação. | |
| 134 | -*/ | |
| 135 | -g_arvoreClick = ""; | |
| 136 | -g_arvoreClicks = ""; | |
| 137 | -/* | |
| 138 | -Variable: g_tipoacao | |
| 139 | - | |
| 140 | -Tipo de ação que está sendo executada. | |
| 141 | -Quando o usuário clica no mapa, essa variável é pesquisada para definir o tipo de operação que deve ser executada. | |
| 142 | -É definida quando o usuário seleciona uma determinada ferramenta do i3Geo. | |
| 143 | -*/ | |
| 144 | -g_tipoacao = "zoomli"; | |
| 145 | -/* | |
| 146 | -Variable: g_realca | |
| 147 | - | |
| 148 | -Define se o realce do mapa deve ficar ativo. | |
| 149 | -O realce é um box que segue o mouse, por ter uma coloração diferente, provoca um efeito de destaque. | |
| 150 | -*/ | |
| 151 | -g_realca = "nao"; | |
| 152 | -/* | |
| 153 | -Variable: g_panM | |
| 154 | - | |
| 155 | -Indica se o mapa deve ou não ser deslocado. | |
| 156 | -É utilizada no controle da função "pan". | |
| 157 | -*/ | |
| 158 | -g_panM = "nao"; | |
| 159 | -/* | |
| 160 | -Variable: g_r | |
| 161 | - | |
| 162 | -Indica se o software R esta instalado (sim ou nao). É preenchida na inicialização do mapa via AJAX. | |
| 163 | -*/ | |
| 164 | -g_r = "nao"; | |
| 165 | - | |
| 166 | -g_postpx = "px"; | |
| 167 | -g_tipotop = "top"; | |
| 168 | -g_tipoleft = "left"; | |
| 169 | -if (navm) | |
| 170 | -{ | |
| 171 | - g_postpx = ""; //utilizado para crossbrowser | |
| 172 | - g_tipotop = "pixelTop"; //utilizado para crossbrowser | |
| 173 | - g_tipoleft = "pixelLeft"; //utilizado para crossbrowser | |
| 174 | -} | |
| 175 | -/* | |
| 176 | -Class: Mapa | |
| 177 | - | |
| 178 | -Objeto mapa (objmapa). | |
| 179 | - | |
| 180 | -Executa os programas ajax que geram o corpo do mapa, o mapa de referência, a barra de escala e a legenda. | |
| 181 | -Preenche os elementos HTML necessários para visualização do mapa. | |
| 182 | - | |
| 183 | -Parameters: | |
| 184 | - | |
| 185 | -e - (opcional, se não existir, o valor será buscado na URL) extensão geográfica do mapa com valores separados por espaço | |
| 186 | - | |
| 187 | -m - (opcional, se não existir, o valor será buscado na URL) nome do mapfile criado para o mapa | |
| 188 | - | |
| 189 | -return: | |
| 190 | - | |
| 191 | -objmapa - objeto mapa do i3geo | |
| 192 | - | |
| 193 | -Constructor: | |
| 194 | - | |
| 195 | -objmapa = New Mapa() | |
| 196 | -*/ | |
| 197 | -function Mapa(e,m) | |
| 198 | -{ | |
| 199 | - //para efeitos de compatibilidade | |
| 200 | - try { | |
| 201 | - i3GEO.configura.locaplic = g_locaplic; | |
| 202 | - } | |
| 203 | - catch(e){g_locaplic = i3GEO.configura.locaplic;}; | |
| 204 | - // | |
| 205 | - //calcula o tamanho do mapa | |
| 206 | - var diminuix = (navm) ? g_diminuixM : g_diminuixN; | |
| 207 | - var diminuiy = (navm) ? g_diminuiyM : g_diminuiyN; | |
| 208 | - /* | |
| 209 | - Variable: objmapa.w | |
| 210 | - | |
| 211 | - Largura do mapa criado | |
| 212 | - | |
| 213 | - É calculado em função do tamanho da tela. No caso do corpo do mapa possuir a propridedade de largura em seu estilo, é utilizado esse tamanho. | |
| 214 | - */ | |
| 215 | - /* | |
| 216 | - Variable: objmapa.h | |
| 217 | - | |
| 218 | - Altura do mapa criado | |
| 219 | - | |
| 220 | - É calculado em função do tamanho da tela. No caso do corpo do mapa possuir a propridedade de largura em seu estilo, é utilizado esse tamanho. | |
| 221 | - */ | |
| 222 | - if (e == undefined) | |
| 223 | - { | |
| 224 | - var menos = 0; | |
| 225 | - if ($i("contemFerramentas")) | |
| 226 | - {menos = menos + parseInt($i("contemFerramentas").style.width);} | |
| 227 | - if ($i("ferramentas")) | |
| 228 | - {menos = menos + parseInt($i("ferramentas").style.width);} | |
| 229 | - var novow = parseInt(screen.availWidth) - diminuix; | |
| 230 | - var novoh = parseInt(screen.availHeight) - diminuiy; | |
| 231 | - if (novow >= 1024) | |
| 232 | - { | |
| 233 | - novow = 1000; | |
| 234 | - } | |
| 235 | - if (novoh >= 700) | |
| 236 | - { | |
| 237 | - novoh = 700; | |
| 238 | - } | |
| 239 | - //o try aqui é necessário por conta do uso possível do i3geo em um iframe | |
| 240 | - try | |
| 241 | - { | |
| 242 | - if (document.body.style.width < 400) | |
| 243 | - { | |
| 244 | - var novow = parseInt(screen.availWidth) - diminuix; | |
| 245 | - var novoh = parseInt(screen.availHeight) - diminuiy; | |
| 246 | - window.resizeTo(screen.availWidth,screen.availHeight); | |
| 247 | - window.moveTo(0,0); | |
| 248 | - } | |
| 249 | - } | |
| 250 | - catch(e){var e = "";} | |
| 251 | - document.body.style.width = novow; | |
| 252 | - document.body.style.height = novoh; | |
| 253 | - this.w = novow - menos - diminuix; | |
| 254 | - this.h = novoh - diminuiy; | |
| 255 | - if (document.getElementById("corpoMapa")) | |
| 256 | - { | |
| 257 | - if (document.getElementById("corpoMapa").style.width) | |
| 258 | - { | |
| 259 | - this.w = parseInt(document.getElementById("corpoMapa").style.width); | |
| 260 | - this.h = parseInt(document.getElementById("corpoMapa").style.width); | |
| 261 | - } | |
| 262 | - if (document.getElementById("corpoMapa").style.height) | |
| 263 | - {this.h = parseInt(document.getElementById("corpoMapa").style.height);} | |
| 264 | - } | |
| 265 | - } | |
| 266 | - else | |
| 267 | - { | |
| 268 | - this.w = document.body.offsetWidth - parseInt($i("contemFerramentas").style.width) - diminuix; | |
| 269 | - this.h = document.body.offsetHeight - diminuiy; | |
| 270 | - } | |
| 271 | - if($i("contemImg")) | |
| 272 | - { | |
| 273 | - $i("contemImg").style.height=this.h + "px"; | |
| 274 | - $i("contemImg").style.width=this.w + "px"; | |
| 275 | - } | |
| 276 | - i3GEO.interface.cria(this.w,this.h); | |
| 277 | - /* | |
| 278 | - Variable: objmapa.navegacaoDir | |
| 279 | - | |
| 280 | - Indica se deve ser incluida a opção de navegação nos diretórios do servidor. | |
| 281 | - | |
| 282 | - A indicação sim|nao é obtida na inicialização do i3geo, e é definido no ms_configura.php | |
| 283 | - */ | |
| 284 | - this.navegacaoDir = "nao"; | |
| 285 | - /* | |
| 286 | - Variable: objmapa.listavisual | |
| 287 | - | |
| 288 | - String com a lista de visuais disponíveis no i3geo. | |
| 289 | - | |
| 290 | - A lista é obtida na inicialização do i3geo, lendo-se os diretórios disponíveis em imagens/visual | |
| 291 | - */ | |
| 292 | - this.listavisual = ""; | |
| 293 | - /* | |
| 294 | - Variable: objmapa.visualatual | |
| 295 | - | |
| 296 | - Indica qual o visual atualmente em uso. | |
| 297 | - */ | |
| 298 | - this.visualatual = "default"; | |
| 299 | - /* | |
| 300 | - Variable: objmapa.funcoesClickMapa | |
| 301 | - | |
| 302 | - Array com a lista de funções que serão executadas quando o usuário clica no mapa | |
| 303 | - | |
| 304 | - É utilizado quando o i3geo é customizado, acrescentando outras funcionalidades alé do padrão. | |
| 305 | - | |
| 306 | - Na customização, deve ser definida após a inicialização do mapa. | |
| 307 | - */ | |
| 308 | - this.funcoesClickMapa = new Array(); | |
| 309 | - /* | |
| 310 | - Variable: objmapa.objtips | |
| 311 | - | |
| 312 | - Array que guarda os objetos tips fixos na tela. | |
| 313 | - | |
| 314 | - Os objetos são acrescentados à essa variável quando um tip é fixado na tela pelo usuário. | |
| 315 | - | |
| 316 | - Quando o mapa é redesenhado, essa variável é limpa. | |
| 317 | - */ | |
| 318 | - this.objtips = new Array(); // | |
| 319 | - /* | |
| 320 | - Variable: objmapa.tempo | |
| 321 | - | |
| 322 | - Inicia o temporizador para redesenhar o mapa. | |
| 323 | - | |
| 324 | - */ | |
| 325 | - this.tempo = ""; // | |
| 326 | - /* | |
| 327 | - Variable: objmapa.tempoRedesenho | |
| 328 | - | |
| 329 | - Inicia o temporizador para redesenhar o mapa automaticamente. | |
| 330 | - | |
| 331 | - */ | |
| 332 | - this.tempoRedesenho = ""; // | |
| 333 | - this.contaTempoRedesenho = ""; // | |
| 334 | - /* | |
| 335 | - Variable: objmapa.temaAtivo | |
| 336 | - | |
| 337 | - Tema que esta ativo. | |
| 338 | - | |
| 339 | - Utilizado em varias operacoes onde o tema e selecionado de um combo | |
| 340 | - */ | |
| 341 | - this.temaAtivo = ""; | |
| 342 | - /* | |
| 343 | - Variable: objmapa.pinmarca | |
| 344 | - | |
| 345 | - Simbolo utilizado para insercao de pontos. | |
| 346 | - | |
| 347 | - A inserção é utilizada em algumas ferramentas, como a digitalização de elementos. | |
| 348 | - */ | |
| 349 | - this.pinmarca = "marca"; // | |
| 350 | - /* | |
| 351 | - Variable: objmapa.pintamanho | |
| 352 | - | |
| 353 | - Tamanho da marca utilizada na inclusão de pontos | |
| 354 | - */ | |
| 355 | - this.pintamanho= "5"; | |
| 356 | - /* | |
| 357 | - Variable: objmapa.escala | |
| 358 | - | |
| 359 | - Escala do mapa atual. | |
| 360 | - | |
| 361 | - É sempre redefinida quando o mapa é redesenhado. | |
| 362 | - */ | |
| 363 | - this.scale = 50000; | |
| 364 | - /* | |
| 365 | - Variable: objmapa.temas (depreciado) | |
| 366 | - | |
| 367 | - Utilize i3GEO.arvoreDeCamadas.CAMADAS | |
| 368 | - | |
| 369 | - Temas disponíveis no mapa atual. | |
| 370 | - */ | |
| 371 | - /* | |
| 372 | - Variable: objmapa.legenda | |
| 373 | - | |
| 374 | - Legenda HTML do mapa atual. | |
| 375 | - | |
| 376 | - Guarda o HTML que apresenta a legenda no mapa. | |
| 377 | - */ | |
| 378 | - this.legenda=""; | |
| 379 | - /* | |
| 380 | - Variable: objmapa.finaliza | |
| 381 | - | |
| 382 | - Função que será executada no final do processo de montagem do mapa. | |
| 383 | - | |
| 384 | - Pode ser utilizada quando se deseja customizar o I3Geo. | |
| 385 | - */ | |
| 386 | - this.finaliza=""; | |
| 387 | - /* | |
| 388 | - Variable: objmapa.cgi | |
| 389 | - | |
| 390 | - Indica a localização do mapserver cgi. É definida pelo i3geo na inicialização do mapa e configurada no arquivo ms_configura.php. | |
| 391 | - */ | |
| 392 | - this.cgi = ""; | |
| 393 | - /* | |
| 394 | - Variable: objmapa.utilizacgi | |
| 395 | - | |
| 396 | - Indica se o mapserver está operando no modo cgi. É definida pelo i3geo na inicialização do mapa e configurada no arquivo ms_configura.php. | |
| 397 | - */ | |
| 398 | - this.utilizacgi = ""; | |
| 399 | - /* | |
| 400 | - Variable: objmapa.versaoms | |
| 401 | - | |
| 402 | - Versão do mapserver em uso | |
| 403 | - */ | |
| 404 | - this.versaoms = ""; | |
| 405 | - /* | |
| 406 | - Function: inicializa | |
| 407 | - | |
| 408 | - Inicializa o mapa | |
| 409 | - | |
| 410 | - Paremeters: | |
| 411 | - | |
| 412 | - void | |
| 413 | - */ | |
| 414 | - this.inicializa= function() | |
| 415 | - { | |
| 416 | - i3GEOmantemCompatibilidade(); | |
| 417 | - if (!$i("i3geo")) | |
| 418 | - {document.body.id = "i3geo";} | |
| 419 | - $i("i3geo").className = "yui-skin-sam"; | |
| 420 | - if($i("mst")) | |
| 421 | - $i("mst").style.visibility ="hidden"; | |
| 422 | - // | |
| 423 | - //se g_sid="", o html foi aberto diretamente | |
| 424 | - //então, é necessário criar os arquivos temporários do mapa | |
| 425 | - //essa operação deve ser assíncrona | |
| 426 | - // | |
| 427 | - if(i3GEO.configura.sid=="") | |
| 428 | - { | |
| 429 | - var mashup = function (retorno) | |
| 430 | - { | |
| 431 | - i3GEO.configura.sid = retorno.data; | |
| 432 | - objmapa.inicializa(); | |
| 433 | - }; | |
| 434 | - i3GEO.php.criamapa(mashup,g_mashuppar); | |
| 435 | - } | |
| 436 | - else | |
| 437 | - { | |
| 438 | - // | |
| 439 | - //inicia o mapa | |
| 440 | - // | |
| 441 | - //YAHOO.log("Chamada AJAX para obter o mapa inicial", "i3geo"); | |
| 442 | - i3GEO.janela.abreAguarde("montaMapa",$trad("o5")); | |
| 443 | - i3GEO.php.inicia(this.montaMapa,g_embedLegenda,this.w,this.h); | |
| 444 | - } | |
| 445 | - if(i3GEO.eventos.NAVEGAMAPA.toString().search("i3GEO.janela.fechaAguarde()") < 0) | |
| 446 | - {i3GEO.eventos.NAVEGAMAPA.push("i3GEO.janela.fechaAguarde()");} | |
| 447 | - | |
| 448 | - }; | |
| 449 | - /* | |
| 450 | - Function: montaMapa | |
| 451 | - | |
| 452 | - Processa os resultados da inicialização e monta o mapa | |
| 453 | - | |
| 454 | - Parameters: | |
| 455 | - | |
| 456 | - Resultado da função inicia retornado pela chamada em ajax | |
| 457 | - */ | |
| 458 | - this.montaMapa = function(retorno) | |
| 459 | - { | |
| 460 | - //YAHOO.log("Mapa obtido", "i3geo"); | |
| 461 | - if(retorno == ""){alert("Ocorreu um erro no mapa - montaMapa");retorno = {data:{erro: "erro"}};} | |
| 462 | - if(retorno.data.erro) | |
| 463 | - { | |
| 464 | - i3GEO.janela.fechaAguarde("montaMapa"); | |
| 465 | - document.body.style.backgroundColor="white"; | |
| 466 | - document.body.innerHTML = "<br>Para abrir o i3Geo utilize o link:<br><a href="+i3GEO.configura.locaplic+"/ms_criamapa.php >"+i3GEO.configura.locaplic+"/ms_criamapa.php</a>"; | |
| 467 | - return("linkquebrado"); | |
| 468 | - } | |
| 469 | - else | |
| 470 | - { | |
| 471 | - if(retorno.data.variaveis) | |
| 472 | - { | |
| 473 | - // | |
| 474 | - //executa com eval a string que é retornada pelo servidor (função inicia do mapa_controle.php | |
| 475 | - // | |
| 476 | - var tempo = ""; | |
| 477 | - var titulo = ""; | |
| 478 | - eval(retorno.data.variaveis); | |
| 479 | - try | |
| 480 | - { | |
| 481 | - if (titulo != "") | |
| 482 | - {top.document.title = titulo;} | |
| 483 | - } | |
| 484 | - catch(e){var e = "";} | |
| 485 | - | |
| 486 | - i3GEO.ajuda.mostraJanela("Tempo de desenho em segundos: "+tempo,""); | |
| 487 | - objmapa.scale = parseInt(mapscale); | |
| 488 | - objmapa.cellsize = g_celula; | |
| 489 | - objmapa.extent = mapexten; | |
| 490 | - objmapa.extentTotal = mapexten; | |
| 491 | - | |
| 492 | - i3GEO.interface.inicia(); | |
| 493 | - if (objmapa.finaliza) | |
| 494 | - {eval(objmapa.finaliza);} | |
| 495 | - | |
| 496 | - i3GEO.gadgets.quadros.inicia(10); | |
| 497 | - i3GEO.gadgets.quadros.grava("extensao",mapexten); | |
| 498 | - i3GEO.arvoreDeCamadas.cria("",retorno.data.temas,i3GEO.configura.sid,i3GEO.configura.locaplic); | |
| 499 | - i3GEO.maparef.atualiza(); | |
| 500 | - i3GEO.util.arvore("<b>"+$trad("p13")+"</b>","listaPropriedades",i3GEO.configura.listaDePropriedadesDoMapa); | |
| 501 | - i3GEO.gadgets.mostraCoordenadasGEO(); | |
| 502 | - i3GEO.gadgets.mostraEscalaNumerica(); | |
| 503 | - i3GEO.gadgets.mostraBuscaRapida(); | |
| 504 | - i3GEO.gadgets.mostraEscalaGrafica(); | |
| 505 | - i3GEO.gadgets.visual.inicia(); | |
| 506 | - i3GEO.guias.cria(); | |
| 507 | - if($i("arvoreAdicionaTema")) | |
| 508 | - i3GEO.arvoreDeTemas.cria(i3GEO.configura.sid,i3GEO.configura.locaplic,"arvoreAdicionaTema"); | |
| 509 | - i3GEO.ajuda.ativaLetreiro(objmapa.mensagens); | |
| 510 | - | |
| 511 | - if($i("mst")){$i("mst").style.display="block";} | |
| 512 | - //ajaxCorpoMapa(retorno); | |
| 513 | - ajaxIniciaParametros(retorno); | |
| 514 | - // | |
| 515 | - //calcula (opcional) o tamanho correto da tabela onde fica o mapa | |
| 516 | - //se não for feito esse cálculo, o mapa fica ajustado à esquerda | |
| 517 | - // | |
| 518 | - var temp = 0; | |
| 519 | - if ($i("contemFerramentas")){temp = temp + parseInt($i("contemFerramentas").style.width);} | |
| 520 | - if ($i("ferramentas")){temp = temp + parseInt($i("ferramentas").style.width);} | |
| 521 | - if($i("mst")) | |
| 522 | - {$i("mst").style.width=objmapa.w + temp + "px";} | |
| 523 | - | |
| 524 | - i3GEO.mapa.ajustaPosicao(); | |
| 525 | - | |
| 526 | - // | |
| 527 | - //reposiciona a janela de botoes | |
| 528 | - // | |
| 529 | - var imagemxy = i3GEO.util.pegaPosicaoObjeto($i("corpoMapa")); | |
| 530 | - // | |
| 531 | - //inicia as barras de ferramentas | |
| 532 | - // | |
| 533 | - if ($i("barraDeBotoes1")){ | |
| 534 | - var x1 = imagemxy[0]+40; | |
| 535 | - var y1 = imagemxy[1]+10; | |
| 536 | - } | |
| 537 | - if ($i("barraDeBotoes2")){ | |
| 538 | - var x2 = imagemxy[0]; | |
| 539 | - var y2 = imagemxy[1]+10; | |
| 540 | - } | |
| 541 | - else{ | |
| 542 | - if ($i("barraDeBotoes1")){ | |
| 543 | - var x1 = imagemxy[0]; | |
| 544 | - var x2 = imagemxy[1]+10; | |
| 545 | - } | |
| 546 | - } | |
| 547 | - if ($i("barraDeBotoes1")) | |
| 548 | - i3GEO.barraDeBotoes.inicializaBarra("barraDeBotoes1","i3geo_barra1",true,x1,y1); | |
| 549 | - if ($i("barraDeBotoes2")) | |
| 550 | - i3GEO.barraDeBotoes.inicializaBarra("barraDeBotoes2","i3geo_barra2",false,x2,y2); | |
| 551 | - //ativa as funções dos botões | |
| 552 | - i3GEO.barraDeBotoes.ativaBotoes(); | |
| 553 | - if (i3GEO.configura.entorno == "sim"){ | |
| 554 | - i3GEO.configura.entorno == "nao"; | |
| 555 | - i3GEO.navega.entorno.ativaDesativa(); | |
| 556 | - } | |
| 557 | - i3GEO.navega.autoRedesenho.ativa(); | |
| 558 | - if ($i("i3geo_escalanum")){$i("i3geo_escalanum").value = objmapa.scale;} | |
| 559 | - if ((objmapa.geoip == "nao") && ($i("ondeestou"))) | |
| 560 | - {$i("ondeestou").style.display="none";} | |
| 561 | - } | |
| 562 | - else | |
| 563 | - {alert("Erro. Impossivel criar o mapa "+retorno.data);return;} | |
| 564 | - // | |
| 565 | - //ativa a janela de mensagens se for o caso | |
| 566 | - // | |
| 567 | - if(document.getElementById("ajuda")) //para efeitos de compatibilidade com as versões anteriores a 4.1 | |
| 568 | - {i3GEO.ajuda.DIVAJUDA = "ajuda";} | |
| 569 | - var abreJM = "sim"; | |
| 570 | - if (i3GEO.util.pegaCookie("g_janelaMen")){ | |
| 571 | - var abreJM = i3GEO.util.pegaCookie("g_janelaMen"); | |
| 572 | - if(abreJM == "sim") | |
| 573 | - i3GEO.configura.iniciaJanelaMensagens = true; | |
| 574 | - else | |
| 575 | - i3GEO.configura.iniciaJanelaMensagens = false; | |
| 576 | - } | |
| 577 | - if(i3GEO.configura.iniciaJanelaMensagens == true) | |
| 578 | - {i3GEO.ajuda.abreJanela();} | |
| 579 | - if (i3GEO.configura.mapaRefDisplay != "none") | |
| 580 | - { | |
| 581 | - if (i3GEO.util.pegaCookie("i3GEO.configura.mapaRefDisplay")){i3GEO.configura.mapaRefDisplay = i3GEO.util.pegaCookie("i3GEO.configura.mapaRefDisplay");} | |
| 582 | - if (i3GEO.configura.mapaRefDisplay == "block"){i3GEO.maparef.inicia();} | |
| 583 | - } | |
| 584 | - i3GEO.janela.fechaAguarde("montaMapa"); | |
| 585 | - if (i3GEO.configura.liberaGuias == "sim"){i3GEO.guias.libera();} | |
| 586 | - if (document.getElementById("botao3d")) | |
| 587 | - { | |
| 588 | - if (g_3dmap == ""){document.getElementById("botao3d").style.display="none";} | |
| 589 | - } | |
| 590 | - } | |
| 591 | - if($i("mst")){ | |
| 592 | - $i("mst").style.visibility ="visible"; | |
| 593 | - } | |
| 594 | - //YAHOO.log("Fim objmapa.inicializa", "i3geo"); | |
| 595 | - }; | |
| 596 | -} | |
| 597 | 0 | \ No newline at end of file |
classesjs/menususpenso.js
| ... | ... | @@ -52,7 +52,7 @@ function montaMenuSuspenso(iddiv) |
| 52 | 52 | ins += '<ul class="first-of-type" style="border:0px solid white;top:10px;">'; |
| 53 | 53 | var sobe = ""; |
| 54 | 54 | if(navn){var sobe = "line-height:0px;";} |
| 55 | - if(objmapa.w >= 500) | |
| 55 | + if(i3GEO.parametros.w >= 500) | |
| 56 | 56 | { |
| 57 | 57 | ins += '<li class="yuimenubaritem first-of-type" style="'+sobe+'float:left;border: 0px solid white;" >'; |
| 58 | 58 | ins += ' <img style="border: 1px solid white;padding:0 0px;top:-7px;" src="'+i3GEO.util.$im("branco.gif")+'" onclick="i3GEO.idioma.trocaIdioma(\'pt\')" id="brasil" alt="Portugues"/>'; |
| ... | ... | @@ -71,7 +71,7 @@ function montaMenuSuspenso(iddiv) |
| 71 | 71 | } |
| 72 | 72 | function onMenuBarBeforeRender(p_sType, p_sArgs) |
| 73 | 73 | { |
| 74 | - if(objmapa.w >= 500) | |
| 74 | + if(i3GEO.parametros.w >= 500) | |
| 75 | 75 | {var conta = 4;} |
| 76 | 76 | else |
| 77 | 77 | {var conta = 0;} | ... | ... |
classesjs/redesenho.js
| ... | ... | @@ -1,116 +0,0 @@ |
| 1 | -/* | |
| 2 | -Title: redesenho.js | |
| 3 | - | |
| 4 | -Executa as operações de redesenho do mapa. | |
| 5 | - | |
| 6 | -Obtém os parâmetros necessários ao funcionamento da interface, como resolução, escala, etc. | |
| 7 | - | |
| 8 | -File: i3geo/classesjs/redesenho.js | |
| 9 | - | |
| 10 | -About: Licença | |
| 11 | - | |
| 12 | -I3Geo Interface Integrada de Ferramentas de Geoprocessamento para Internet | |
| 13 | - | |
| 14 | -Direitos Autorais Reservados (c) 2006 Ministério do Meio Ambiente Brasil | |
| 15 | -Desenvolvedor: Edmar Moretti edmar.moretti@mma.gov.br | |
| 16 | - | |
| 17 | -Este programa é software livre; você pode redistribuí-lo | |
| 18 | -e/ou modificá-lo sob os termos da Licença Pública Geral | |
| 19 | -GNU conforme publicada pela Free Software Foundation; | |
| 20 | -tanto a versão 2 da Licença. | |
| 21 | -Este programa é distribuído na expectativa de que seja útil, | |
| 22 | -porém, SEM NENHUMA GARANTIA; nem mesmo a garantia implícita | |
| 23 | -de COMERCIABILIDADE OU ADEQUAÇÃO A UMA FINALIDADE ESPECÍFICA. | |
| 24 | -Consulte a Licença Pública Geral do GNU para mais detalhes. | |
| 25 | -Você deve ter recebido uma cópia da Licença Pública Geral do | |
| 26 | -GNU junto com este programa; se não, escreva para a | |
| 27 | -Free Software Foundation, Inc., no endereço | |
| 28 | -59 Temple Street, Suite 330, Boston, MA 02111-1307 USA. | |
| 29 | -*/ | |
| 30 | -/* | |
| 31 | -Function: ajaxredesenha | |
| 32 | - | |
| 33 | -Prepara o mapa para receber os elementos que comporão o mapa e chama a função que irá gerar os novos elementos. | |
| 34 | - | |
| 35 | -Parameters: | |
| 36 | - | |
| 37 | -retorno - string indicando se houve erro na função que chamou. | |
| 38 | -*/ | |
| 39 | -function ajaxredesenha(retorno) | |
| 40 | -{ | |
| 41 | - if(arguments.length == 0 || retorno == ""){ | |
| 42 | - var legimagem = ""; | |
| 43 | - i3GEO.janela.abreAguarde("ajaxiniciaParametros",$trad("o1")); | |
| 44 | - i3GEO.php.corpo(ajaxIniciaParametros,g_tipoimagem); | |
| 45 | - } | |
| 46 | - else{ | |
| 47 | - i3GEO.janela.abreAguarde("ajaxiniciaParametros",$trad("o1")); | |
| 48 | - ajaxIniciaParametros(retorno); | |
| 49 | - } | |
| 50 | -} | |
| 51 | -/* | |
| 52 | -Function: ajaxIniciaParametros | |
| 53 | - | |
| 54 | -Refaz o mapa e os elementos marginais, como legenda, escala, lista de temas, etc. | |
| 55 | - | |
| 56 | -Parameters: | |
| 57 | - | |
| 58 | -retorno - objeto JSON. | |
| 59 | -*/ | |
| 60 | -function ajaxIniciaParametros(retorno) | |
| 61 | -{ | |
| 62 | - if(arguments.length == 0){return;} | |
| 63 | - //YAHOO.log("ajaxIniciaParametros", "redesenho"); | |
| 64 | - i3GEO.mapa.corpo.verifica(retorno); | |
| 65 | - var tempo = ""; | |
| 66 | - if(i3GEO.desenho.richdraw) | |
| 67 | - {i3GEO.desenho.richdraw.clearWorkspace();} | |
| 68 | - //try | |
| 69 | - //{ | |
| 70 | - mapscale = ""; | |
| 71 | - mapexten = ""; | |
| 72 | - eval(retorno.data.variaveis); | |
| 73 | - objmapa.mapimagem = mapimagem; | |
| 74 | - i3GEO.interface.redesenha(); | |
| 75 | - // | |
| 76 | - //verifica se precisa mudar a lista de temas | |
| 77 | - // | |
| 78 | - i3GEO.arvoreDeCamadas.atualiza(retorno.data.temas); | |
| 79 | - // | |
| 80 | - //atualiza o indicador de compatibilidade de escala se houve um processo de navegacao | |
| 81 | - // | |
| 82 | - if (objmapa.scale != mapscale) | |
| 83 | - i3GEO.arvoreDeCamadas.atualizaFarol(mapscale); | |
| 84 | - // | |
| 85 | - //atualliza os valores do objmapa | |
| 86 | - // | |
| 87 | - objmapa.scale = mapscale; | |
| 88 | - g_operacao = ""; | |
| 89 | - i3GEO.arvoreDeCamadas.CAMADAS = retorno.data.temas; | |
| 90 | - objmapa.cellsize = g_celula; | |
| 91 | - objmapa.extent = mapexten; | |
| 92 | - // | |
| 93 | - //atualiza a janela com o valor da extensão geográfica do mapa se for o caso | |
| 94 | - // | |
| 95 | - if ($i("mensagemt")) | |
| 96 | - {$i("mensagemt").value = objmapa.extent;} | |
| 97 | - // | |
| 98 | - //atualiza as ferramentas de consulta que dependem da extensão geográfica | |
| 99 | - // | |
| 100 | - i3GEO.eventos.navegaMapa(); | |
| 101 | - // | |
| 102 | - //atualiza as imagens do entorno do mapa caso essa opçãoestiver ativa | |
| 103 | - // | |
| 104 | - if (i3GEO.configura.entorno == "sim") | |
| 105 | - { | |
| 106 | - i3GEO.navega.entorno.geraURL(); | |
| 107 | - i3GEO.navega.entorno.ajustaPosicao(); | |
| 108 | - } | |
| 109 | - //YAHOO.log("Fim ajaxIniciaParametros", "redesenho"); | |
| 110 | - //} | |
| 111 | - //catch(e){alert("erro no mapa ajaxiniciaparametros "+e);} | |
| 112 | - i3GEO.ajuda.mostraJanela("Tempo de redesenho em segundos: "+tempo,""); | |
| 113 | -} | |
| 114 | -//testa se esse script foi carregado | |
| 115 | -function testaajax() | |
| 116 | -{} | |
| 117 | 0 | \ No newline at end of file |
classesjs/zerocal/ferramentas.js
| ... | ... | @@ -178,9 +178,9 @@ function cliqueInserexy() |
| 178 | 178 | if (g_nomepin == ""){alert("Nenhum tema definido para editar");} |
| 179 | 179 | else |
| 180 | 180 | { |
| 181 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 181 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 182 | 182 | var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=insereSHP&tema="+g_nomepin+"&xy="+objposicaocursor.ddx+" "+objposicaocursor.ddy+"&g_sid="+g_sid; |
| 183 | - cpObj.call(p,"insereSHP",ajaxredesenha); | |
| 183 | + cpObj.call(p,"insereSHP",i3GEO.atualiza); | |
| 184 | 184 | } |
| 185 | 185 | } |
| 186 | 186 | } |
| ... | ... | @@ -221,9 +221,9 @@ function cliqueInseregrafico() |
| 221 | 221 | {alert("Nenhum item foi escolhido");} |
| 222 | 222 | else |
| 223 | 223 | { |
| 224 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 224 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 225 | 225 | var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=insereSHPgrafico&tipo=pizza&tema="+tema+"&x="+objposicaocursor.ddx+"&y="+objposicaocursor.ddy+"&itens="+itens+"&shadow_height="+shadow_height+"&width="+width+"&inclinacao="+inclinacao+"&g_sid="+g_sid; |
| 226 | - cpObj.call(p,"insereSHPgrafico",ajaxredesenha); | |
| 226 | + cpObj.call(p,"insereSHPgrafico",i3GEO.atualiza); | |
| 227 | 227 | } |
| 228 | 228 | } |
| 229 | 229 | } |
| ... | ... | @@ -273,14 +273,14 @@ function cliqueInseretoponimo() |
| 273 | 273 | //se texto for igual a vazio é pq o valor foi pego de um atributo |
| 274 | 274 | if(texto == "") |
| 275 | 275 | { |
| 276 | - i3GEO.janela.fechaAguarde("ajaxredesenha"); | |
| 276 | + i3GEO.janela.fechaAguarde("i3GEO.atualiza"); | |
| 277 | 277 | texto = retorno.data; |
| 278 | 278 | } |
| 279 | 279 | if (texto != " ") |
| 280 | 280 | { |
| 281 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 281 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 282 | 282 | var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=inserefeature&pin="+g_nomepin+"topo&tipo=ANNOTATION&xy="+objposicaocursor.ddx+" "+objposicaocursor.ddy+"&texto="+texto+"&position="+pos+"&partials="+pl+"&offsetx="+ox+"&offsety="+oy+"&minfeaturesize="+mf+"&mindistance="+md+"&force="+forca+"&shadowcolor="+fcs+"&shadowsizex="+fxs+"&shadowsizey="+fys+"&outlinecolor="+m+"&cor="+c+"&sombray="+ys+"&sombrax="+xs+"&sombra="+cs+"&fundo="+cf+"&angulo="+a+"&tamanho="+t+"&fonte="+f+"&g_sid="+g_sid; |
| 283 | - cpObj.call(p,"insereFeature",ajaxredesenha); | |
| 283 | + cpObj.call(p,"insereFeature",i3GEO.atualiza); | |
| 284 | 284 | } |
| 285 | 285 | }; |
| 286 | 286 | if (doc.getElementById("tipoInsere").value == "digitando") |
| ... | ... | @@ -293,7 +293,7 @@ function cliqueInseretoponimo() |
| 293 | 293 | { |
| 294 | 294 | var tema = doc.getElementById("temasLigados").value; |
| 295 | 295 | var item = doc.getElementById("itemsel").value; |
| 296 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 296 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 297 | 297 | var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=identificaunico&xy="+objposicaocursor.ddx+","+objposicaocursor.ddy+"&resolucao=5&tema="+tema+"&item="+item+"&g_sid="+g_sid; |
| 298 | 298 | cpObj.call(p,"identificaunico",digi); |
| 299 | 299 | } |
| ... | ... | @@ -318,9 +318,9 @@ function cliqueSelecao() |
| 318 | 318 | //se tipo for limpa ou inverte, a operacao nao e executada no clique no mapa |
| 319 | 319 | if ((tipo != "limpa") && (tipo != "inverte")) |
| 320 | 320 | { |
| 321 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 321 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 322 | 322 | var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=selecaopt&tema="+objmapa.temaAtivo+"&tipo="+tipo+"&xy="+objposicaocursor.ddx+" "+objposicaocursor.ddy+"&tolerancia="+tolerancia+"&g_sid="+g_sid; |
| 323 | - cpObj.call(p,"selecaoPT",ajaxredesenha); | |
| 323 | + cpObj.call(p,"selecaoPT",i3GEO.atualiza); | |
| 324 | 324 | } |
| 325 | 325 | } |
| 326 | 326 | } |
| ... | ... | @@ -411,7 +411,7 @@ Ativa ou desativa a logo marca. |
| 411 | 411 | function ativaLogo() |
| 412 | 412 | { |
| 413 | 413 | var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=ativalogo&g_sid="+g_sid; |
| 414 | - cpObj.call(p,"ativalogo",ajaxredesenha); | |
| 414 | + cpObj.call(p,"ativalogo",i3GEO.atualiza); | |
| 415 | 415 | } |
| 416 | 416 | /* |
| 417 | 417 | Function: tamanho |
| ... | ... | @@ -484,9 +484,9 @@ function excluitemaf(tema) |
| 484 | 484 | } |
| 485 | 485 | while (p.childNodes.length > 0); |
| 486 | 486 | p.parentNode.removeChild(p); |
| 487 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 487 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 488 | 488 | var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=excluitema&temas="+tema+"&g_sid="+g_sid; |
| 489 | - cpObj.call(p,"excluiTemas",ajaxredesenha); | |
| 489 | + cpObj.call(p,"excluiTemas",i3GEO.atualiza); | |
| 490 | 490 | objmapa.temaAtivo = ""; |
| 491 | 491 | } |
| 492 | 492 | /* |
| ... | ... | @@ -500,9 +500,9 @@ celula - objeto que foi clicado nas opções de um tema. |
| 500 | 500 | */ |
| 501 | 501 | function sobetemaf(tema) |
| 502 | 502 | { |
| 503 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 503 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 504 | 504 | var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=sobetema&tema="+tema+"&g_sid="+g_sid; |
| 505 | - cpObj.call(p,"sobeTema",ajaxredesenha); | |
| 505 | + cpObj.call(p,"sobeTema",i3GEO.atualiza); | |
| 506 | 506 | } |
| 507 | 507 | /* |
| 508 | 508 | Function: descetemaf |
| ... | ... | @@ -515,9 +515,9 @@ celula - objeto que foi clicado nas opções de um tema. |
| 515 | 515 | */ |
| 516 | 516 | function descetemaf(tema) |
| 517 | 517 | { |
| 518 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 518 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 519 | 519 | var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?&funcao=descetema&tema="+tema+"&g_sid="+g_sid; |
| 520 | - cpObj.call(p,"desceTema",ajaxredesenha); | |
| 520 | + cpObj.call(p,"desceTema",i3GEO.atualiza); | |
| 521 | 521 | } |
| 522 | 522 | /* |
| 523 | 523 | Function: zoomtemaf |
| ... | ... | @@ -530,9 +530,9 @@ celula - objeto que foi clicado nas opções de um tema. |
| 530 | 530 | */ |
| 531 | 531 | function zoomtemaf(tema) |
| 532 | 532 | { |
| 533 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 533 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 534 | 534 | var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=zoomtema&tema="+tema+"&g_sid="+g_sid; |
| 535 | - cpObj.call(p,"zoomTema",ajaxredesenha); | |
| 535 | + cpObj.call(p,"zoomTema",i3GEO.atualiza); | |
| 536 | 536 | } |
| 537 | 537 | /* |
| 538 | 538 | Function: limpaseltemaf |
| ... | ... | @@ -546,9 +546,9 @@ celula - objeto que foi clicado nas opções de um tema. Passado para a função peg |
| 546 | 546 | function limpaseltemaf(celula) |
| 547 | 547 | { |
| 548 | 548 | g_operacao = "limpasel"; |
| 549 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 549 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 550 | 550 | var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=limpasel&tema="+pegaTema(celula)+"&g_sid="+g_sid; |
| 551 | - cpObj.call(p,"selecaoLimpa",ajaxredesenha); | |
| 551 | + cpObj.call(p,"selecaoLimpa",i3GEO.atualiza); | |
| 552 | 552 | } |
| 553 | 553 | /* |
| 554 | 554 | Function: mudatranspf |
| ... | ... | @@ -569,9 +569,9 @@ function mudatranspf(idtema) |
| 569 | 569 | {alert("Ocorreu um erro");} |
| 570 | 570 | if (valor != "") |
| 571 | 571 | { |
| 572 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 572 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 573 | 573 | var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=mudatransp&tema="+idtema+"&valor="+valor+"&g_sid="+g_sid; |
| 574 | - cpObj.call(p,"mudaTransparencia",ajaxredesenha); | |
| 574 | + cpObj.call(p,"mudaTransparencia",i3GEO.atualiza); | |
| 575 | 575 | } |
| 576 | 576 | else |
| 577 | 577 | {alert("Valor não definido.");} |
| ... | ... | @@ -596,9 +596,9 @@ function mudanomef(idtema) |
| 596 | 596 | { |
| 597 | 597 | var p = $i("nometema"+idtema); |
| 598 | 598 | $i("nometema"+idtema).innerHTML = valor; |
| 599 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 599 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 600 | 600 | var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=mudanome&tema="+idtema+"&valor="+valor+"&g_sid="+g_sid; |
| 601 | - cpObj.call(p,"mudaNome",ajaxredesenha); | |
| 601 | + cpObj.call(p,"mudaNome",i3GEO.atualiza); | |
| 602 | 602 | } |
| 603 | 603 | else |
| 604 | 604 | {alert("Nome não definido");} |
| ... | ... | @@ -1131,9 +1131,9 @@ Reinicia o mapa atual |
| 1131 | 1131 | */ |
| 1132 | 1132 | function reiniciaMapa() |
| 1133 | 1133 | { |
| 1134 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 1134 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 1135 | 1135 | var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=reiniciaMapa&g_sid="+g_sid; |
| 1136 | - cpObj.call(p,"reiniciaMapa",ajaxredesenha); | |
| 1136 | + cpObj.call(p,"reiniciaMapa",i3GEO.atualiza); | |
| 1137 | 1137 | } |
| 1138 | 1138 | /* |
| 1139 | 1139 | Function: textofid | ... | ... |
classesjs/zerocal/funcoes.js
| ... | ... | @@ -92,7 +92,7 @@ function trataErro() |
| 92 | 92 | i3GEO.janela.fechaAguarde("ajaxdestaca"); |
| 93 | 93 | i3GEO.janela.fechaAguarde("ajaxabrelente"); |
| 94 | 94 | i3GEO.janela.fechaAguarde("ajaxiniciaParametros"); |
| 95 | - i3GEO.janela.fechaAguarde("ajaxredesenha"); | |
| 95 | + i3GEO.janela.fechaAguarde("i3GEO.atualiza"); | |
| 96 | 96 | i3GEO.janela.fechaAguarde("ajaxCorpoMapa"); |
| 97 | 97 | i3GEO.janela.fechaAguarde("ajaxLegenda"); |
| 98 | 98 | i3GEO.janela.fechaAguarde("ajaxReferencia"); |
| ... | ... | @@ -752,15 +752,15 @@ function ativaClicks(docMapa) |
| 752 | 752 | var novoyf = (ex[3] * 1) - disty; |
| 753 | 753 | if ((distx == 0)||(disty == 0)) |
| 754 | 754 | { |
| 755 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 755 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 756 | 756 | var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=pan&x="+objposicaocursor.imgx+"&y="+objposicaocursor.imgy+"&g_sid="+i3GEO.configura.sid; |
| 757 | - cpObj.call(p,"pan",ajaxredesenha); | |
| 757 | + cpObj.call(p,"pan",i3GEO.atualiza); | |
| 758 | 758 | return; |
| 759 | 759 | } |
| 760 | 760 | var nex = novoxi+" "+novoyi+" "+novoxf+" "+novoyf; |
| 761 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 761 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 762 | 762 | var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=mudaext&ext="+nex+"&g_sid="+i3GEO.configura.sid; |
| 763 | - cpObj.call(p,"mudaExtensao",ajaxredesenha); | |
| 763 | + cpObj.call(p,"mudaExtensao",i3GEO.atualiza); | |
| 764 | 764 | } |
| 765 | 765 | }; |
| 766 | 766 | } |
| ... | ... | @@ -796,9 +796,9 @@ function initJanelaRef() |
| 796 | 796 | YAHOO.namespace("janelaRef.xp"); |
| 797 | 797 | YAHOO.janelaRef.xp.panel = new YAHOO.widget.Panel("winRef", { width:"156px", fixedcenter: false, constraintoviewport: true, underlay:"shadow", close:true, visible:true, draggable:true, modal:false } ); |
| 798 | 798 | YAHOO.janelaRef.xp.panel.render(); |
| 799 | - if (navm){YAHOO.janelaRef.xp.panel.moveTo((imagemxi+objmapa.w-160),imagemyi+4);} | |
| 799 | + if (navm){YAHOO.janelaRef.xp.panel.moveTo((imagemxi+i3GEO.parametros.w-160),imagemyi+4);} | |
| 800 | 800 | else |
| 801 | - {YAHOO.janelaRef.xp.panel.moveTo((imagemxi+objmapa.w-160),imagemyi+4);} | |
| 801 | + {YAHOO.janelaRef.xp.panel.moveTo((imagemxi+i3GEO.parametros.w-160),imagemyi+4);} | |
| 802 | 802 | var escondeRef = function() |
| 803 | 803 | { |
| 804 | 804 | YAHOO.util.Event.removeListener(YAHOO.janelaRef.xp.panel.close, "click"); |
| ... | ... | @@ -878,11 +878,11 @@ Aproxima o mapa tendo o centro como referência. |
| 878 | 878 | */ |
| 879 | 879 | function zoomiauto() |
| 880 | 880 | { |
| 881 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 881 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 882 | 882 | g_fatordezoom = 0; |
| 883 | 883 | var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=aproxima&nivel=2&g_sid="+i3GEO.configura.sid; |
| 884 | 884 | g_operacao = "navega"; |
| 885 | - cpObj.call(p,"aproxima",ajaxredesenha); | |
| 885 | + cpObj.call(p,"aproxima",i3GEO.atualiza); | |
| 886 | 886 | } |
| 887 | 887 | /* |
| 888 | 888 | Function: zoomoauto |
| ... | ... | @@ -891,11 +891,11 @@ Afasta o mapa tendo o centro como referência. |
| 891 | 891 | */ |
| 892 | 892 | function zoomoauto() |
| 893 | 893 | { |
| 894 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 894 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 895 | 895 | g_fatordezoom = 0; |
| 896 | 896 | var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=afasta&nivel=2&g_sid="+i3GEO.configura.sid; |
| 897 | 897 | g_operacao = "navega"; |
| 898 | - cpObj.call(p,"afasta",ajaxredesenha); | |
| 898 | + cpObj.call(p,"afasta",i3GEO.atualiza); | |
| 899 | 899 | } |
| 900 | 900 | /* |
| 901 | 901 | Function: zoomboxf |
| ... | ... | @@ -977,9 +977,9 @@ function zoomboxf (tipo) |
| 977 | 977 | if (x1 != x2) |
| 978 | 978 | { |
| 979 | 979 | objmapa.extent=v; |
| 980 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 980 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 981 | 981 | var p = g_locaplic+"/classesphp/mapa_controle.php?funcao=mudaext&ext="+v+"&g_sid="+i3GEO.configura.sid; |
| 982 | - cpObj.call(p,"mudaExtensao",ajaxredesenha); | |
| 982 | + cpObj.call(p,"mudaExtensao",i3GEO.atualiza); | |
| 983 | 983 | } |
| 984 | 984 | } |
| 985 | 985 | else |
| ... | ... | @@ -994,9 +994,9 @@ function zoomboxf (tipo) |
| 994 | 994 | //se tipo for limpa ou inverte, a operacao nao e executada no clique no mapa |
| 995 | 995 | if ((tipo != "limpa") && (tipo != "inverte")) |
| 996 | 996 | { |
| 997 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 997 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 998 | 998 | var p = g_locaplic+"/classesphp/mapa_controle.php?funcao=selecaobox&ext="+v+"&g_sid="+i3GEO.configura.sid+"&tipo="+tipo+"&tema="+objmapa.temaAtivo; |
| 999 | - cpObj.call(p,"selecaobox",ajaxredesenha); | |
| 999 | + cpObj.call(p,"selecaobox",i3GEO.atualiza); | |
| 1000 | 1000 | } |
| 1001 | 1001 | } |
| 1002 | 1002 | } |
| ... | ... | @@ -1018,9 +1018,9 @@ function zoomIP() |
| 1018 | 1018 | { |
| 1019 | 1019 | if (retorno.data.latitude != null) |
| 1020 | 1020 | { |
| 1021 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 1021 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 1022 | 1022 | var p = g_locaplic+"/classesphp/mapa_controle.php?funcao=zoomponto&pin=pin&tamanho=14&xy="+retorno.data.longitude+" "+retorno.data.latitude+"&g_sid="+i3GEO.configura.sid; |
| 1023 | - cpObj.call(p,"zoomPonto",ajaxredesenha); | |
| 1023 | + cpObj.call(p,"zoomPonto",i3GEO.atualiza); | |
| 1024 | 1024 | } |
| 1025 | 1025 | else |
| 1026 | 1026 | {alert("Nao foi possivel identificar a localizacao.");} |
| ... | ... | @@ -1039,9 +1039,9 @@ function zoomPonto() |
| 1039 | 1039 | { |
| 1040 | 1040 | var xxx = convdmsddf($i("xg").value,$i("xm").value,$i("xs").value); |
| 1041 | 1041 | var yyy = convdmsddf($i("yg").value,$i("ym").value,$i("ys").value); |
| 1042 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 1042 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 1043 | 1043 | var p = g_locaplic+"/classesphp/mapa_controle.php?funcao=zoomponto&pin=pin&xy="+xxx+" "+yyy+"&g_sid="+g_sid; |
| 1044 | - cpObj.call(p,"zoomPonto",ajaxredesenha); | |
| 1044 | + cpObj.call(p,"zoomPonto",i3GEO.atualiza); | |
| 1045 | 1045 | } |
| 1046 | 1046 | } |
| 1047 | 1047 | /* |
| ... | ... | @@ -1055,7 +1055,7 @@ function clicouRef() |
| 1055 | 1055 | objposicaocursor.refx = objposicaocursor.refx - parseInt(YAHOO.janelaRef.xp.panel.element.style.left) - 5; |
| 1056 | 1056 | objposicaocursor.refy = objposicaocursor.refy - parseInt(YAHOO.janelaRef.xp.panel.element.style.top) - 25; |
| 1057 | 1057 | var p = g_locaplic+"/classesphp/mapa_controle.php?funcao=pan&escala="+objmapa.scale+"&tipo=ref&x="+objposicaocursor.refx+"&y="+objposicaocursor.refy+"&g_sid="+g_sid; |
| 1058 | - cpObj.call(p,"pan",ajaxredesenha); | |
| 1058 | + cpObj.call(p,"pan",i3GEO.atualiza); | |
| 1059 | 1059 | } |
| 1060 | 1060 | /* |
| 1061 | 1061 | Function: movimentoRef |
| ... | ... | @@ -1082,10 +1082,10 @@ function aplicaescala() |
| 1082 | 1082 | {var nova = $i("escalanum").value;} |
| 1083 | 1083 | else |
| 1084 | 1084 | {var nova = objmapa.scale;} |
| 1085 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 1085 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 1086 | 1086 | var p = g_locaplic+"/classesphp/mapa_controle.php?funcao=mudaescala&escala="+nova+"&g_sid="+g_sid; |
| 1087 | 1087 | g_operacao = "outras"; |
| 1088 | - cpObj.call(p,"mudaEscala",ajaxredesenha); | |
| 1088 | + cpObj.call(p,"mudaEscala",i3GEO.atualiza); | |
| 1089 | 1089 | } |
| 1090 | 1090 | /* |
| 1091 | 1091 | Function: zoomtot |
| ... | ... | @@ -1094,10 +1094,10 @@ Zoom para a extensão default. |
| 1094 | 1094 | */ |
| 1095 | 1095 | function zoomtot() |
| 1096 | 1096 | { |
| 1097 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 1097 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 1098 | 1098 | var p = g_locaplic+"/classesphp/mapa_controle.php?funcao=mudaext&ext="+objmapa.extentTotal+"&g_sid="+g_sid; |
| 1099 | 1099 | g_operacao = "navega"; |
| 1100 | - cpObj.call(p,"mudaExtensao",ajaxredesenha); | |
| 1100 | + cpObj.call(p,"mudaExtensao",i3GEO.atualiza); | |
| 1101 | 1101 | } |
| 1102 | 1102 | /* |
| 1103 | 1103 | Function: panFixo |
| ... | ... | @@ -1109,27 +1109,27 @@ function panFixo(direcao) |
| 1109 | 1109 | if (direcao == "norte") |
| 1110 | 1110 | { |
| 1111 | 1111 | var y = objmapa.h / 6; |
| 1112 | - var x = objmapa.w / 2; | |
| 1112 | + var x = i3GEO.parametros.w / 2; | |
| 1113 | 1113 | } |
| 1114 | 1114 | if (direcao == "sul") |
| 1115 | 1115 | { |
| 1116 | 1116 | var y = objmapa.h - (objmapa.h / 6); |
| 1117 | - var x = objmapa.w / 2; | |
| 1117 | + var x = i3GEO.parametros.w / 2; | |
| 1118 | 1118 | } |
| 1119 | 1119 | if (direcao == "leste") |
| 1120 | 1120 | { |
| 1121 | - var x = objmapa.w - (objmapa.w / 6); | |
| 1121 | + var x = i3GEO.parametros.w - (i3GEO.parametros.w / 6); | |
| 1122 | 1122 | var y = objmapa.h / 2; |
| 1123 | 1123 | } |
| 1124 | 1124 | if (direcao == "oeste") |
| 1125 | 1125 | { |
| 1126 | - var x = objmapa.w / 6; | |
| 1126 | + var x = i3GEO.parametros.w / 6; | |
| 1127 | 1127 | var y = objmapa.h / 2; |
| 1128 | 1128 | } |
| 1129 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 1129 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 1130 | 1130 | var p = g_locaplic+"/classesphp/mapa_controle.php?funcao=pan&escala="+objmapa.scale+"&x="+x+"&y="+y+"&g_sid="+g_sid; |
| 1131 | 1131 | g_operacao = "navega"; |
| 1132 | - cpObj.call(p,"pan",ajaxredesenha); | |
| 1132 | + cpObj.call(p,"pan",i3GEO.atualiza); | |
| 1133 | 1133 | } |
| 1134 | 1134 | /* |
| 1135 | 1135 | Section: atributos |
| ... | ... | @@ -1305,7 +1305,7 @@ leg - objeto input clicado no mapa |
| 1305 | 1305 | function inverteStatusClasse(leg) |
| 1306 | 1306 | { |
| 1307 | 1307 | var p = g_locaplic+"/classesphp/mapa_controle.php?funcao=inverteStatusClasse&g_sid="+g_sid+"&tema="+leg.name+"&classe="+leg.value; |
| 1308 | - cpObj.call(p,"inverteStatusClasse",ajaxredesenha); | |
| 1308 | + cpObj.call(p,"inverteStatusClasse",i3GEO.atualiza); | |
| 1309 | 1309 | } |
| 1310 | 1310 | /* |
| 1311 | 1311 | Section: sistemas de busca e navegação |
| ... | ... | @@ -1934,16 +1934,16 @@ function remapaf() |
| 1934 | 1934 | if (ta.length > 0) |
| 1935 | 1935 | { |
| 1936 | 1936 | i3GEO.janela.fechaAguarde("remapa"); |
| 1937 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 1937 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 1938 | 1938 | var temp = function(retorno) |
| 1939 | 1939 | { |
| 1940 | - i3GEO.janela.fechaAguarde("ajaxredesenha"); | |
| 1940 | + i3GEO.janela.fechaAguarde("i3GEO.atualiza"); | |
| 1941 | 1941 | if(retorno.data.erro) |
| 1942 | 1942 | { |
| 1943 | 1943 | alert(retorno.data.erro); |
| 1944 | 1944 | return; |
| 1945 | 1945 | } |
| 1946 | - ajaxredesenha(""); | |
| 1946 | + i3GEO.atualiza(""); | |
| 1947 | 1947 | }; |
| 1948 | 1948 | var p = g_locaplic+"/classesphp/mapa_controle.php?funcao=adtema&temas="+(ta.toString())+"&g_sid="+g_sid; |
| 1949 | 1949 | cpObj.call(p,"adicionaTema",temp); |
| ... | ... | @@ -1951,15 +1951,15 @@ function remapaf() |
| 1951 | 1951 | else |
| 1952 | 1952 | { |
| 1953 | 1953 | i3GEO.janela.fechaAguarde("remapa"); |
| 1954 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 1955 | - ajaxredesenha(""); | |
| 1954 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 1955 | + i3GEO.atualiza(""); | |
| 1956 | 1956 | } |
| 1957 | 1957 | } |
| 1958 | 1958 | else |
| 1959 | 1959 | { |
| 1960 | 1960 | i3GEO.janela.fechaAguarde("remapa"); |
| 1961 | - i3GEO.janela.abreAguarde("ajaxredesenha",$trad("o1")); | |
| 1962 | - ajaxredesenha(""); | |
| 1961 | + i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); | |
| 1962 | + i3GEO.atualiza(""); | |
| 1963 | 1963 | } |
| 1964 | 1964 | }; |
| 1965 | 1965 | if ((tsd.length > 0) || (tsl.length > 0)) | ... | ... |
classesphp/classe_mapa.php
| ... | ... | @@ -302,7 +302,7 @@ Include: |
| 302 | 302 | { |
| 303 | 303 | $nomer = $locmapserv."?map=".$this->arquivo."&mode=map&".nomeRandomico(); |
| 304 | 304 | } |
| 305 | - $res = "g_locidentifica='".$locidentifica."';g_sistemas='".$locsistemas."';g_celula=".$this->mapa->cellsize.";var mapscale = ".$this->mapa->scale.";var mapres=".$this->mapa->resolution.";var mapcellsize=".$this->mapa->cellsize.";var mapexten='".$ext."';var mapimagem='".$nomer."';var mapwidth=".$imgo->width.";var mapheight=".$imgo->height.";var mappath='".$imgo->imagepath."';var mapurl='".$imgo->imageurl."'"; | |
| 305 | + $res = "g_locidentifica='".$locidentifica."';g_sistemas='".$locsistemas."';var g_celula=".$this->mapa->cellsize.";var mapscale = ".$this->mapa->scale.";var mapres=".$this->mapa->resolution.";var mapcellsize=".$this->mapa->cellsize.";var mapexten='".$ext."';var mapimagem='".$nomer."';var mapwidth=".$imgo->width.";var mapheight=".$imgo->height.";var mappath='".$imgo->imagepath."';var mapurl='".$imgo->imageurl."'"; | |
| 306 | 306 | $imgo->free(); |
| 307 | 307 | return $res; |
| 308 | 308 | } | ... | ... |
classesphp/flamingoogc.php
| ... | ... | @@ -70,11 +70,14 @@ include_once("pega_variaveis.php"); |
| 70 | 70 | // |
| 71 | 71 | include_once("funcoes_gerais.php"); |
| 72 | 72 | $req = ms_newowsrequestobj(); |
| 73 | + | |
| 73 | 74 | $tipo = ""; |
| 75 | +//var_dump($_GET); | |
| 74 | 76 | foreach ($_GET as $k=>$v) |
| 75 | 77 | { |
| 76 | 78 | $req->setParameter($k, $v); |
| 77 | 79 | } |
| 80 | + | |
| 78 | 81 | $req->setParameter("VeRsIoN","1.1.0"); |
| 79 | 82 | $oMap = ms_newMapobj("../aplicmap/ogcws.map"); |
| 80 | 83 | $proto = "http" . ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") ? "s" : "") . "://"; |
| ... | ... | @@ -128,6 +131,7 @@ for ($i=0;$i < $c;++$i) |
| 128 | 131 | ms_newLayerObj($oMap, $l); |
| 129 | 132 | } |
| 130 | 133 | //$req->setParameter("LAYERS","i3geoogc"); |
| 134 | + | |
| 131 | 135 | ms_ioinstallstdouttobuffer(); |
| 132 | 136 | $oMap->owsdispatch($req); |
| 133 | 137 | $contenttype = ms_iostripstdoutbuffercontenttype(); | ... | ... |
classesphp/funcoes_gerais.php
| ... | ... | @@ -769,7 +769,7 @@ function retornaReferencia() |
| 769 | 769 | $nomer = ($objImagem->imageurl).basename($nomer); |
| 770 | 770 | $d = (abs($em->maxx - $em->minx)) / ($objImagem->width); |
| 771 | 771 | $s = "g_celularef = ".$d.";"; |
| 772 | - $s .= "objmapa.extentref = '".$em->minx." ".$em->miny." ".$em->maxx." ".$em->maxy."';"; | |
| 772 | + $s .= "var extentref = '".$em->minx." ".$em->miny." ".$em->maxx." ".$em->maxy."';"; | |
| 773 | 773 | $s .= "var refimagem='".$nomer."';var refwidth=".$objImagem->width.";var refheight=".$objImagem->height.";var refpath='".$objImagem->imagepath."';var refurl='".$objImagem->imageurl."'"; |
| 774 | 774 | $cp->set_data($s); |
| 775 | 775 | } | ... | ... |
classesphp/mapa_controle.php
| ... | ... | @@ -2610,11 +2610,12 @@ function redesenhaMapa() |
| 2610 | 2610 | else |
| 2611 | 2611 | {$imagem = $m->redesenhaCorpo($locsistemas,$locidentifica,$tipoimagem);} |
| 2612 | 2612 | } |
| 2613 | - $mensagens = "objmapa.mensagens ='".$m->pegaMensagens()."'"; | |
| 2613 | + $mensagens = "var mensagens ='".$m->pegaMensagens()."'"; | |
| 2614 | 2614 | restauraCon($map_file,$postgis_mapa); |
| 2615 | + | |
| 2615 | 2616 | if (($par == "") || ($imagem == "")) |
| 2616 | 2617 | {$cp->set_data("erro");} |
| 2617 | 2618 | else |
| 2618 | - {$cp->set_data(array("variaveis"=>($mensagens.";".$imagem.";".$par.";var tempo=".(microtime(1) - $tempo)),"temas"=>$par));} | |
| 2619 | + {$cp->set_data(array("variaveis"=>($mensagens.";".$imagem.";var tempo=".(microtime(1) - $tempo)),"temas"=>$par));} | |
| 2619 | 2620 | } |
| 2620 | 2621 | ?> |
| 2621 | 2622 | \ No newline at end of file | ... | ... |
classesphp/mapa_inicia.php
| ... | ... | @@ -67,19 +67,6 @@ Return: |
| 67 | 67 | |
| 68 | 68 | objeto cpaint contendo uma string como no exemplo abaixo |
| 69 | 69 | |
| 70 | -"var temas='<lista de temas>;var mapexten= '<extensão geográfica do mapa criado>'; | |
| 71 | -var mapscale=<escala do mapa>;var mapres=<resolução da imagem do mapa>; | |
| 72 | -g_celula=<tamanho do pixel em décimo de grau>;var mapimagem='<endereço da imagem do mapa>' | |
| 73 | -;var mapwidth=<largura do mapa>;var mapheight=<altura do mapa>; | |
| 74 | -var mappath='<diretório temporário do mapa>';var mapurl='<url do diretório do mapa>'; | |
| 75 | -var refimagem='<depreciado>';var refwidth=<depreciado>;var refheight=<depreciado>; | |
| 76 | -var refpath='<depreciado>';var refurl='<depreciado>';var legimagem='<depreciado>'; | |
| 77 | -var legwidth=<depreciado>;var legheight=<depreciado>;var legpath='<depreciado>'; | |
| 78 | -var legurl='<depreciado>';g_locsistemas='<endereço do xml com os sistemas adicionais>'; | |
| 79 | -g_locidentifica='<endereço do xml com os sistemas da interface de identificação>'; | |
| 80 | -g_r='<o R está instalado?>';g_locmapas='<endereço do xml para a lista de mapas>'; | |
| 81 | -objmapa.mapfile='<objeto mapfile>';objmapa.cgi='<objeto cgi>';;objmapa.postgis_con='<conexão com o postgis>';" | |
| 82 | - | |
| 83 | 70 | Essa string é recuperada no lado do javascript com eval(). |
| 84 | 71 | |
| 85 | 72 | Se $expoeMapfile = "nao", o nome do mapfile não é retornado |
| ... | ... | @@ -151,28 +138,27 @@ function iniciaMapa() |
| 151 | 138 | {$nomer = ($imgo->imageurl).basename($nomer);} |
| 152 | 139 | $iref = $m->mapa->reference; |
| 153 | 140 | $irefH = $iref->height; |
| 154 | - $res = "var mapexten= '".$ext."';var mapscale=".$escalaMapa.";var mapres=".$m->mapa->resolution.";g_celula=".$celula.";var mapimagem='".$nomer."';var mapwidth=".$imgo->width.";var mapheight=".$imgo->height.";var mappath='".$imgo->imagepath."';var mapurl='".$imgo->imageurl."'"; | |
| 155 | - $res .= ";var refimagem='';var refwidth=0;objmapa.refheight=".$irefH.";var refpath='';var refurl=''"; | |
| 156 | - $res .= ";var legimagem='';var legwidth=0;var legheight=0;var legpath='';var legurl='';g_locsistemas='".$locsistemas."';g_locidentifica='".$locidentifica."'"; | |
| 141 | + $res = "var mapexten= '".$ext."';var mapscale=".$escalaMapa.";var mapres=".$m->mapa->resolution.";var g_celula=".$celula.";var mapimagem='".$nomer."';var mapwidth=".$imgo->width.";var mapheight=".$imgo->height.";var mappath='".$imgo->imagepath."';var mapurl='".$imgo->imageurl."'"; | |
| 142 | + $res .= ";var extentref = '';var refimagem='';var refwidth=0;var refpath='';var refurl=''"; | |
| 143 | + $res .= ";var legimagem='';var legwidth=0;var legheight=0;var legpath='';var legurl='';var locsistemas='".$locsistemas."';var locidentifica='".$locidentifica."'"; | |
| 157 | 144 | $r = (isset($R_path)) ? "sim" : "nao"; |
| 158 | - $res .= ";g_r='".$r."'"; //identifica se o r esta instalado | |
| 159 | - $res .= ";g_locmapas='".$locmapas."'"; | |
| 145 | + $res .= ";var r='".$r."'"; //identifica se o r esta instalado | |
| 146 | + $res .= ";var locmapas='".$locmapas."'"; | |
| 160 | 147 | if ((isset($expoeMapfile)) && ($expoeMapfile == "nao")) |
| 161 | - {$res .= ";objmapa.mapfile=''";} | |
| 148 | + {$res .= ";var mapfile=''";} | |
| 162 | 149 | else |
| 163 | - {$res .= ";objmapa.mapfile='".$map_file."'";} | |
| 164 | - $res .= ";objmapa.cgi='".$locmapserv."'"; | |
| 165 | - $res .= ";objmapa.utilizacgi='".$utilizacgi."'"; | |
| 166 | - $res .= ";objmapa.postgis_con='".$postgis_con."'"; | |
| 150 | + {$res .= ";var mapfile='".$map_file."'";} | |
| 151 | + $res .= ";var cgi='".$locmapserv."'"; | |
| 152 | + $res .= ";var utilizacgi='".$utilizacgi."'"; | |
| 167 | 153 | $res .= ";var titulo='".$tituloInstituicao."'"; |
| 168 | 154 | $versao = versao(); |
| 169 | - $res .= ";objmapa.versaoms ='".$versao["principal"]."'"; | |
| 155 | + $res .= ";var versaoms ='".$versao["principal"]."'"; | |
| 170 | 156 | //Pega os estilos disponíveis |
| 171 | 157 | $visual = (file_exists($locaplic."/imagens/visual")) ? implode(",",listaDiretorios($locaplic."/imagens/visual")) : ""; |
| 172 | - $res .= ";objmapa.listavisual='".$visual."'"; | |
| 158 | + $res .= ";var listavisual='".$visual."'"; | |
| 173 | 159 | //pega os usuários navegadores |
| 174 | 160 | //para efeitos de compatibilidade |
| 175 | - $res .= ";objmapa.navegacaoDir='".$navegadoresLocais."'"; | |
| 161 | + $res .= ";var navegacaoDir='".$navegadoresLocais."'"; | |
| 176 | 162 | $res .= ($navegadoresLocais == "sim") ? ";i3GEO.arvoreDeTemas.OPCOESADICIONAIS.navegacaoDir=true" : ";i3GEO.arvoreDeTemas.OPCOESADICIONAIS.navegacaoDir=false"; |
| 177 | 163 | // |
| 178 | 164 | //verifica se o pacote geoip está instalado ou não |
| ... | ... | @@ -180,12 +166,9 @@ function iniciaMapa() |
| 180 | 166 | $geoip = "nao"; |
| 181 | 167 | if (file_exists($locaplic."/pacotes/geoip") && file_exists($locaplic."/pacotes/geoip/GeoLiteCity.dat")) |
| 182 | 168 | {$geoip = "sim";} |
| 183 | - $res .= ";objmapa.geoip='".$geoip."';"; | |
| 169 | + $res .= ";var geoip='".$geoip."';"; | |
| 184 | 170 | $res .= "var tempo =".(microtime(1) - $tempo).";"; |
| 185 | - $res .= "objmapa.mensagens ='".$m->pegaMensagens()."';"; | |
| 186 | - // | |
| 187 | - //salva uma copia para opção de reiniciar o mapa | |
| 188 | - // | |
| 171 | + $res .= "var mensagens ='".$m->pegaMensagens()."';"; | |
| 189 | 172 | copy($map_file,(str_replace(".map","reinc.map",$map_file))); |
| 190 | 173 | $cp->set_data(array("variaveis"=>$res,"temas"=>$temas)); |
| 191 | 174 | } | ... | ... |
documentacao/files/classesjs/ferramentas-js.html
| ... | ... | @@ -1,160 +0,0 @@ |
| 1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | |
| 2 | - | |
| 3 | -<html><head><title>ferramentas.js - i3Geo</title><link rel="stylesheet" type="text/css" href="../../styles/main.css"><script language=JavaScript src="../../javascript/main.js"></script><script language=JavaScript src="../../javascript/searchdata.js"></script></head><body id=ContentPage onLoad="NDOnLoad()"><script language=JavaScript><!-- | |
| 4 | -if (browserType) {document.write("<div id=" + browserType + ">");if (browserVer) {document.write("<div id=" + browserVer + ">"); }}// --></script> | |
| 5 | - | |
| 6 | -<!-- Generated by Natural Docs, version Development Release 02-10-2007 (1.35 base) --> | |
| 7 | -<!-- http://www.naturaldocs.org --> | |
| 8 | - | |
| 9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | |
| 10 | - | |
| 11 | - | |
| 12 | - | |
| 13 | - | |
| 14 | -<div id=Content><div class="CSection CTopic" id=MainTopic><h1 class=CTitle><a name="ferramentas.js"></a>ferramentas.js</h1><div class=CBody><p class=CParagraph>Funções que executam determinadas operações de manipulação do mapa ou que abrem janelas internas para a realização de operações sobre o mapa.</p><p class=CParagraph>Normalmente, as funções abrem uma janela interna no i3geo</p><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBody><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SMain"><td class=SEntry><a href="#ferramentas.js" >ferramentas.js</a></td><td class=SDescription>Funções que executam determinadas operações de manipulação do mapa ou que abrem janelas internas para a realização de operações sobre o mapa.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Files" >Files</a></td><td class=SDescription></td></tr><tr class="SFile SIndent2 SMarked"><td class=SEntry><a href="#i3geo/classesjs/ferramentas.js" >i3geo/<span class=HB> </span>classesjs/<span class=HB> </span>ferramentas.js</a></td><td class=SDescription></td></tr><tr class="SGeneric SIndent2"><td class=SEntry><a href="#Licença" >Licença</a></td><td class=SDescription>I3Geo Interface Integrada de Ferramentas de Geoprocessamento para Internet</td></tr><tr class="SSection"><td class=SEntry><a href="#funções_de_movimentação_do_mouse_sobre_o_mapa" >funções de movimentação do mouse sobre o mapa</a></td><td class=SDescription></td></tr><tr class="SSection"><td class=SEntry><a href="#funções_de_clique_sobre_o_mapa" >funções de clique sobre o mapa</a></td><td class=SDescription></td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#cliqueCapturaPt" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">cliqueCapturaPt</a></td><td class=SDescription>Captura um ponto na tela e retorna o resultado para a janela interna que estiver aberta.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#abreKml" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')">abreKml</a></td><td class=SDescription>Abre a janela para mostrar o link de acesso a um tema via kml.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#cliqueInserexy" id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')">cliqueInserexy</a></td><td class=SDescription>Insere um ponto no mapa na posição clicada</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#cliqueInseregrafico" id=link4 onMouseOver="ShowTip(event, 'tt4', 'link4')" onMouseOut="HideTip('tt4')">cliqueInseregrafico</a></td><td class=SDescription>Insere um gráfico no mapa na posição clicada</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#cliqueInseretoponimo" id=link5 onMouseOver="ShowTip(event, 'tt5', 'link5')" onMouseOut="HideTip('tt5')">cliqueInseretoponimo</a></td><td class=SDescription>Insere um texto no mapa na posição clicada</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#cliqueMede" id=link6 onMouseOver="ShowTip(event, 'tt6', 'link6')" onMouseOut="HideTip('tt6')">cliqueMede</a></td><td class=SDescription>Executa as operações de medição de distâncias.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#cliqueArea" id=link7 onMouseOver="ShowTip(event, 'tt7', 'link7')" onMouseOut="HideTip('tt7')">cliqueArea</a></td><td class=SDescription>Executa as operações de cálculo de área quando o usuário clica no mapa e a opção de cálculo estiver ativa</td></tr><tr class="SSection"><td class=SEntry><a href="#propriedades_de_um_tema" >propriedades de um tema</a></td><td class=SDescription></td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#excluitemaf" id=link8 onMouseOver="ShowTip(event, 'tt8', 'link8')" onMouseOut="HideTip('tt8')">excluitemaf</a></td><td class=SDescription>Exclui um tema do mapa</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#sobetemaf" id=link9 onMouseOver="ShowTip(event, 'tt9', 'link9')" onMouseOut="HideTip('tt9')">sobetemaf</a></td><td class=SDescription>Sobe um tema na ordem de desenho</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#descetemaf" id=link10 onMouseOver="ShowTip(event, 'tt10', 'link10')" onMouseOut="HideTip('tt10')">descetemaf</a></td><td class=SDescription>Desce um tema na ordem de desenho</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#zoomtemaf" id=link11 onMouseOver="ShowTip(event, 'tt11', 'link11')" onMouseOut="HideTip('tt11')">zoomtemaf</a></td><td class=SDescription>Zoom para o tema</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#limpaseltemaf" id=link12 onMouseOver="ShowTip(event, 'tt12', 'link12')" onMouseOut="HideTip('tt12')">limpaseltemaf</a></td><td class=SDescription>Limpa a selecao do tema</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mudatranspf" id=link13 onMouseOver="ShowTip(event, 'tt13', 'link13')" onMouseOut="HideTip('tt13')">mudatranspf</a></td><td class=SDescription>Muda a transparencia de um tema</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#mudanomef" id=link14 onMouseOver="ShowTip(event, 'tt14', 'link14')" onMouseOut="HideTip('tt14')">mudanomef</a></td><td class=SDescription>Muda o nome de um tema</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#graficotema" id=link15 onMouseOver="ShowTip(event, 'tt15', 'link15')" onMouseOut="HideTip('tt15')">graficotema</a></td><td class=SDescription>Adiciona gráficos automaticamente nos elementos de um tema</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#toponimiaf" id=link16 onMouseOver="ShowTip(event, 'tt16', 'link16')" onMouseOut="HideTip('tt16')">toponimiaf</a></td><td class=SDescription>Opções de toponímia de um tema.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#filtrof" id=link17 onMouseOver="ShowTip(event, 'tt17', 'link17')" onMouseOut="HideTip('tt17')">filtrof</a></td><td class=SDescription>Opções de filtragem de um tema.</td></tr><tr class="SSection"><td class=SEntry><a href="#análise_geográfica" >análise geográfica</a></td><td class=SDescription></td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#pontosdistri" id=link18 onMouseOver="ShowTip(event, 'tt18', 'link18')" onMouseOut="HideTip('tt18')">pontosdistri</a></td><td class=SDescription>Abre a janela para executar análises de distribuição de pontos</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#pontoempoligono" id=link19 onMouseOver="ShowTip(event, 'tt19', 'link19')" onMouseOut="HideTip('tt19')">pontoempoligono</a></td><td class=SDescription>Abre a janela para cruzar um tema de pontos com um ou mais temas poligonais e gerar um novo tema</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#nptPol" id=link20 onMouseOver="ShowTip(event, 'tt20', 'link20')" onMouseOut="HideTip('tt20')">nptPol</a></td><td class=SDescription>Abre a janela para cruzar um tema de pontos com um ou tema poligona e gerar um novo tema com o número de pontos em cada polígono</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#buffer" id=link21 onMouseOver="ShowTip(event, 'tt21', 'link21')" onMouseOut="HideTip('tt21')">buffer</a></td><td class=SDescription>Gera um buffer em elementos selecionados</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#distanciaptpt" id=link22 onMouseOver="ShowTip(event, 'tt22', 'link22')" onMouseOut="HideTip('tt22')">distanciaptpt</a></td><td class=SDescription>Abre a janela para calcular a distância entre um ponto e outros pontos próximos</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#centroide" id=link23 onMouseOver="ShowTip(event, 'tt23', 'link23')" onMouseOut="HideTip('tt23')">centroide</a></td><td class=SDescription>Abre a janela que gera um tema com os centroides dos elementos selecionados</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#dissolve" id=link24 onMouseOver="ShowTip(event, 'tt24', 'link24')" onMouseOut="HideTip('tt24')">dissolve</a></td><td class=SDescription>Abre a janela que gera um tema dissolvendo as divisas entre polígonos.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#agrupaElementos" id=link25 onMouseOver="ShowTip(event, 'tt25', 'link25')" onMouseOut="HideTip('tt25')">agrupaElementos</a></td><td class=SDescription>Abre a janela que gera um tema poligonal agrupando elementos de um tema.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#analisaGeometrias" id=link26 onMouseOver="ShowTip(event, 'tt26', 'link26')" onMouseOut="HideTip('tt26')">analisaGeometrias</a></td><td class=SDescription>Abre a janela com o sistema de análise de geometrias</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#mede" id=link27 onMouseOver="ShowTip(event, 'tt27', 'link27')" onMouseOut="HideTip('tt27')">mede</a></td><td class=SDescription>Ativa a opção de medição de distâncias.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#inserexy" id=link28 onMouseOver="ShowTip(event, 'tt28', 'link28')" onMouseOut="HideTip('tt28')">inserexy</a></td><td class=SDescription>Ativa o botão de inserção de pontos (digitalização).</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#inseregrafico" id=link29 onMouseOver="ShowTip(event, 'tt29', 'link29')" onMouseOut="HideTip('tt29')">inseregrafico</a></td><td class=SDescription>Ativa a opção de inserção de gráficos.</td></tr><tr class="SSection"><td class=SEntry><a href="#grades" >grades</a></td><td class=SDescription></td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#gradePontos" id=link30 onMouseOver="ShowTip(event, 'tt30', 'link30')" onMouseOut="HideTip('tt30')">gradePontos</a></td><td class=SDescription>Abre a janela que gera grade de pontos</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#gradePoligonos" >gradePoligonos</a></td><td class=SDescription>Abre a janela que gera grade de poligonos</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#gradeHex" id=link31 onMouseOver="ShowTip(event, 'tt31', 'link31')" onMouseOut="HideTip('tt31')">gradeHex</a></td><td class=SDescription>Abre a janela que gera grade de hexágonos</td></tr><tr class="SSection"><td class=SEntry><a href="#atributos" >atributos</a></td><td class=SDescription></td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#procuraratribf" id=link32 onMouseOver="ShowTip(event, 'tt32', 'link32')" onMouseOut="HideTip('tt32')">procuraratribf</a></td><td class=SDescription>Abre a janela com a opção de procurar elementos baseados nos atributos da tabela do tema</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#tabelaf" id=link33 onMouseOver="ShowTip(event, 'tt33', 'link33')" onMouseOut="HideTip('tt33')">tabelaf</a></td><td class=SDescription>Abre a tabela com os atributos de um tema.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#etiquetas" id=link34 onMouseOver="ShowTip(event, 'tt34', 'link34')" onMouseOut="HideTip('tt34')">etiquetas</a></td><td class=SDescription>Abre a janela de configuração das etiquetas</td></tr><tr class="SSection"><td class=SEntry><a href="#legenda" >legenda</a></td><td class=SDescription></td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#abreCor" id=link35 onMouseOver="ShowTip(event, 'tt35', 'link35')" onMouseOut="HideTip('tt35')">abreCor</a></td><td class=SDescription>Abre a paleta de cores</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#editaLegenda" id=link36 onMouseOver="ShowTip(event, 'tt36', 'link36')" onMouseOut="HideTip('tt36')">editaLegenda</a></td><td class=SDescription>Abre a janela do editor de legenda de um tema</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#abreSistema" id=link37 onMouseOver="ShowTip(event, 'tt37', 'link37')" onMouseOut="HideTip('tt37')">abreSistema</a></td><td class=SDescription>Abre em uma janela o programa escolhido pelo usuário e definido no menu de sistemas.</td></tr><tr class="SSection"><td class=SEntry><a href="#navegação" >navegação</a></td><td class=SDescription></td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#ativaHistoricoZoom" id=link38 onMouseOver="ShowTip(event, 'tt38', 'link38')" onMouseOut="HideTip('tt38')">ativaHistoricoZoom</a></td><td class=SDescription>Insere na interface a opção para mostrar o zoom anterior ou o próximo.</td></tr><tr class="SSection"><td class=SEntry><a href="#outros" >outros</a></td><td class=SDescription></td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#abreDoc" id=link39 onMouseOver="ShowTip(event, 'tt39', 'link39')" onMouseOut="HideTip('tt39')">abreDoc</a></td><td class=SDescription>Abre a documentacao do i3geo.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#download" id=link40 onMouseOver="ShowTip(event, 'tt40', 'link40')" onMouseOut="HideTip('tt40')">download</a></td><td class=SDescription>Abre a janela que faz o download de um tema</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#textofid" id=link41 onMouseOver="ShowTip(event, 'tt41', 'link41')" onMouseOut="HideTip('tt41')">textofid</a></td><td class=SDescription>Abre a ferramenta de inclusão de textos no mapa.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div> | |
| 15 | - | |
| 16 | -<div class="CGroup CTopic"><h3 class=CTitle><a name="Files"></a>Files</h3></div> | |
| 17 | - | |
| 18 | -<div class="CFile CTopic"><h3 class=CTitle><a name="i3geo/classesjs/ferramentas.js"></a>i3geo/<span class=HB> </span>classesjs/<span class=HB> </span>ferramentas.js</h3></div> | |
| 19 | - | |
| 20 | -<div class="CGeneric CTopic"><h3 class=CTitle><a name="Licença"></a>Licença</h3><div class=CBody><p class=CParagraph>I3Geo Interface Integrada de Ferramentas de Geoprocessamento para Internet</p><p class=CParagraph>Direitos Autorais Reservados © 2006 Ministério do Meio Ambiente Brasil Desenvolvedor: Edmar Moretti <a href="#" onClick="location.href='mai' + 'lto:' + 'edmar.' + 'moretti' + '@' + 'mma.g' + 'ov.br'; return false;" class=LEMail>edmar.<span style="display: none">.nosp@m.</span>moretti<span>@</span>mma.g<span style="display: none">.nosp@m.</span>ov.br</a></p><p class=CParagraph>Este programa é software livre; você pode redistribuí-lo e/ou modificá-lo sob os termos da Licença Pública Geral GNU conforme publicada pela Free Software Foundation; tanto a versão 2 da Licença. Este programa é distribuído na expectativa de que seja útil, porém, SEM NENHUMA GARANTIA; nem mesmo a garantia implícita de COMERCIABILIDADE OU ADEQUAÇÃO A UMA FINALIDADE ESPECÍFICA. Consulte a Licença Pública Geral do GNU para mais detalhes. Você deve ter recebido uma cópia da Licença Pública Geral do GNU junto com este programa; se não, escreva para a Free Software Foundation, Inc., no endereço 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA.</p></div></div> | |
| 21 | - | |
| 22 | -<div class="CSection CTopic"><h2 class=CTitle><a name="funções_de_movimentação_do_mouse_sobre_o_mapa"></a>funções de movimentação do mouse sobre o mapa</h2><div class=CBody></div></div> | |
| 23 | - | |
| 24 | -<div class="CSection CTopic"><h2 class=CTitle><a name="funções_de_clique_sobre_o_mapa"></a>funções de clique sobre o mapa</h2><div class=CBody><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBody><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SGroup"><td class=SEntry><a href="#Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#cliqueCapturaPt" id=link42 onMouseOver="ShowTip(event, 'tt1', 'link42')" onMouseOut="HideTip('tt1')">cliqueCapturaPt</a></td><td class=SDescription>Captura um ponto na tela e retorna o resultado para a janela interna que estiver aberta.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#abreKml" id=link43 onMouseOver="ShowTip(event, 'tt2', 'link43')" onMouseOut="HideTip('tt2')">abreKml</a></td><td class=SDescription>Abre a janela para mostrar o link de acesso a um tema via kml.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#cliqueInserexy" id=link44 onMouseOver="ShowTip(event, 'tt3', 'link44')" onMouseOut="HideTip('tt3')">cliqueInserexy</a></td><td class=SDescription>Insere um ponto no mapa na posição clicada</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#cliqueInseregrafico" id=link45 onMouseOver="ShowTip(event, 'tt4', 'link45')" onMouseOut="HideTip('tt4')">cliqueInseregrafico</a></td><td class=SDescription>Insere um gráfico no mapa na posição clicada</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#cliqueInseretoponimo" id=link46 onMouseOver="ShowTip(event, 'tt5', 'link46')" onMouseOut="HideTip('tt5')">cliqueInseretoponimo</a></td><td class=SDescription>Insere um texto no mapa na posição clicada</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#cliqueMede" id=link47 onMouseOver="ShowTip(event, 'tt6', 'link47')" onMouseOut="HideTip('tt6')">cliqueMede</a></td><td class=SDescription>Executa as operações de medição de distâncias.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#cliqueArea" id=link48 onMouseOver="ShowTip(event, 'tt7', 'link48')" onMouseOut="HideTip('tt7')">cliqueArea</a></td><td class=SDescription>Executa as operações de cálculo de área quando o usuário clica no mapa e a opção de cálculo estiver ativa</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div> | |
| 25 | - | |
| 26 | -<div class="CGroup CTopic"><h3 class=CTitle><a name="Functions"></a>Functions</h3></div> | |
| 27 | - | |
| 28 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="cliqueCapturaPt"></a>cliqueCapturaPt</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function cliqueCapturaPt()</td></tr></table></blockquote><p class=CParagraph>Captura um ponto na tela e retorna o resultado para a janela interna que estiver aberta.</p><p class=CParagraph>As coordenadas do ponto, em DMS, são repassadas para os campos do tipo input da janela interna que estiver aberta. A janela aberta deve ter os seguintes elementos do tipo input (ids): ixg,ixm,ixs,iyg,iym,iys</p></div></div> | |
| 29 | - | |
| 30 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="abreKml"></a>abreKml</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function abreKml(</td><td class=PParameter nowrap>tema</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>Abre a janela para mostrar o link de acesso a um tema via kml.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>tema</td><td class=CDLDescription>código do tema escolhido</td></tr></table></div></div> | |
| 31 | - | |
| 32 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="cliqueInserexy"></a>cliqueInserexy</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function cliqueInserexy()</td></tr></table></blockquote><p class=CParagraph>Insere um ponto no mapa na posição clicada</p><p class=CParagraph>Os pontos são obtidos do objeto objposicaocursor e os demais parâmetros da janela interna aberta no iframe “wdocai”</p></div></div> | |
| 33 | - | |
| 34 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="cliqueInseregrafico"></a>cliqueInseregrafico</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function cliqueInseregrafico()</td></tr></table></blockquote><p class=CParagraph>Insere um gráfico no mapa na posição clicada</p><p class=CParagraph>Os pontos são obtidos do objeto objposicaocursor e os demais parâmetros da janela interna aberta no iframe “wdocai”</p></div></div> | |
| 35 | - | |
| 36 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="cliqueInseretoponimo"></a>cliqueInseretoponimo</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function cliqueInseretoponimo()</td></tr></table></blockquote><p class=CParagraph>Insere um texto no mapa na posição clicada</p><p class=CParagraph>Os pontos são obtidos do objeto objposicaocursor e os demais parâmetros da janela interna aberta no iframe “wdocai”</p></div></div> | |
| 37 | - | |
| 38 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="cliqueMede"></a>cliqueMede</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function cliqueMede()</td></tr></table></blockquote><p class=CParagraph>Executa as operações de medição de distâncias.</p><p class=CParagraph>Os pontos são obtidos do objeto objposicaocursor</p></div></div> | |
| 39 | - | |
| 40 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="cliqueArea"></a>cliqueArea</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function cliqueArea()</td></tr></table></blockquote><p class=CParagraph>Executa as operações de cálculo de área quando o usuário clica no mapa e a opção de cálculo estiver ativa</p></div></div> | |
| 41 | - | |
| 42 | -<div class="CSection CTopic"><h2 class=CTitle><a name="propriedades_de_um_tema"></a>propriedades de um tema</h2><div class=CBody><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBody><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SGroup"><td class=SEntry><a href="#Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#excluitemaf" id=link49 onMouseOver="ShowTip(event, 'tt8', 'link49')" onMouseOut="HideTip('tt8')">excluitemaf</a></td><td class=SDescription>Exclui um tema do mapa</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#sobetemaf" id=link50 onMouseOver="ShowTip(event, 'tt9', 'link50')" onMouseOut="HideTip('tt9')">sobetemaf</a></td><td class=SDescription>Sobe um tema na ordem de desenho</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#descetemaf" id=link51 onMouseOver="ShowTip(event, 'tt10', 'link51')" onMouseOut="HideTip('tt10')">descetemaf</a></td><td class=SDescription>Desce um tema na ordem de desenho</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#zoomtemaf" id=link52 onMouseOver="ShowTip(event, 'tt11', 'link52')" onMouseOut="HideTip('tt11')">zoomtemaf</a></td><td class=SDescription>Zoom para o tema</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#limpaseltemaf" id=link53 onMouseOver="ShowTip(event, 'tt12', 'link53')" onMouseOut="HideTip('tt12')">limpaseltemaf</a></td><td class=SDescription>Limpa a selecao do tema</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#mudatranspf" id=link54 onMouseOver="ShowTip(event, 'tt13', 'link54')" onMouseOut="HideTip('tt13')">mudatranspf</a></td><td class=SDescription>Muda a transparencia de um tema</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#mudanomef" id=link55 onMouseOver="ShowTip(event, 'tt14', 'link55')" onMouseOut="HideTip('tt14')">mudanomef</a></td><td class=SDescription>Muda o nome de um tema</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#graficotema" id=link56 onMouseOver="ShowTip(event, 'tt15', 'link56')" onMouseOut="HideTip('tt15')">graficotema</a></td><td class=SDescription>Adiciona gráficos automaticamente nos elementos de um tema</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#toponimiaf" id=link57 onMouseOver="ShowTip(event, 'tt16', 'link57')" onMouseOut="HideTip('tt16')">toponimiaf</a></td><td class=SDescription>Opções de toponímia de um tema.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#filtrof" id=link58 onMouseOver="ShowTip(event, 'tt17', 'link58')" onMouseOut="HideTip('tt17')">filtrof</a></td><td class=SDescription>Opções de filtragem de um tema.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div> | |
| 43 | - | |
| 44 | -<div class="CGroup CTopic"><h3 class=CTitle><a name="Functions"></a>Functions</h3></div> | |
| 45 | - | |
| 46 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="excluitemaf"></a>excluitemaf</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function excluitemaf(</td><td class=PParameter nowrap>tema</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>Exclui um tema do mapa</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>tema</td><td class=CDLDescription>código do tema</td></tr></table></div></div> | |
| 47 | - | |
| 48 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="sobetemaf"></a>sobetemaf</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function sobetemaf(</td><td class=PParameter nowrap>tema</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>Sobe um tema na ordem de desenho</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>tema</td><td class=CDLDescription>código do tema</td></tr></table></div></div> | |
| 49 | - | |
| 50 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="descetemaf"></a>descetemaf</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function descetemaf(</td><td class=PParameter nowrap>tema</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>Desce um tema na ordem de desenho</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>tema</td><td class=CDLDescription>código do tema</td></tr></table></div></div> | |
| 51 | - | |
| 52 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="zoomtemaf"></a>zoomtemaf</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function zoomtemaf(</td><td class=PParameter nowrap>tema</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>Zoom para o tema</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>tema</td><td class=CDLDescription>código do tema</td></tr></table></div></div> | |
| 53 | - | |
| 54 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="limpaseltemaf"></a>limpaseltemaf</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function limpaseltemaf(</td><td class=PParameter nowrap>tema</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>Limpa a selecao do tema</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>tema</td><td class=CDLDescription>ID (name) do tema clicado</td></tr></table></div></div> | |
| 55 | - | |
| 56 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="mudatranspf"></a>mudatranspf</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function mudatranspf(</td><td class=PParameter nowrap>idtema</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>Muda a transparencia de um tema</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>idtema</td><td class=CDLDescription>código do tema</td></tr></table></div></div> | |
| 57 | - | |
| 58 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="mudanomef"></a>mudanomef</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function mudanomef(</td><td class=PParameter nowrap>idtema</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>Muda o nome de um tema</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>idtema</td><td class=CDLDescription>código do tema</td></tr></table></div></div> | |
| 59 | - | |
| 60 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="graficotema"></a>graficotema</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function graficotema(</td><td class=PParameter nowrap>idtema</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>Adiciona gráficos automaticamente nos elementos de um tema</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>idtema</td><td class=CDLDescription>código do tema</td></tr></table></div></div> | |
| 61 | - | |
| 62 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="toponimiaf"></a>toponimiaf</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function toponimiaf(</td><td class=PParameter nowrap>idtema</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>Opções de toponímia de um tema.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>idtema</td><td class=CDLDescription>código do tema</td></tr></table></div></div> | |
| 63 | - | |
| 64 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="filtrof"></a>filtrof</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function filtrof(</td><td class=PParameter nowrap>idtema</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>Opções de filtragem de um tema.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>idtema</td><td class=CDLDescription>código do tema</td></tr></table></div></div> | |
| 65 | - | |
| 66 | -<div class="CSection CTopic"><h2 class=CTitle><a name="análise_geográfica"></a>análise geográfica</h2><div class=CBody><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBody><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SGroup"><td class=SEntry><a href="#Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#pontosdistri" id=link59 onMouseOver="ShowTip(event, 'tt18', 'link59')" onMouseOut="HideTip('tt18')">pontosdistri</a></td><td class=SDescription>Abre a janela para executar análises de distribuição de pontos</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#pontoempoligono" id=link60 onMouseOver="ShowTip(event, 'tt19', 'link60')" onMouseOut="HideTip('tt19')">pontoempoligono</a></td><td class=SDescription>Abre a janela para cruzar um tema de pontos com um ou mais temas poligonais e gerar um novo tema</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#nptPol" id=link61 onMouseOver="ShowTip(event, 'tt20', 'link61')" onMouseOut="HideTip('tt20')">nptPol</a></td><td class=SDescription>Abre a janela para cruzar um tema de pontos com um ou tema poligona e gerar um novo tema com o número de pontos em cada polígono</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#buffer" id=link62 onMouseOver="ShowTip(event, 'tt21', 'link62')" onMouseOut="HideTip('tt21')">buffer</a></td><td class=SDescription>Gera um buffer em elementos selecionados</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#distanciaptpt" id=link63 onMouseOver="ShowTip(event, 'tt22', 'link63')" onMouseOut="HideTip('tt22')">distanciaptpt</a></td><td class=SDescription>Abre a janela para calcular a distância entre um ponto e outros pontos próximos</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#centroide" id=link64 onMouseOver="ShowTip(event, 'tt23', 'link64')" onMouseOut="HideTip('tt23')">centroide</a></td><td class=SDescription>Abre a janela que gera um tema com os centroides dos elementos selecionados</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#dissolve" id=link65 onMouseOver="ShowTip(event, 'tt24', 'link65')" onMouseOut="HideTip('tt24')">dissolve</a></td><td class=SDescription>Abre a janela que gera um tema dissolvendo as divisas entre polígonos.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#agrupaElementos" id=link66 onMouseOver="ShowTip(event, 'tt25', 'link66')" onMouseOut="HideTip('tt25')">agrupaElementos</a></td><td class=SDescription>Abre a janela que gera um tema poligonal agrupando elementos de um tema.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#analisaGeometrias" id=link67 onMouseOver="ShowTip(event, 'tt26', 'link67')" onMouseOut="HideTip('tt26')">analisaGeometrias</a></td><td class=SDescription>Abre a janela com o sistema de análise de geometrias</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#mede" id=link68 onMouseOver="ShowTip(event, 'tt27', 'link68')" onMouseOut="HideTip('tt27')">mede</a></td><td class=SDescription>Ativa a opção de medição de distâncias.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#inserexy" id=link69 onMouseOver="ShowTip(event, 'tt28', 'link69')" onMouseOut="HideTip('tt28')">inserexy</a></td><td class=SDescription>Ativa o botão de inserção de pontos (digitalização).</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#inseregrafico" id=link70 onMouseOver="ShowTip(event, 'tt29', 'link70')" onMouseOut="HideTip('tt29')">inseregrafico</a></td><td class=SDescription>Ativa a opção de inserção de gráficos.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div> | |
| 67 | - | |
| 68 | -<div class="CGroup CTopic"><h3 class=CTitle><a name="Functions"></a>Functions</h3></div> | |
| 69 | - | |
| 70 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="pontosdistri"></a>pontosdistri</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function pontosdistri()</td></tr></table></blockquote><p class=CParagraph>Abre a janela para executar análises de distribuição de pontos</p></div></div> | |
| 71 | - | |
| 72 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="pontoempoligono"></a>pontoempoligono</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function pontoempoligono()</td></tr></table></blockquote><p class=CParagraph>Abre a janela para cruzar um tema de pontos com um ou mais temas poligonais e gerar um novo tema</p></div></div> | |
| 73 | - | |
| 74 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="nptPol"></a>nptPol</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function nptPol()</td></tr></table></blockquote><p class=CParagraph>Abre a janela para cruzar um tema de pontos com um ou tema poligona e gerar um novo tema com o número de pontos em cada polígono</p></div></div> | |
| 75 | - | |
| 76 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="buffer"></a>buffer</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function buffer()</td></tr></table></blockquote><p class=CParagraph>Gera um buffer em elementos selecionados</p></div></div> | |
| 77 | - | |
| 78 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="distanciaptpt"></a>distanciaptpt</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function distanciaptpt()</td></tr></table></blockquote><p class=CParagraph>Abre a janela para calcular a distância entre um ponto e outros pontos próximos</p></div></div> | |
| 79 | - | |
| 80 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="centroide"></a>centroide</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function centroide()</td></tr></table></blockquote><p class=CParagraph>Abre a janela que gera um tema com os centroides dos elementos selecionados</p></div></div> | |
| 81 | - | |
| 82 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="dissolve"></a>dissolve</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function dissolve()</td></tr></table></blockquote><p class=CParagraph>Abre a janela que gera um tema dissolvendo as divisas entre polígonos.</p></div></div> | |
| 83 | - | |
| 84 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="agrupaElementos"></a>agrupaElementos</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function agrupaElementos()</td></tr></table></blockquote><p class=CParagraph>Abre a janela que gera um tema poligonal agrupando elementos de um tema.</p></div></div> | |
| 85 | - | |
| 86 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="analisaGeometrias"></a>analisaGeometrias</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function analisaGeometrias()</td></tr></table></blockquote><p class=CParagraph>Abre a janela com o sistema de análise de geometrias</p></div></div> | |
| 87 | - | |
| 88 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="mede"></a>mede</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function mede()</td></tr></table></blockquote><p class=CParagraph>Ativa a opção de medição de distâncias.</p><p class=CParagraph>A medida é feita quando o usuário clica no mapa com esta opção ativa</p><p class=CParagraph>Quando o botão é acionado, abre-se a janela que mostra o resultado da medida, o ícone que segue o mouse é alterado.</p><p class=CParagraph>Para mostrar o resultado do cálculo, é incluído um div específico.</p></div></div> | |
| 89 | - | |
| 90 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="inserexy"></a>inserexy</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function inserexy()</td></tr></table></blockquote><p class=CParagraph>Ativa o botão de inserção de pontos (digitalização).</p><p class=CParagraph>A inserção é feita quando o usuário clica no mapa com esta opção ativa</p><p class=CParagraph>Quando o botão é acionado, abre-se a janela de opções, o ícone que segue o mouse é alterado e a variável g_tipoacao é definida.</p></div></div> | |
| 91 | - | |
| 92 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="inseregrafico"></a>inseregrafico</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function inseregrafico()</td></tr></table></blockquote><p class=CParagraph>Ativa a opção de inserção de gráficos.</p><p class=CParagraph>A inserção é feita quando o usuário clica no mapa com esta opção ativa</p><p class=CParagraph>Quando o botão é acionado, abre-se a janela de opções, o ícone que segue o mouse é alterado e a variável g_tipoacao é definida.</p></div></div> | |
| 93 | - | |
| 94 | -<div class="CSection CTopic"><h2 class=CTitle><a name="grades"></a>grades</h2><div class=CBody><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBody><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SGroup"><td class=SEntry><a href="#Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#gradePontos" id=link71 onMouseOver="ShowTip(event, 'tt30', 'link71')" onMouseOut="HideTip('tt30')">gradePontos</a></td><td class=SDescription>Abre a janela que gera grade de pontos</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#gradePoligonos" >gradePoligonos</a></td><td class=SDescription>Abre a janela que gera grade de poligonos</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#gradeHex" id=link72 onMouseOver="ShowTip(event, 'tt31', 'link72')" onMouseOut="HideTip('tt31')">gradeHex</a></td><td class=SDescription>Abre a janela que gera grade de hexágonos</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div> | |
| 95 | - | |
| 96 | -<div class="CGroup CTopic"><h3 class=CTitle><a name="Functions"></a>Functions</h3></div> | |
| 97 | - | |
| 98 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="gradePontos"></a>gradePontos</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function gradePontos()</td></tr></table></blockquote><p class=CParagraph>Abre a janela que gera grade de pontos</p></div></div> | |
| 99 | - | |
| 100 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="gradePoligonos"></a>gradePoligonos</h3><div class=CBody><p class=CParagraph>Abre a janela que gera grade de poligonos</p></div></div> | |
| 101 | - | |
| 102 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="gradeHex"></a>gradeHex</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function gradeHex()</td></tr></table></blockquote><p class=CParagraph>Abre a janela que gera grade de hexágonos</p></div></div> | |
| 103 | - | |
| 104 | -<div class="CSection CTopic"><h2 class=CTitle><a name="atributos"></a>atributos</h2><div class=CBody><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBody><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SGroup"><td class=SEntry><a href="#Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#procuraratribf" id=link73 onMouseOver="ShowTip(event, 'tt32', 'link73')" onMouseOut="HideTip('tt32')">procuraratribf</a></td><td class=SDescription>Abre a janela com a opção de procurar elementos baseados nos atributos da tabela do tema</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#tabelaf" id=link74 onMouseOver="ShowTip(event, 'tt33', 'link74')" onMouseOut="HideTip('tt33')">tabelaf</a></td><td class=SDescription>Abre a tabela com os atributos de um tema.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#etiquetas" id=link75 onMouseOver="ShowTip(event, 'tt34', 'link75')" onMouseOut="HideTip('tt34')">etiquetas</a></td><td class=SDescription>Abre a janela de configuração das etiquetas</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div> | |
| 105 | - | |
| 106 | -<div class="CGroup CTopic"><h3 class=CTitle><a name="Functions"></a>Functions</h3></div> | |
| 107 | - | |
| 108 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="procuraratribf"></a>procuraratribf</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function procuraratribf(</td><td class=PParameter nowrap>idtema</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>Abre a janela com a opção de procurar elementos baseados nos atributos da tabela do tema</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>idtema</td><td class=CDLDescription>id que identifica o tema conforme definido no map file</td></tr></table></div></div> | |
| 109 | - | |
| 110 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="tabelaf"></a>tabelaf</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function tabelaf(</td><td class=PParameter nowrap>idtema</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>Abre a tabela com os atributos de um tema.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>idtema</td><td class=CDLDescription>id que identifica o tema conforme definido no map file</td></tr></table></div></div> | |
| 111 | - | |
| 112 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="etiquetas"></a>etiquetas</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function etiquetas(</td><td class=PParameter nowrap>idtema</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>Abre a janela de configuração das etiquetas</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>idtema</td><td class=CDLDescription>id que identifica o tema conforme definido no map file</td></tr></table></div></div> | |
| 113 | - | |
| 114 | -<div class="CSection CTopic"><h2 class=CTitle><a name="legenda"></a>legenda</h2><div class=CBody><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBody><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SGroup"><td class=SEntry><a href="#Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#abreCor" id=link76 onMouseOver="ShowTip(event, 'tt35', 'link76')" onMouseOut="HideTip('tt35')">abreCor</a></td><td class=SDescription>Abre a paleta de cores</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#editaLegenda" id=link77 onMouseOver="ShowTip(event, 'tt36', 'link77')" onMouseOut="HideTip('tt36')">editaLegenda</a></td><td class=SDescription>Abre a janela do editor de legenda de um tema</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#abreSistema" id=link78 onMouseOver="ShowTip(event, 'tt37', 'link78')" onMouseOut="HideTip('tt37')">abreSistema</a></td><td class=SDescription>Abre em uma janela o programa escolhido pelo usuário e definido no menu de sistemas.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div> | |
| 115 | - | |
| 116 | -<div class="CGroup CTopic"><h3 class=CTitle><a name="Functions"></a>Functions</h3></div> | |
| 117 | - | |
| 118 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="abreCor"></a>abreCor</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function abreCor(</td><td class=PParameter nowrap>janela,</td></tr><tr><td></td><td class=PParameter nowrap>elemento</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>Abre a paleta de cores</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>janela</td><td class=CDLDescription>id da janela que disparou a janela de cores</td></tr><tr><td class=CDLEntry>elemento</td><td class=CDLDescription>elemento da janela que receberá os valores de cor selecionada</td></tr></table></div></div> | |
| 119 | - | |
| 120 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="editaLegenda"></a>editaLegenda</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function editaLegenda(</td><td class=PParameter nowrap>idtema</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>Abre a janela do editor de legenda de um tema</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>idtema</td><td class=CDLDescription>id que identifica o tema conforme definido no map file</td></tr></table></div></div> | |
| 121 | - | |
| 122 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="abreSistema"></a>abreSistema</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function abreSistema(</td><td class=PParameter nowrap>endereco,</td></tr><tr><td></td><td class=PParameter nowrap>w,</td></tr><tr><td></td><td class=PParameter nowrap>h</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>Abre em uma janela o programa escolhido pelo usuário e definido no menu de sistemas.</p><p class=CParagraph>A lista de sistemas é lida de um arquivo xml definido no ms_configura.php</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>endereco</td><td class=CDLDescription>programa que será executado.</td></tr><tr><td class=CDLEntry>w</td><td class=CDLDescription>largura da janela.</td></tr><tr><td class=CDLEntry>h</td><td class=CDLDescription>altura da janela.</td></tr></table></div></div> | |
| 123 | - | |
| 124 | -<div class="CSection CTopic"><h2 class=CTitle><a name="navegação"></a>navegação</h2><div class=CBody><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBody><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SGroup"><td class=SEntry><a href="#Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#ativaHistoricoZoom" id=link79 onMouseOver="ShowTip(event, 'tt38', 'link79')" onMouseOut="HideTip('tt38')">ativaHistoricoZoom</a></td><td class=SDescription>Insere na interface a opção para mostrar o zoom anterior ou o próximo.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div> | |
| 125 | - | |
| 126 | -<div class="CGroup CTopic"><h3 class=CTitle><a name="Functions"></a>Functions</h3></div> | |
| 127 | - | |
| 128 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="ativaHistoricoZoom"></a>ativaHistoricoZoom</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function ativaHistoricoZoom(</td><td class=PParameter nowrap>iddiv</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>Insere na interface a opção para mostrar o zoom anterior ou o próximo.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>iddiv</td><td class=CDLDescription>id do elemento HTML que receberá os ícones</td></tr></table></div></div> | |
| 129 | - | |
| 130 | -<div class="CSection CTopic"><h2 class=CTitle><a name="outros"></a>outros</h2><div class=CBody><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBody><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SGroup"><td class=SEntry><a href="#Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#abreDoc" id=link80 onMouseOver="ShowTip(event, 'tt39', 'link80')" onMouseOut="HideTip('tt39')">abreDoc</a></td><td class=SDescription>Abre a documentacao do i3geo.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#download" id=link81 onMouseOver="ShowTip(event, 'tt40', 'link81')" onMouseOut="HideTip('tt40')">download</a></td><td class=SDescription>Abre a janela que faz o download de um tema</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#textofid" id=link82 onMouseOver="ShowTip(event, 'tt41', 'link82')" onMouseOut="HideTip('tt41')">textofid</a></td><td class=SDescription>Abre a ferramenta de inclusão de textos no mapa.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div> | |
| 131 | - | |
| 132 | -<div class="CGroup CTopic"><h3 class=CTitle><a name="Functions"></a>Functions</h3></div> | |
| 133 | - | |
| 134 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="abreDoc"></a>abreDoc</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function abreDoc()</td></tr></table></blockquote><p class=CParagraph>Abre a documentacao do i3geo.</p></div></div> | |
| 135 | - | |
| 136 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="download"></a>download</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function download(</td><td class=PParameter nowrap>idtema</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p class=CParagraph>Abre a janela que faz o download de um tema</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>idtema</td><td class=CDLDescription>id ue identifica o tema no map file.</td></tr></table></div></div> | |
| 137 | - | |
| 138 | -<div class="CFunction CTopic"><h3 class=CTitle><a name="textofid"></a>textofid</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function textofid()</td></tr></table></blockquote><p class=CParagraph>Abre a ferramenta de inclusão de textos no mapa.</p><p class=CParagraph>A inserção é feita quando o usuário clica no mapa com esta opção ativa</p><p class=CParagraph>Quando o botão é acionado, abre-se a janela de opções, o ícone que segue o mouse é alterado e a variável g_tipoacao é definida.</p></div></div> | |
| 139 | - | |
| 140 | -</div><!--Content--> | |
| 141 | - | |
| 142 | - | |
| 143 | -<div id=Footer>Para mais informações veja http://softwarepublico.gov.br · Gerado em 18th January, 2009 · <a href="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer--> | |
| 144 | - | |
| 145 | - | |
| 146 | -<div id=Menu><div id=MTitle>i3Geo<div id=MSubTitle>Documentação dos códigos</div></div><div class="MFile MEntry"><a href="../principal-htm.html">Página principal com a lista de aplicativos do i3geo</a></div><div class="MFile MEntry"><a href="../ms_criamapa-php.html">Inicializa o I3Geo via URL ms_criamapa.php</a></div><div class="MFile MEntry"><a href="../ms_configura-php.html">Variáveis de inicialização ms_configura.php</a></div><div class="MFile MEntry"><a href="../testainstal-php.html">Testa a instalação do I3Geo.</a></div><div class="MFile MEntry"><a href="../testamapfile-php.html">Testa um mapfile.</a></div><div class="MGroup MEntry"><a href="javascript:ToggleMenu('MGroupContent3')">Programas principais (core)</a><div class=MGroupContent id=MGroupContent3><div class="MGroup MEntry"><a href="javascript:ToggleMenu('MGroupContent1')">Programas principais em JavaScript (rodam no navegador)</a><div class=MGroupContent id=MGroupContent1><div class="MFile MEntry"><a href="classe_arvoredetemas-js.html">classe_arvoredetemas.js</a></div><div class="MFile MEntry"><a href="classe_util-js.html">classe_util.js</a></div><div class="MFile MEntry"><a href="classe_idioma-js.html">classe_idioma.js</a></div><div class="MFile MEntry"><a href="atlas-js.html">atlas.js</a></div><div class="MFile MEntry"><a href="compactajs-php.html">compactajs.js</a></div><div class="MFile MEntry"><a href="configura-js.html">configura.js</a></div><div class="MFile MEntry"><a href="datadownload-js.html">datadownload.js</a></div><div class="MFile MEntry" id=MSelected>ferramentas.js</div><div class="MFile MEntry"><a href="geradordelinks-js.html">geradordelinks.js</a></div><div class="MFile MEntry"><a href="classe_idioma-js.html">i3geo.<span class=HB> </span>idioma</a></div><div class="MFile MEntry"><a href="i3geo-js.html">i3geo.js</a></div><div class="MFile MEntry"><a href="classe_util-js.html">classe_util.js</a></div><div class="MFile MEntry"><a href="iniciamma-js.html">iniciamma.js</a></div><div class="MFile MEntry"><a href="menususpenso-js.html">montaMenuSuspenso</a></div><div class="MFile MEntry"><a href="redesenho-js.html">redesenho.js</a></div><div class="MFile MEntry"><a href="wscliente-js.html">wscliente.js</a></div><div class="MFile MEntry"><a href="classe_configura-js.html">classe_configura.js</a></div><div class="MFile MEntry"><a href="classe_janela-js.html">classe_janela.js</a></div><div class="MFile MEntry"><a href="classe_calculo-js.html">classe_calculo.js</a></div><div class="MFile MEntry"><a href="classe_eventos-js.html">classe_eventos.js</a></div><div class="MFile MEntry"><a href="classe_gadgets-js.html">classe_gadgets.js</a></div><div class="MFile MEntry"><a href="classe_guias-js.html">classe_guias.js</a></div><div class="MFile MEntry"><a href="classe_maparef-js.html">classe_maparef.js</a></div><div class="MFile MEntry"><a href="depreciados-js.html">depreciados.js</a></div><div class="MFile MEntry"><a href="classe_ajuda-js.html">i3GEO.<span class=HB> </span>ajuda</a></div><div class="MFile MEntry"><a href="classe_barradebotoes-js.html">i3GEO.<span class=HB> </span>barradebotoes</a></div><div class="MFile MEntry"><a href="classe_navega-js.html">i3GEO.<span class=HB> </span>navega</a></div><div class="MFile MEntry"><a href="i3geo_tudo_compacto-js.html">i3geo_tudo_compacto.js</a></div><div class="MFile MEntry"><a href="i3geo_tudo_compacto-js-php.html">i3geo_tudo_compacto.<span class=HB> </span>js.php</a></div><div class="MFile MEntry"><a href="classe_arvoredecamadas-js.html">i3GEO.<span class=HB> </span>arvoreDeCamadas.js</a></div><div class="MFile MEntry"><a href="classe_mapa-js.html">classe_mapa.js</a></div><div class="MFile MEntry"><a href="classe_desenho-js.html">i3GEO.<span class=HB> </span>desenho</a></div><div class="MFile MEntry"><a href="classe_selecao-js.html">i3GEO.<span class=HB> </span>selecao</a></div></div></div><div class="MGroup MEntry"><a href="javascript:ToggleMenu('MGroupContent2')">Programas principais em PHP (rodam no servidor)</a><div class=MGroupContent id=MGroupContent2><div class="MFile MEntry"><a href="../classesphp/atlas_controle-php.html">atlas_controle.php</a></div><div class="MFile MEntry"><a href="../classesphp/carrega_ext-php.html">carrega_ext.php</a></div><div class="MFile MEntry"><a href="../classesphp/class-palette-php.html">class.<span class=HB> </span>palette.php</a></div><div class="MFile MEntry"><a href="../classesphp/classe_alteraclasse-php.html">classe_alteraclasse.php</a></div><div class="MFile MEntry"><a href="../classesphp/classe_analise-php.html">classe_analise.php</a></div><div class="MFile MEntry"><a href="../classesphp/classe_atlas-php.html">classe_atlas.php</a></div><div class="MFile MEntry"><a href="../classesphp/classe_atributos-php.html">classe_atributos</a></div><div class="MFile MEntry"><a href="../classesphp/classe_escala-php.html">classe_escala.php</a></div><div class="MFile MEntry"><a href="../classesphp/classe_estatistica-php.html">classe_estatistica.php</a></div><div class="MFile MEntry"><a href="../classesphp/classe_imagem-php.html">classe_imagem.php</a></div><div class="MFile MEntry"><a href="../classesphp/classe_legenda-php.html">classe_legenda.php</a></div><div class="MFile MEntry"><a href="../classesphp/classe_mapa-php.html">classe_mapa.php</a></div><div class="MFile MEntry"><a href="../classesphp/classe_menutemas-php.html">classe_menutemas.php</a></div><div class="MFile MEntry"><a href="../classesphp/classe_navegacao-php.html">classe_navegacao.php</a></div><div class="MFile MEntry"><a href="../classesphp/classe_selecao-php.html">classe_selecao.php</a></div><div class="MFile MEntry"><a href="../classesphp/classe_shp-php.html">classe_shp.php</a></div><div class="MFile MEntry"><a href="../classesphp/classe_temas-php.html">classe_temas.php</a></div><div class="MFile MEntry"><a href="../classesphp/classe_toponimia-php.html">classe_toponimia.php</a></div><div class="MFile MEntry"><a href="../classesphp/classe_vermultilayer-php.html">classe_vermultilayer.php</a></div><div class="MFile MEntry"><a href="../classesphp/flamingoogc-php.html">flamingoogc.php</a></div><div class="MFile MEntry"><a href="../classesphp/funcoes_gerais-php.html">funcoes_gerais.php</a></div><div class="MFile MEntry"><a href="../classesphp/graficopizza-php.html">graficopizza.php</a></div><div class="MFile MEntry"><a href="../classesphp/graficos-php.html">graficos.php</a></div><div class="MFile MEntry"><a href="../classesphp/mapa_controle-php.html">mapa_controle.php</a></div><div class="MFile MEntry"><a href="../classesphp/mapa_inicia-php.html">mapa_inicia.php</a></div><div class="MFile MEntry"><a href="../classesphp/parse_cgi-php.html">parse_cgi.php</a></div><div class="MFile MEntry"><a href="../classesphp/pega_variaveis-php.html">pega_variaveis.php</a></div><div class="MFile MEntry"><a href="../classesphp/wmswfs-php.html">wmswfs.php</a></div><div class="MFile MEntry"><a href="../classesphp/wscliente-php.html">wscliente.php</a></div></div></div></div></div><div class="MGroup MEntry"><a href="javascript:ToggleMenu('MGroupContent4')">Exemplos de customização</a><div class=MGroupContent id=MGroupContent4><div class="MFile MEntry"><a href="../exemplos/mashup-htm.html">mashup.htm</a></div><div class="MFile MEntry"><a href="../exemplos/abas-htm.html">abas.htm</a></div></div></div><div class="MGroup MEntry"><a href="javascript:ToggleMenu('MGroupContent5')">Redirecionadores</a><div class=MGroupContent id=MGroupContent5><div class="MFile MEntry"><a href="../index-html.html">Redirecionador para o ms_criamapa.<span class=HB> </span>php com extensão HTML</a></div><div class="MFile MEntry"><a href="../index-htm.html">Redirecionador para o ms_criamapa.<span class=HB> </span>php com extensão HTM</a></div><div class="MFile MEntry"><a href="../zerocal/index-htm.html">Redirecionador HTM para o ms_criamapa.<span class=HB> </span>php com interface zerocal</a></div><div class="MFile MEntry"><a href="../zerocal/index-html.html">Redirecionador HTML para o ms_criamapa.<span class=HB> </span>php com interface zerocal</a></div></div></div><div class="MGroup MEntry"><a href="javascript:ToggleMenu('MGroupContent9')">Aplicativos adicionais</a><div class=MGroupContent id=MGroupContent9><div class="MFile MEntry"><a href="../ms_registraip-php.html">ms_registraip.php</a></div><div class="MFile MEntry"><a href="../datadownload-htm.html">datadownload.htm</a></div><div class="MFile MEntry"><a href="../ogc-htm.html">ogc.htm</a></div><div class="MFile MEntry"><a href="../ogc-php.html">ogc.php</a></div><div class="MFile MEntry"><a href="../kml-php.html">kml.php</a></div><div class="MFile MEntry"><a href="../geradordelinks-htm.html">geradordelinks.htm</a></div><div class="MFile MEntry"><a href="../wscliente-htm.html">wscliente.htm</a></div><div class="MFile MEntry"><a href="../geraminiatura-php.html">geraminiatura.php</a></div><div class="MGroup MEntry"><a href="javascript:ToggleMenu('MGroupContent6')">Zerocal</a><div class=MGroupContent id=MGroupContent6><div class="MFile MEntry"><a href="zerocal/compactajs-php.html">compactajs.php</a></div><div class="MFile MEntry"><a href="zerocal/configura-js.html">configura.js</a></div><div class="MFile MEntry"><a href="zerocal/ferramentas-js.html">ferramentas.js</a></div><div class="MFile MEntry"><a href="zerocal/funcoes-js.html">funcoes.js</a></div><div class="MFile MEntry"><a href="zerocal/temp-js.html">Funções gerais</a></div><div class="MFile MEntry"><a href="zerocal/i3geo-js.html">i3geo.js</a></div><div class="MFile MEntry"><a href="zerocal/i3geonaocompacto-js.html">i3geonaocompacto.js</a></div><div class="MFile MEntry"><a href="zerocal/iniciamma-js.html">iniciamma.js</a></div><div class="MFile MEntry"><a href="zerocal/redesenho-js.html">redesenho.js</a></div></div></div><div class="MGroup MEntry"><a href="javascript:ToggleMenu('MGroupContent7')">Atlas</a><div class=MGroupContent id=MGroupContent7><div class="MFile MEntry"><a href="../atlas/geral-htm.html">geral.htm</a></div><div class="MFile MEntry"><a href="../atlas/index-htm.html">index.htm</a></div><div class="MFile MEntry"><a href="../atlas/index-html.html">index.html</a></div></div></div><div class="MGroup MEntry"><a href="javascript:ToggleMenu('MGroupContent8')">Mobile</a><div class=MGroupContent id=MGroupContent8><div class="MFile MEntry"><a href="../mobile/adicionatema-php.html">adicionatema.php</a></div><div class="MFile MEntry"><a href="../mobile/ativatexto-php.html">ativatexto.php</a></div><div class="MFile MEntry"><a href="../mobile/desligar-php.html">desligar.php</a></div><div class="MFile MEntry"><a href="../mobile/escala-php.html">escala.php</a></div><div class="MFile MEntry"><a href="../mobile/identifica-php.html">identifica.php</a></div><div class="MFile MEntry"><a href="../mobile/index-htm.html">index.htm</a></div><div class="MFile MEntry"><a href="../mobile/index-html.html">index.html</a></div><div class="MFile MEntry"><a href="../mobile/index-php.html">index.php</a></div><div class="MFile MEntry"><a href="../mobile/inicia-php.html">inicia.php</a></div><div class="MFile MEntry"><a href="../mobile/legenda-php.html">legenda.php</a></div><div class="MFile MEntry"><a href="../mobile/ligar-php.html">ligar.php</a></div><div class="MFile MEntry"><a href="../mobile/localizar-php.html">localizar.php</a></div><div class="MFile MEntry"><a href="../mobile/localizarxy-php.html">localizarxy.php</a></div><div class="MFile MEntry"><a href="../mobile/mobile-php.html">mobile.php</a></div></div></div><div class="MFile MEntry"><a href="../hiperbolica-html.html">Redirecionador para o pacotes/<span class=HB> </span>arvorehiper/<span class=HB> </span>index.<span class=HB> </span>php com extensão HTML</a></div></div></div><div class="MGroup MEntry"><a href="javascript:ToggleMenu('MGroupContent10')">Configurações administrativas (menus, mapas, etc.)</a><div class=MGroupContent id=MGroupContent10><div class="MFile MEntry"><a href="../menutemas/identifica-xml.html">Lista de aplicações de identificação</a></div><div class="MFile MEntry"><a href="../menutemas/atlas-xml.html">Lista de Atlas</a></div><div class="MFile MEntry"><a href="../menutemas/linksdownload-xml.html">Lista de links para sites de download</a></div><div class="MFile MEntry"><a href="../menutemas/mapas-xml.html">Lista de mapas</a></div><div class="MFile MEntry"><a href="../menutemas/servicosws-xml.html">Lista de serviços de acesso aos dados.</a></div><div class="MFile MEntry"><a href="../menutemas/servicosgeorss-xml.html">Lista de serviços georss</a></div><div class="MFile MEntry"><a href="../menutemas/sistemas-xml.html">Lista de sistemas.</a></div><div class="MFile MEntry"><a href="../menutemas/menutemas-xml.html">Menu de temas</a></div></div></div><div class="MGroup MEntry"><a href="javascript:ToggleMenu('MGroupContent11')">Interfaces HTML e mapfiles de inicialização e configuração</a><div class=MGroupContent id=MGroupContent11><div class="MFile MEntry"><a href="../aplicmap/flamingo-htm.html">Flamingo (experimental)</a></div><div class="MFile MEntry"><a href="../aplicmap/minima-htm.html">Interface minima</a></div><div class="MFile MEntry"><a href="../aplicmap/geral-htm.html">Interface normal</a></div><div class="MFile MEntry"><a href="../aplicmap/meumapa-htm.html">Interface normal (para exemplos)</a></div><div class="MFile MEntry"><a href="../aplicmap/simples1-htm.html">Interface simples 1</a></div><div class="MFile MEntry"><a href="../aplicmap/simples2-htm.html">Interface simples 2</a></div><div class="MFile MEntry"><a href="../aplicmap/zerocal-htm.html">Interface zerocal</a></div><div class="MFile MEntry"><a href="../aplicmap/openlayers-htm.html">OpenLayers (experimental)</a></div><div class="MFile MEntry"><a href="../aplicmap/index-htm.html">Redirecionador para o ms_criamapa.<span class=HB> </span>php com extensão HTM</a></div><div class="MFile MEntry"><a href="../aplicmap/index-html.html">Redirecionador para o ms_criamapa.<span class=HB> </span>php com extensão HTML</a></div></div></div><div class="MGroup MEntry"><a href="javascript:ToggleMenu('MGroupContent12')">Index</a><div class=MGroupContent id=MGroupContent12><div class="MIndex MEntry"><a href="../../index/General.html">Everything</a></div><div class="MIndex MEntry"><a href="../../index/Classes.html">Classes</a></div><div class="MIndex MEntry"><a href="../../index/Files.html">Files</a></div><div class="MIndex MEntry"><a href="../../index/Functions.html">Functions</a></div><div class="MIndex MEntry"><a href="../../index/Properties.html">Properties</a></div><div class="MIndex MEntry"><a href="../../index/Variables.html">Variables</a></div></div></div><script type="text/javascript"><!-- | |
| 147 | -var searchPanel = new SearchPanel("searchPanel", "HTML", "../../search"); | |
| 148 | ---></script><div id=MSearchPanel class=MSearchPanelInactive><input type=text id=MSearchField value=Search onFocus="searchPanel.OnSearchFieldFocus(true)" onBlur="searchPanel.OnSearchFieldFocus(false)" onKeyUp="searchPanel.OnSearchFieldChange()"><select id=MSearchType onFocus="searchPanel.OnSearchTypeFocus(true)" onBlur="searchPanel.OnSearchTypeFocus(false)" onChange="searchPanel.OnSearchTypeChange()"><option id=MSearchEverything selected value="General">Everything</option><option value="Classes">Classes</option><option value="Files">Files</option><option value="Functions">Functions</option><option value="Properties">Properties</option><option value="Variables">Variables</option></select></div><div id=MSearchResultsWindow><iframe src="" frameborder=0 name=MSearchResults id=MSearchResults></iframe><a href="javascript:searchPanel.CloseResultsWindow()" id=MSearchResultsWindowClose>Close</a></div><script language=JavaScript><!-- | |
| 149 | -if (document.getElementById){for (var menu = 1; menu < 13; menu++){if (menu != 1 && menu != 3){document.getElementById("MGroupContent" + menu).style.display = "none";};};}// --></script></div><!--Menu--> | |
| 150 | - | |
| 151 | - | |
| 152 | - | |
| 153 | -<!--START_ND_TOOLTIPS--> | |
| 154 | -<div class=CToolTip id="tt1"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function cliqueCapturaPt()</td></tr></table></blockquote>Captura um ponto na tela e retorna o resultado para a janela interna que estiver aberta.</div></div><div class=CToolTip id="tt2"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function abreKml(</td><td class=PParameter nowrap>tema</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Abre a janela para mostrar o link de acesso a um tema via kml.</div></div><div class=CToolTip id="tt3"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function cliqueInserexy()</td></tr></table></blockquote>Insere um ponto no mapa na posição clicada</div></div><div class=CToolTip id="tt4"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function cliqueInseregrafico()</td></tr></table></blockquote>Insere um gráfico no mapa na posição clicada</div></div><div class=CToolTip id="tt5"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function cliqueInseretoponimo()</td></tr></table></blockquote>Insere um texto no mapa na posição clicada</div></div><div class=CToolTip id="tt6"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function cliqueMede()</td></tr></table></blockquote>Executa as operações de medição de distâncias.</div></div><div class=CToolTip id="tt7"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function cliqueArea()</td></tr></table></blockquote>Executa as operações de cálculo de área quando o usuário clica no mapa e a opção de cálculo estiver ativa</div></div><div class=CToolTip id="tt8"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function excluitemaf(</td><td class=PParameter nowrap>tema</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Exclui um tema do mapa</div></div><div class=CToolTip id="tt9"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function sobetemaf(</td><td class=PParameter nowrap>tema</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Sobe um tema na ordem de desenho</div></div><div class=CToolTip id="tt10"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function descetemaf(</td><td class=PParameter nowrap>tema</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Desce um tema na ordem de desenho</div></div><div class=CToolTip id="tt11"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function zoomtemaf(</td><td class=PParameter nowrap>tema</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Zoom para o tema</div></div><div class=CToolTip id="tt12"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function limpaseltemaf(</td><td class=PParameter nowrap>tema</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Limpa a selecao do tema</div></div><div class=CToolTip id="tt13"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function mudatranspf(</td><td class=PParameter nowrap>idtema</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Muda a transparencia de um tema</div></div><div class=CToolTip id="tt14"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function mudanomef(</td><td class=PParameter nowrap>idtema</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Muda o nome de um tema</div></div><div class=CToolTip id="tt15"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function graficotema(</td><td class=PParameter nowrap>idtema</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Adiciona gráficos automaticamente nos elementos de um tema</div></div><div class=CToolTip id="tt16"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function toponimiaf(</td><td class=PParameter nowrap>idtema</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Opções de toponímia de um tema.</div></div><div class=CToolTip id="tt17"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function filtrof(</td><td class=PParameter nowrap>idtema</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Opções de filtragem de um tema.</div></div><div class=CToolTip id="tt18"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function pontosdistri()</td></tr></table></blockquote>Abre a janela para executar análises de distribuição de pontos</div></div><div class=CToolTip id="tt19"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function pontoempoligono()</td></tr></table></blockquote>Abre a janela para cruzar um tema de pontos com um ou mais temas poligonais e gerar um novo tema</div></div><div class=CToolTip id="tt20"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function nptPol()</td></tr></table></blockquote>Abre a janela para cruzar um tema de pontos com um ou tema poligona e gerar um novo tema com o número de pontos em cada polígono</div></div><div class=CToolTip id="tt21"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function buffer()</td></tr></table></blockquote>Gera um buffer em elementos selecionados</div></div><div class=CToolTip id="tt22"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function distanciaptpt()</td></tr></table></blockquote>Abre a janela para calcular a distância entre um ponto e outros pontos próximos</div></div><div class=CToolTip id="tt23"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function centroide()</td></tr></table></blockquote>Abre a janela que gera um tema com os centroides dos elementos selecionados</div></div><div class=CToolTip id="tt24"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function dissolve()</td></tr></table></blockquote>Abre a janela que gera um tema dissolvendo as divisas entre polígonos.</div></div><div class=CToolTip id="tt25"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function agrupaElementos()</td></tr></table></blockquote>Abre a janela que gera um tema poligonal agrupando elementos de um tema.</div></div><div class=CToolTip id="tt26"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function analisaGeometrias()</td></tr></table></blockquote>Abre a janela com o sistema de análise de geometrias</div></div><div class=CToolTip id="tt27"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function mede()</td></tr></table></blockquote>Ativa a opção de medição de distâncias.</div></div><div class=CToolTip id="tt28"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function inserexy()</td></tr></table></blockquote>Ativa o botão de inserção de pontos (digitalização).</div></div><div class=CToolTip id="tt29"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function inseregrafico()</td></tr></table></blockquote>Ativa a opção de inserção de gráficos.</div></div><div class=CToolTip id="tt30"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function gradePontos()</td></tr></table></blockquote>Abre a janela que gera grade de pontos</div></div><div class=CToolTip id="tt31"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function gradeHex()</td></tr></table></blockquote>Abre a janela que gera grade de hexágonos</div></div><div class=CToolTip id="tt32"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function procuraratribf(</td><td class=PParameter nowrap>idtema</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Abre a janela com a opção de procurar elementos baseados nos atributos da tabela do tema</div></div><div class=CToolTip id="tt33"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function tabelaf(</td><td class=PParameter nowrap>idtema</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Abre a tabela com os atributos de um tema.</div></div><div class=CToolTip id="tt34"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function etiquetas(</td><td class=PParameter nowrap>idtema</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Abre a janela de configuração das etiquetas</div></div><div class=CToolTip id="tt35"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function abreCor(</td><td class=PParameter nowrap>janela,</td></tr><tr><td></td><td class=PParameter nowrap>elemento</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Abre a paleta de cores</div></div><div class=CToolTip id="tt36"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function editaLegenda(</td><td class=PParameter nowrap>idtema</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Abre a janela do editor de legenda de um tema</div></div><div class=CToolTip id="tt37"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function abreSistema(</td><td class=PParameter nowrap>endereco,</td></tr><tr><td></td><td class=PParameter nowrap>w,</td></tr><tr><td></td><td class=PParameter nowrap>h</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Abre em uma janela o programa escolhido pelo usuário e definido no menu de sistemas.</div></div><div class=CToolTip id="tt38"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function ativaHistoricoZoom(</td><td class=PParameter nowrap>iddiv</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Insere na interface a opção para mostrar o zoom anterior ou o próximo.</div></div><div class=CToolTip id="tt39"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function abreDoc()</td></tr></table></blockquote>Abre a documentacao do i3geo.</div></div><div class=CToolTip id="tt40"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>function download(</td><td class=PParameter nowrap>idtema</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Abre a janela que faz o download de um tema</div></div><div class=CToolTip id="tt41"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>function textofid()</td></tr></table></blockquote>Abre a ferramenta de inclusão de textos no mapa.</div></div><!--END_ND_TOOLTIPS--> | |
| 155 | - | |
| 156 | - | |
| 157 | - | |
| 158 | - | |
| 159 | -<script language=JavaScript><!-- | |
| 160 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | |
| 161 | 0 | \ No newline at end of file |
documentacao/search/FilesC.html
| ... | ... | @@ -1,20 +0,0 @@ |
| 1 | -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | |
| 2 | - | |
| 3 | -<html><head><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body id=SearchResultsPage onLoad="NDOnLoad()"><script language=JavaScript><!-- | |
| 4 | -if (browserType) {document.write("<div id=" + browserType + ">");if (browserVer) {document.write("<div id=" + browserVer + ">"); }}// --></script> | |
| 5 | - | |
| 6 | -<!-- Generated by Natural Docs, version Development Release 02-10-2007 (1.35 base) --> | |
| 7 | -<!-- http://www.naturaldocs.org --> | |
| 8 | - | |
| 9 | -<!-- saved from url=(0026)http://www.naturaldocs.org --> | |
| 10 | - | |
| 11 | - | |
| 12 | - | |
| 13 | - | |
| 14 | -<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_classe_undcalculo_perjs><div class=IEntry><a href="../files/classesjs/classe_calculo-js.html#classe_calculo.js" target=_parent class=ISymbol>classe_calculo.js</a></div></div><div class=SRResult id=SR_classe_undconfigura_perjs><div class=IEntry><a href="../files/classesjs/classe_configura-js.html#classe_configura.js" target=_parent class=ISymbol>classe_configura.js</a></div></div><div class=SRResult id=SR_classe_undeventos_perjs><div class=IEntry><a href="../files/classesjs/classe_eventos-js.html#classe_eventos.js" target=_parent class=ISymbol>classe_eventos.js</a></div></div><div class=SRResult id=SR_classe_undgadgets_perjs><div class=IEntry><a href="../files/classesjs/classe_gadgets-js.html#classe_gadgets.js" target=_parent class=ISymbol>classe_gadgets.js</a></div></div><div class=SRResult id=SR_classe_undguias_perjs><div class=IEntry><a href="../files/classesjs/classe_guias-js.html#classe_guias.js" target=_parent class=ISymbol>classe_guias.js</a></div></div><div class=SRResult id=SR_classe_undjanela_perjs><div class=IEntry><a href="../files/classesjs/classe_janela-js.html#classe_janela.js" target=_parent class=ISymbol>classe_janela.js</a></div></div><div class=SRResult id=SR_classe_undmapa_perjs><div class=IEntry><a href="../files/classesjs/classe_mapa-js.html#classe_mapa.js" target=_parent class=ISymbol>classe_mapa.js</a></div></div><div class=SRResult id=SR_classe_undmaparef_perjs><div class=IEntry><a href="../files/classesjs/classe_maparef-js.html#classe_maparef.js" target=_parent class=ISymbol>classe_maparef.js</a></div></div><div class=SRResult id=SR_classe_undutil_perjs><div class=IEntry><a href="../files/classesjs/classe_util-js.html#classe_util.js" target=_parent class=ISymbol>classe_util.js</a></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!-- | |
| 15 | -document.getElementById("Loading").style.display="none"; | |
| 16 | -document.getElementById("NoMatches").style.display="none"; | |
| 17 | -var searchResults = new SearchResults("searchResults", "HTML"); | |
| 18 | -searchResults.Search(); | |
| 19 | ---></script></div><script language=JavaScript><!-- | |
| 20 | -if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> | |
| 21 | 0 | \ No newline at end of file |
ferramentas/adminnovomapfile/index.js
ferramentas/agrupaelementos/index.js
| ... | ... | @@ -82,7 +82,7 @@ function calcula() |
| 82 | 82 | if (retorno.data==undefined ) |
| 83 | 83 | {$i("fim").innerHTML = "Erro. A operação demorou muito.";} |
| 84 | 84 | else |
| 85 | - {window.parent.ajaxredesenha("");} | |
| 85 | + {window.parent.i3GEO.atualiza("");} | |
| 86 | 86 | } |
| 87 | 87 | var p = g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid+"&funcao=agrupaElementos&tema="+tema+"&item="+item |
| 88 | 88 | var cp = new cpaint(); | ... | ... |
ferramentas/analisageometrias/index.js
| ... | ... | @@ -52,7 +52,7 @@ comboTemasLigados("comboTemas",function(retorno) |
| 52 | 52 | $i("temas").innerHTML = retorno.dados |
| 53 | 53 | aguarde("none") |
| 54 | 54 | $i("comboTemas").onchange = function() |
| 55 | - {window.parent.objmapa.temaAtivo = $i("comboTemas").value} | |
| 55 | + {window.parent.i3GEO.temaAtivo = $i("comboTemas").value} | |
| 56 | 56 | },"temas") |
| 57 | 57 | |
| 58 | 58 | YAHOO.example.init = function () |
| ... | ... | @@ -78,7 +78,7 @@ function operacao(tipo) |
| 78 | 78 | //cp.set_debug(2) |
| 79 | 79 | cp.set_response_type("JSON"); |
| 80 | 80 | window.parent.g_operacao = "selecao" |
| 81 | - cp.call(p,"selecaoPT",window.parent.ajaxredesenha); | |
| 81 | + cp.call(p,"selecaoPT",window.parent.i3GEO.atualiza); | |
| 82 | 82 | } |
| 83 | 83 | } |
| 84 | 84 | //captura as geometrias selecionadas e grava em arquivos | ... | ... |
ferramentas/buffer/index.js
| ... | ... | @@ -73,7 +73,7 @@ function criarbuffer() |
| 73 | 73 | if (retorno.data==undefined ) |
| 74 | 74 | {$i("fim").innerHTML = "Erro. A operação demorou muito.";} |
| 75 | 75 | else |
| 76 | - {window.parent.ajaxredesenha("");} | |
| 76 | + {window.parent.i3GEO.atualiza("");} | |
| 77 | 77 | } |
| 78 | 78 | var p = g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid+"&funcao=criabuffer&tema="+tema+"&distancia="+distancia+"&unir="+$i("unir").value |
| 79 | 79 | var cp = new cpaint(); | ... | ... |
ferramentas/buscafotos/index.js
| ... | ... | @@ -51,7 +51,7 @@ function busca(pagina) |
| 51 | 51 | escondexy(); |
| 52 | 52 | if (window.parent.objmapa) |
| 53 | 53 | { |
| 54 | - if (window.parent.objmapa.scale > 150001) | |
| 54 | + if (window.parent.i3GEO.parametros.mapscale > 150001) | |
| 55 | 55 | { |
| 56 | 56 | var ins = "Aproxime mais o mapa <br>(pelo menos até a escala 1:150.000)!"; |
| 57 | 57 | ins += "<br><br><div style=width:80px onclick='ajustarescala()' ><input id=botao1 size=20 type=button value='Ajustar escala' /></div>" |
| ... | ... | @@ -72,7 +72,7 @@ function busca(pagina) |
| 72 | 72 | if($i("buscaflickr").checked) |
| 73 | 73 | { |
| 74 | 74 | $i("f").style.display="block" |
| 75 | - var p = g_locaplic+"/ferramentas/buscafotos/funcoes.php?funcao=listafotosflickr&ret="+window.parent.objmapa.extent+"&key="+key+"&texto="+texto+"&ai="+ai+"&af="+af+"&page="+pagina; | |
| 75 | + var p = g_locaplic+"/ferramentas/buscafotos/funcoes.php?funcao=listafotosflickr&ret="+window.parent.i3GEO.parametros.mapexten+"&key="+key+"&texto="+texto+"&ai="+ai+"&af="+af+"&page="+pagina; | |
| 76 | 76 | cp.call(p,"listafotosflickr",listafotosflickr); |
| 77 | 77 | } |
| 78 | 78 | if($i("buscapanoramio").checked) |
| ... | ... | @@ -81,7 +81,7 @@ function busca(pagina) |
| 81 | 81 | $i("paginas").innerHTML = pagina+50; |
| 82 | 82 | var ai = pagina |
| 83 | 83 | var af = pagina+50 |
| 84 | - var p = g_locaplic+"/ferramentas/buscafotos/funcoes.php?funcao=listafotospanoramio&ret="+window.parent.objmapa.extent+"&ai="+ai+"&af="+af; | |
| 84 | + var p = g_locaplic+"/ferramentas/buscafotos/funcoes.php?funcao=listafotospanoramio&ret="+window.parent.i3GEO.parametros.mapexten+"&ai="+ai+"&af="+af; | |
| 85 | 85 | cp.call(p,"listafotospanoramio",listafotospanoramio); |
| 86 | 86 | } |
| 87 | 87 | if($i("buscalocr").checked) |
| ... | ... | @@ -90,7 +90,7 @@ function busca(pagina) |
| 90 | 90 | $i("paginas").innerHTML = pagina+50; |
| 91 | 91 | var ai = pagina |
| 92 | 92 | var af = pagina+50 |
| 93 | - var p = g_locaplic+"/ferramentas/buscafotos/funcoes.php?funcao=listafotoslocr&ret="+window.parent.objmapa.extent+"&ai="+ai+"&af="+af; | |
| 93 | + var p = g_locaplic+"/ferramentas/buscafotos/funcoes.php?funcao=listafotoslocr&ret="+window.parent.i3GEO.parametros.mapexten+"&ai="+ai+"&af="+af; | |
| 94 | 94 | cp.call(p,"listafotoslocr",listafotoslocr); |
| 95 | 95 | } |
| 96 | 96 | |
| ... | ... | @@ -212,7 +212,7 @@ function listafotoslocr(retorno) |
| 212 | 212 | function mostraxy(xy) |
| 213 | 213 | { |
| 214 | 214 | var xy = xy.split(",") |
| 215 | - var xy = window.parent.i3GEO.calculo.dd2tela(xy[1]*1,xy[0]*1,window.parent.document,window.parent.objmapa.extent,window.parent.objmapa.cellsize) | |
| 215 | + var xy = window.parent.i3GEO.calculo.dd2tela(xy[1]*1,xy[0]*1,window.parent.document,window.parent.i3GEO.parametros.mapexten,window.parent.i3GEO.parametros.pixelsize) | |
| 216 | 216 | var box = window.parent.$i("boxpin") |
| 217 | 217 | box.style.display = "block" |
| 218 | 218 | box.style.width = "21px" |
| ... | ... | @@ -237,7 +237,7 @@ function ajustarescala() |
| 237 | 237 | cp.set_response_type("JSON"); |
| 238 | 238 | //cp.set_debug(2) |
| 239 | 239 | var p = g_locaplic+"/classesphp/mapa_controle.php?funcao=mudaescala&g_sid="+g_sid+"&escala=150000"; |
| 240 | - cp.call(p,"mudaescala",window.parent.ajaxredesenha); | |
| 240 | + cp.call(p,"mudaescala",window.parent.i3GEO.atualiza); | |
| 241 | 241 | } |
| 242 | 242 | function esconde(obj) |
| 243 | 243 | { | ... | ... |
ferramentas/buscarapida/index.js
| ... | ... | @@ -104,9 +104,9 @@ function adicionatema(obj) |
| 104 | 104 | { |
| 105 | 105 | if (obj.checked) |
| 106 | 106 | { |
| 107 | - window.parent.objaguarde.abre("ajaxredesenha","Aguarde..."); | |
| 107 | + window.parent.objaguarde.abre("i3GEO.atualiza","Aguarde..."); | |
| 108 | 108 | var temp = function() |
| 109 | - {window.parent.ajaxredesenha("");} | |
| 109 | + {window.parent.i3GEO.atualiza("");} | |
| 110 | 110 | var p = window.parent.g_locaplic+"/classesphp/mapa_controle.php?funcao=adtema&temas="+obj.value+"&g_sid="+g_sid; |
| 111 | 111 | var cp = new cpaint(); |
| 112 | 112 | //cp.set_debug(2) |
| ... | ... | @@ -134,8 +134,8 @@ function mostraxy(wkt) |
| 134 | 134 | y.sort(sortNumber) |
| 135 | 135 | yMin = y[0] |
| 136 | 136 | yMax = y[(y.length)-1] |
| 137 | - var xyMin = window.parent.i3GEO.calculo.dd2tela(xMin,yMin,window.parent.document,window.parent.objmapa.extent,window.parent.objmapa.cellsize) | |
| 138 | - var xyMax = window.parent.i3GEO.calculo.dd2tela(xMax,yMax,window.parent.document,window.parent.objmapa.extent,window.parent.objmapa.cellsize) | |
| 137 | + var xyMin = window.parent.i3GEO.calculo.dd2tela(xMin,yMin,window.parent.document,window.parent.i3GEO.parametros.mapexten,window.parent.i3GEO.parametros.pixelsize) | |
| 138 | + var xyMax = window.parent.i3GEO.calculo.dd2tela(xMax,yMax,window.parent.document,window.parent.i3GEO.parametros.mapexten,window.parent.i3GEO.parametros.pixelsize) | |
| 139 | 139 | window.parent.i3GEO.util.criaBox("boxg") |
| 140 | 140 | var box = window.parent.$i("boxg") |
| 141 | 141 | var w = xyMax[0]-xyMin[0] |
| ... | ... | @@ -159,7 +159,7 @@ function zoom(wkt,layer,gid,nm) |
| 159 | 159 | var cp = new cpaint(); |
| 160 | 160 | //cp.set_debug(2) |
| 161 | 161 | cp.set_response_type("JSON"); |
| 162 | - cp.call(p,"mudaExtensao",window.parent.ajaxredesenha); | |
| 162 | + cp.call(p,"mudaExtensao",window.parent.i3GEO.atualiza); | |
| 163 | 163 | } |
| 164 | 164 | var re = new RegExp("POLYGON", "g") |
| 165 | 165 | wkt = wkt.replace(re,"") |
| ... | ... | @@ -180,7 +180,7 @@ function zoom(wkt,layer,gid,nm) |
| 180 | 180 | yMin = y[0] |
| 181 | 181 | yMax = y[(y.length)-1] |
| 182 | 182 | var ext = xMin+" "+yMin+" "+xMax+" "+yMax |
| 183 | - window.parent.objaguarde.abre("ajaxredesenha","Aguarde..."); | |
| 183 | + window.parent.objaguarde.abre("i3GEO.atualiza","Aguarde..."); | |
| 184 | 184 | var p = g_locaplic+"/classesphp/mapa_controle.php?funcao=mudaext&ext="+ext+"&g_sid="+g_sid; |
| 185 | 185 | var cp = new cpaint(); |
| 186 | 186 | //cp.set_debug(2) | ... | ... |
ferramentas/centroide/index.js
| ... | ... | @@ -57,7 +57,7 @@ function criarcentroide() |
| 57 | 57 | if (retorno.data==undefined ) |
| 58 | 58 | {$i("fim").innerHTML = "Erro. A operação demorou muito.";} |
| 59 | 59 | else |
| 60 | - {window.parent.ajaxredesenha("");} | |
| 60 | + {window.parent.i3GEO.atualiza("");} | |
| 61 | 61 | } |
| 62 | 62 | aguarde("block") |
| 63 | 63 | tema = $i("temasComSel").value | ... | ... |
ferramentas/conectargeorss/index.js
| ... | ... | @@ -87,7 +87,7 @@ function adicionatema(id) |
| 87 | 87 | var redesenha = function() |
| 88 | 88 | { |
| 89 | 89 | aguarde("none") |
| 90 | - window.parent.ajaxredesenha("") | |
| 90 | + window.parent.i3GEO.atualiza("") | |
| 91 | 91 | } |
| 92 | 92 | var p = g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid+"&funcao=adicionaTemaGeoRSS&canal="+id+"&servico="+$i("servico").value |
| 93 | 93 | var cp = new cpaint(); | ... | ... |
ferramentas/conectarwfs/index.js
ferramentas/conectarwms/index.js
| ... | ... | @@ -145,7 +145,7 @@ function adiciona() |
| 145 | 145 | if(retorno.data != "ok") |
| 146 | 146 | {alert("Ooops! Problemas ao acessar o serviço.");aguarde("none");} |
| 147 | 147 | else |
| 148 | - {window.parent.ajaxredesenha()} | |
| 148 | + {window.parent.i3GEO.atualiza()} | |
| 149 | 149 | } |
| 150 | 150 | aguarde("block"); |
| 151 | 151 | var tiporep = $i("tiporep").value | ... | ... |
ferramentas/confluence/index.js
| ... | ... | @@ -26,7 +26,7 @@ buscaconfluence() |
| 26 | 26 | function buscaconfluence() |
| 27 | 27 | { |
| 28 | 28 | $i("resultadoconfluence").innerHTML = "Aguarde..."; |
| 29 | - if (window.parent.objmapa.scale > 2000001) | |
| 29 | + if (window.parent.i3GEO.parametros.mapscale > 2000001) | |
| 30 | 30 | { |
| 31 | 31 | var ins = "Aproxime mais o mapa (pelo menos até a escala 1:2.000.000)!"; |
| 32 | 32 | ins += "<br><br><div onclick='ajustarescala()' ><input id=botao1 size=20 type=button value='Ajustar escala' /></div>" |
| ... | ... | @@ -39,7 +39,7 @@ function buscaconfluence() |
| 39 | 39 | }() |
| 40 | 40 | return; |
| 41 | 41 | } |
| 42 | - var ext = window.parent.objmapa.extent | |
| 42 | + var ext = window.parent.i3GEO.parametros.mapexten | |
| 43 | 43 | ext = ext.split(" ") |
| 44 | 44 | var xini = parseInt(ext[0]) |
| 45 | 45 | var yini = parseInt(ext[1]) |
| ... | ... | @@ -79,7 +79,7 @@ function buscaconfluence() |
| 79 | 79 | function mostraxy(xy) |
| 80 | 80 | { |
| 81 | 81 | var xy = xy.split(",") |
| 82 | - var xy = window.parent.i3GEO.calculo.dd2tela(xy[1]*1,xy[0]*1,window.parent.document,window.parent.objmapa.extent,window.parent.objmapa.cellsize) | |
| 82 | + var xy = window.parent.i3GEO.calculo.dd2tela(xy[1]*1,xy[0]*1,window.parent.document,window.parent.i3GEO.parametros.mapexten,window.parent.i3GEO.parametros.pixelsize) | |
| 83 | 83 | var box = window.parent.$i("boxg") |
| 84 | 84 | box.style.display = "block" |
| 85 | 85 | box.style.width = "5px" |
| ... | ... | @@ -100,5 +100,5 @@ function ajustarescala() |
| 100 | 100 | cp.set_response_type("JSON"); |
| 101 | 101 | //cp.set_debug(2) |
| 102 | 102 | var p = g_locaplic+"/classesphp/mapa_controle.php?funcao=mudaescala&g_sid="+g_sid+"&escala=2000000"; |
| 103 | - cp.call(p,"mudaescala",window.parent.ajaxredesenha); | |
| 103 | + cp.call(p,"mudaescala",window.parent.i3GEO.atualiza); | |
| 104 | 104 | } |
| 105 | 105 | \ No newline at end of file | ... | ... |
ferramentas/dissolve/index.js
| ... | ... | @@ -82,7 +82,7 @@ function calcula() |
| 82 | 82 | if (retorno.data==undefined ) |
| 83 | 83 | {$i("fim").innerHTML = "Erro. A operação demorou muito.";} |
| 84 | 84 | else |
| 85 | - {window.parent.ajaxredesenha("");} | |
| 85 | + {window.parent.i3GEO.atualiza("");} | |
| 86 | 86 | } |
| 87 | 87 | var p = g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid+"&funcao=dissolvePoligono&tema="+tema+"&item="+item |
| 88 | 88 | var cp = new cpaint(); | ... | ... |
ferramentas/filtro/index.js
| ... | ... | @@ -128,7 +128,7 @@ function aplicaFiltro(testa) |
| 128 | 128 | cp.call(p,"insereFiltro",monta); |
| 129 | 129 | } |
| 130 | 130 | else |
| 131 | - {cp.call(p,"insereFiltro",window.parent.ajaxredesenha);} | |
| 131 | + {cp.call(p,"insereFiltro",window.parent.i3GEO.atualiza);} | |
| 132 | 132 | } |
| 133 | 133 | $i("limpar").onclick = function() |
| 134 | 134 | { |
| ... | ... | @@ -140,7 +140,7 @@ $i("limpar").onclick = function() |
| 140 | 140 | cp.set_response_type("JSON"); |
| 141 | 141 | aguarde("none"); |
| 142 | 142 | window.parent.g_operacao = "outras" |
| 143 | - cp.call(p,"insereFiltro",window.parent.ajaxredesenha); | |
| 143 | + cp.call(p,"insereFiltro",window.parent.i3GEO.atualiza); | |
| 144 | 144 | } |
| 145 | 145 | //cria o combo com os itens |
| 146 | 146 | function montaComboItens() | ... | ... |
ferramentas/funcoes.js
| ... | ... | @@ -782,7 +782,7 @@ function parametrosURL() |
| 782 | 782 | //faz o zoom no mapa para uma extensao |
| 783 | 783 | function zoomf(ext) |
| 784 | 784 | { |
| 785 | - window.parent.objaguarde.abre("ajaxredesenha",window.parent.$trad("o1")); | |
| 785 | + window.parent.objaguarde.abre("i3GEO.atualiza",window.parent.$trad("o1")); | |
| 786 | 786 | //faz um zoom na ocorrencia |
| 787 | 787 | var p = g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid+"&funcao=mudaext&ext="+ext; |
| 788 | 788 | var cp = new cpaint(); |
| ... | ... | @@ -793,7 +793,7 @@ function zoomf(ext) |
| 793 | 793 | //localiza um ponto no mapa no centro de uma extensao |
| 794 | 794 | function pinf(ext) |
| 795 | 795 | { |
| 796 | - window.parent.objaguarde.abre("ajaxredesenha",window.parent.$trad("o1")); | |
| 796 | + window.parent.objaguarde.abre("i3GEO.atualiza",window.parent.$trad("o1")); | |
| 797 | 797 | // mostra um ponto vermelho na ocorrência |
| 798 | 798 | valores = ext.split(" "); |
| 799 | 799 | vx = (valores[0] * 1) + ((((valores[0] * -1) - (valores[2] * -1)) / 2) * 1); |
| ... | ... | @@ -802,7 +802,7 @@ function pinf(ext) |
| 802 | 802 | var cp = new cpaint(); |
| 803 | 803 | //cp.set_debug(2) |
| 804 | 804 | cp.set_response_type("JSON"); |
| 805 | - cp.call(p,"zoomPonto",window.parent.ajaxredesenha); | |
| 805 | + cp.call(p,"zoomPonto",window.parent.i3GEO.atualiza); | |
| 806 | 806 | } |
| 807 | 807 | function convdmsddf(g,m,s) |
| 808 | 808 | { | ... | ... |
ferramentas/gradecoord/index.js
| ... | ... | @@ -39,7 +39,7 @@ function executa() |
| 39 | 39 | var temp = function() |
| 40 | 40 | { |
| 41 | 41 | aguarde("none") |
| 42 | - window.parent.ajaxredesenha("") | |
| 42 | + window.parent.i3GEO.atualiza("") | |
| 43 | 43 | } |
| 44 | 44 | aguarde("block") |
| 45 | 45 | var p = g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid+"&funcao=gradeCoord" | ... | ... |
ferramentas/gradehex/index.js
| ... | ... | @@ -100,7 +100,7 @@ function criargrade() |
| 100 | 100 | if (retorno.data==undefined ) |
| 101 | 101 | {$i("fim").innerHTML = "Erro. A operação demorou muito.";} |
| 102 | 102 | else |
| 103 | - {window.parent.ajaxredesenha("");} | |
| 103 | + {window.parent.i3GEO.atualiza("");} | |
| 104 | 104 | } |
| 105 | 105 | aguarde("block") |
| 106 | 106 | var p = g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid+"&funcao=gradedehex&xdd="+dx+"&ydd="+dy+"&px="+ix+"&py="+iy+"&nptx="+nptx+"&npty="+npty | ... | ... |
ferramentas/gradepol/index.js
| ... | ... | @@ -101,7 +101,7 @@ function criargrade() |
| 101 | 101 | if (retorno.data==undefined ) |
| 102 | 102 | {$i("fim").innerHTML = "Erro. A operação demorou muito.";} |
| 103 | 103 | else |
| 104 | - {window.parent.ajaxredesenha("");} | |
| 104 | + {window.parent.i3GEO.atualiza("");} | |
| 105 | 105 | } |
| 106 | 106 | var p = g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid+"&funcao=gradedepol&xdd="+dx+"&ydd="+dy+"&px="+ix+"&py="+iy+"&nptx="+nptx+"&npty="+npty |
| 107 | 107 | var cp = new cpaint(); | ... | ... |
ferramentas/gradepontos/index.js
| ... | ... | @@ -100,7 +100,7 @@ function criargrade() |
| 100 | 100 | if (retorno.data==undefined ) |
| 101 | 101 | {$i("fim").innerHTML = "Erro. A operação demorou muito.";} |
| 102 | 102 | else |
| 103 | - {window.parent.ajaxredesenha("");} | |
| 103 | + {window.parent.i3GEO.atualiza("");} | |
| 104 | 104 | } |
| 105 | 105 | aguarde("block") |
| 106 | 106 | var p = g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid+"&funcao=gradedepontos&xdd="+dx+"&ydd="+dy+"&px="+ix+"&py="+iy+"&nptx="+nptx+"&npty="+npty | ... | ... |
ferramentas/graficotema/index.js
| ... | ... | @@ -126,7 +126,7 @@ function criar() |
| 126 | 126 | var temp = function(retorno) |
| 127 | 127 | { |
| 128 | 128 | aguarde("none") |
| 129 | - window.parent.ajaxredesenha(retorno) | |
| 129 | + window.parent.i3GEO.atualiza(retorno) | |
| 130 | 130 | } |
| 131 | 131 | var p = g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid+"&funcao=graficotema&tema="+tema+"&lista="+lista+"&tamanho="+tamanho+"&tipo="+tipo+"&outlinecolor="+outlinecolor+"&offset="+offset |
| 132 | 132 | var cp = new cpaint(); | ... | ... |
ferramentas/identifica/index.js
| ... | ... | @@ -115,13 +115,13 @@ function listaTemasLigados() |
| 115 | 115 | } |
| 116 | 116 | $i("resultado").innerHTML = linhas+"<table class=lista ><tr><td style=text-align:left ><input onclick='identifica(\"ligados\")' style=cursor:pointer type=radio name=tema /></td><td>Todos</td></tr>"+linhas1+"</table>" |
| 117 | 117 | //verifica se existem sistemas para identificar |
| 118 | - g_locidentifica = window.parent.g_locidentifica | |
| 118 | + g_locidentifica = window.parent.i3GEO.parametros.locidentifica | |
| 119 | 119 | if (g_locidentifica != "") |
| 120 | 120 | { |
| 121 | 121 | sistemasAdicionais = new Array() |
| 122 | 122 | i3GEO.util.ajaxexecASXml(g_locidentifica,"pegavalSistemas") |
| 123 | 123 | } |
| 124 | - if (window.parent.objmapa.temaAtivo == "") | |
| 124 | + if (window.parent.i3GEO.temaAtivo == "") | |
| 125 | 125 | { |
| 126 | 126 | var temp = ""; |
| 127 | 127 | for (l=0;l<lista.length;l++) |
| ... | ... | @@ -132,7 +132,7 @@ function listaTemasLigados() |
| 132 | 132 | identifica(temp) |
| 133 | 133 | } |
| 134 | 134 | else |
| 135 | - {identifica(window.parent.objmapa.temaAtivo)} | |
| 135 | + {identifica(window.parent.i3GEO.temaAtivo)} | |
| 136 | 136 | }; |
| 137 | 137 | var p = g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid+"&funcao=listatemas&opcao=ligados" |
| 138 | 138 | var cp = new cpaint(); |
| ... | ... | @@ -170,7 +170,7 @@ function identifica(tema) |
| 170 | 170 | { |
| 171 | 171 | aguarde("block") |
| 172 | 172 | var resolucao = $i("resolucao").value; |
| 173 | - window.parent.objmapa.temaAtivo = tema; | |
| 173 | + window.parent.i3GEO.temaAtivo = tema; | |
| 174 | 174 | var temp = $i("xy").innerHTML |
| 175 | 175 | var tempy = temp.split("y: ") |
| 176 | 176 | ypt = tempy[1] | ... | ... |
ferramentas/imprimir/janelas.js
| ... | ... | @@ -10,7 +10,7 @@ document.body.appendChild(novoel); |
| 10 | 10 | var g_sid=window.opener.parent.g_sid |
| 11 | 11 | var corpo = window.opener.parent.document.getElementById("img").src |
| 12 | 12 | var legenda = window.opener.parent.g_legendaHTML |
| 13 | -var escalanumerica = window.opener.parent.objmapa.scale | |
| 13 | +var escalanumerica = window.opener.parent.i3GEO.parametros.mapscale | |
| 14 | 14 | |
| 15 | 15 | document.getElementById("mapa").innerHTML = "<img src="+corpo+" />" |
| 16 | 16 | document.getElementById("legenda").innerHTML = legenda | ... | ... |
ferramentas/inserexy/index.js
| ... | ... | @@ -116,7 +116,7 @@ function aplicar(tipo) |
| 116 | 116 | var cp = new cpaint(); |
| 117 | 117 | //cp.set_debug(2) |
| 118 | 118 | cp.set_response_type("JSON"); |
| 119 | - cp.call(p,"insereFeature",window.parent.ajaxredesenha); | |
| 119 | + cp.call(p,"insereFeature",window.parent.i3GEO.atualiza); | |
| 120 | 120 | } |
| 121 | 121 | //insere um ponto digitando os valores dms |
| 122 | 122 | function inserir() | ... | ... |
ferramentas/inserexy2/index.js
| ... | ... | @@ -133,7 +133,7 @@ function criaLin() |
| 133 | 133 | cp.set_response_type("JSON"); |
| 134 | 134 | //cp.set_debug(2) |
| 135 | 135 | var p = g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid+"&funcao=sphPT2shp¶=linha&tema="+window.parent.g_nomepin; |
| 136 | - cp.call(p,"sphPT2shp",window.parent.ajaxredesenha); | |
| 136 | + cp.call(p,"sphPT2shp",window.parent.i3GEO.atualiza); | |
| 137 | 137 | } |
| 138 | 138 | //converte o tema para poligonal |
| 139 | 139 | function criaPol() |
| ... | ... | @@ -142,7 +142,7 @@ function criaPol() |
| 142 | 142 | cp.set_response_type("JSON"); |
| 143 | 143 | //cp.set_debug(2) |
| 144 | 144 | var p = g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid+"&funcao=sphPT2shp¶=poligono&tema="+window.parent.g_nomepin; |
| 145 | - cp.call(p,"sphPT2shp",window.parent.ajaxredesenha); | |
| 145 | + cp.call(p,"sphPT2shp",window.parent.i3GEO.atualiza); | |
| 146 | 146 | } |
| 147 | 147 | //cria um novo tema editavel |
| 148 | 148 | function criatemaeditavel() |
| ... | ... | @@ -166,7 +166,7 @@ function ativanovotema(retorno) |
| 166 | 166 | if (window.parent.$i("openlayers")) |
| 167 | 167 | {window.parent.atualizaOL();} |
| 168 | 168 | else |
| 169 | - {window.parent.ajaxredesenha("")} | |
| 169 | + {window.parent.i3GEO.atualiza("")} | |
| 170 | 170 | } |
| 171 | 171 | else |
| 172 | 172 | {$i("shapefile").innerHTML = "<p style=color:red >Ocorreu um erro<br>"} |
| ... | ... | @@ -261,7 +261,7 @@ function inserir() |
| 261 | 261 | ins = ins + "<div style='display:block;position:relative;top:5px;left:0px;font-size:12px' >" + xxx +" " + yyy + "</div><br>" |
| 262 | 262 | $i("resultado").innerHTML = ins |
| 263 | 263 | var fim = function() |
| 264 | - {aguarde("none");window.parent.ajaxredesenha("");} | |
| 264 | + {aguarde("none");window.parent.i3GEO.atualiza("");} | |
| 265 | 265 | |
| 266 | 266 | var inputs = $i("listaepsg").getElementsByTagName("input") |
| 267 | 267 | var listai = new Array; |
| ... | ... | @@ -308,7 +308,7 @@ function colar() |
| 308 | 308 | var cp = new cpaint(); |
| 309 | 309 | //cp.set_debug(2) |
| 310 | 310 | cp.set_response_type("JSON"); |
| 311 | - cp.call(p,"insereSHP",window.parent.ajaxredesenha); | |
| 311 | + cp.call(p,"insereSHP",window.parent.i3GEO.atualiza); | |
| 312 | 312 | var ins = $i("resultado").innerHTML |
| 313 | 313 | var n = new Array() |
| 314 | 314 | for (i = 0;i < xys.length; i = i + 1) | ... | ... |
ferramentas/legenda/index.js
| ... | ... | @@ -198,14 +198,14 @@ function aplicaProcessos() |
| 198 | 198 | var cp = new cpaint(); |
| 199 | 199 | //cp.set_debug(2) |
| 200 | 200 | cp.set_response_type("JSON"); |
| 201 | - cp.call(p,"aplicaProcessos",window.parent.ajaxredesenha); | |
| 201 | + cp.call(p,"aplicaProcessos",window.parent.i3GEO.atualiza); | |
| 202 | 202 | } |
| 203 | 203 | function inverteCores() |
| 204 | 204 | { |
| 205 | 205 | var retornapaleta = function() |
| 206 | 206 | { |
| 207 | 207 | aguarde("none") |
| 208 | - window.parent.ajaxredesenha(""); | |
| 208 | + window.parent.i3GEO.atualiza(""); | |
| 209 | 209 | window.parent.i3GEO.arvoreDeCamadas.atualizaLegenda(tema); |
| 210 | 210 | mostralegenda(); |
| 211 | 211 | } |
| ... | ... | @@ -221,7 +221,7 @@ function calculaTamanho() |
| 221 | 221 | var retornapaleta = function() |
| 222 | 222 | { |
| 223 | 223 | aguarde("none") |
| 224 | - window.parent.ajaxredesenha(""); | |
| 224 | + window.parent.i3GEO.atualiza(""); | |
| 225 | 225 | window.parent.i3GEO.arvoreDeCamadas.atualizaLegenda(tema); |
| 226 | 226 | mostralegenda(); |
| 227 | 227 | } |
| ... | ... | @@ -244,7 +244,7 @@ function valorU() |
| 244 | 244 | var fim = function() |
| 245 | 245 | { |
| 246 | 246 | aguarde("none") |
| 247 | - window.parent.ajaxredesenha(""); | |
| 247 | + window.parent.i3GEO.atualiza(""); | |
| 248 | 248 | window.parent.i3GEO.arvoreDeCamadas.atualizaLegenda(tema); |
| 249 | 249 | } |
| 250 | 250 | cp.set_response_type("JSON"); |
| ... | ... | @@ -260,7 +260,7 @@ function simbU() |
| 260 | 260 | var fim = function() |
| 261 | 261 | { |
| 262 | 262 | aguarde("none") |
| 263 | - window.parent.ajaxredesenha(""); | |
| 263 | + window.parent.i3GEO.atualiza(""); | |
| 264 | 264 | window.parent.i3GEO.arvoreDeCamadas.atualizaLegenda(tema); |
| 265 | 265 | } |
| 266 | 266 | cp.set_response_type("JSON"); |
| ... | ... | @@ -279,7 +279,7 @@ function valorC() |
| 279 | 279 | var fim = function() |
| 280 | 280 | { |
| 281 | 281 | aguarde("none") |
| 282 | - window.parent.ajaxredesenha(""); | |
| 282 | + window.parent.i3GEO.atualiza(""); | |
| 283 | 283 | window.parent.i3GEO.arvoreDeCamadas.atualizaLegenda(tema); |
| 284 | 284 | } |
| 285 | 285 | //cp.set_debug(2) |
| ... | ... | @@ -300,7 +300,7 @@ function valorQ() |
| 300 | 300 | var fim = function() |
| 301 | 301 | { |
| 302 | 302 | aguarde("none") |
| 303 | - window.parent.ajaxredesenha(""); | |
| 303 | + window.parent.i3GEO.atualiza(""); | |
| 304 | 304 | window.parent.i3GEO.arvoreDeCamadas.atualizaLegenda(tema); |
| 305 | 305 | } |
| 306 | 306 | cp.set_response_type("JSON"); |
| ... | ... | @@ -316,7 +316,7 @@ function representacao() |
| 316 | 316 | var fim = function() |
| 317 | 317 | { |
| 318 | 318 | aguarde("none") |
| 319 | - window.parent.ajaxredesenha(""); | |
| 319 | + window.parent.i3GEO.atualiza(""); | |
| 320 | 320 | window.parent.i3GEO.arvoreDeCamadas.atualizaLegenda(tema); |
| 321 | 321 | } |
| 322 | 322 | cp.set_response_type("JSON"); |
| ... | ... | @@ -370,7 +370,7 @@ function mudaLegenda() |
| 370 | 370 | function aplicaRedesenha() |
| 371 | 371 | { |
| 372 | 372 | mostralegenda() |
| 373 | - window.parent.ajaxredesenha('') | |
| 373 | + window.parent.i3GEO.atualiza('') | |
| 374 | 374 | window.parent.i3GEO.arvoreDeCamadas.atualizaLegenda(tema); |
| 375 | 375 | } |
| 376 | 376 | //adiciona totalização no nome da classe |
| ... | ... | @@ -514,7 +514,7 @@ function aplicaEstilo() |
| 514 | 514 | var fim = function() |
| 515 | 515 | { |
| 516 | 516 | aguarde("none") |
| 517 | - window.parent.ajaxredesenha(""); | |
| 517 | + window.parent.i3GEO.atualiza(""); | |
| 518 | 518 | window.parent.i3GEO.arvoreDeCamadas.atualizaLegenda(tema); |
| 519 | 519 | } |
| 520 | 520 | //cp.set_debug(2) |
| ... | ... | @@ -570,7 +570,7 @@ function paleta() |
| 570 | 570 | var retornapaleta = function() |
| 571 | 571 | { |
| 572 | 572 | aguarde("none") |
| 573 | - window.parent.ajaxredesenha(""); | |
| 573 | + window.parent.i3GEO.atualiza(""); | |
| 574 | 574 | window.parent.i3GEO.arvoreDeCamadas.atualizaLegenda(tema); |
| 575 | 575 | mostralegenda(); |
| 576 | 576 | } | ... | ... |
ferramentas/mostraexten/index.js
| ... | ... | @@ -41,7 +41,7 @@ YAHOO.example.init = function () |
| 41 | 41 | } |
| 42 | 42 | YAHOO.util.Event.onContentReady("botao1", onPushButtonsMarkupReady); |
| 43 | 43 | }() |
| 44 | -$i("extatual").innerHTML = window.parent.objmapa.extent | |
| 44 | +$i("extatual").innerHTML = window.parent.i3GEO.parametros.mapexten | |
| 45 | 45 | function aplicar() |
| 46 | 46 | { |
| 47 | 47 | try |
| ... | ... | @@ -50,7 +50,7 @@ function aplicar() |
| 50 | 50 | { |
| 51 | 51 | eval(retorno.data) |
| 52 | 52 | $i("extatual").innerHTML = mapexten |
| 53 | - window.parent.ajaxredesenha("") | |
| 53 | + window.parent.i3GEO.atualiza("") | |
| 54 | 54 | } |
| 55 | 55 | var x = window.parent.convdmsddf($i("xg").value,$i("xm").value,$i("xs").value); |
| 56 | 56 | var xx = window.parent.convdmsddf($i("xxg").value,$i("xxm").value,$i("xxs").value); | ... | ... |
ferramentas/navegacaodir_depreciado/index.js
ferramentas/nptpol/index.js
| ... | ... | @@ -92,7 +92,7 @@ function cruza() |
| 92 | 92 | if (retorno.data==undefined ) |
| 93 | 93 | {$i("fim").innerHTML = "Erro. A operação demorou muito.";} |
| 94 | 94 | else |
| 95 | - {window.parent.ajaxredesenha("");} | |
| 95 | + {window.parent.i3GEO.atualiza("");} | |
| 96 | 96 | } |
| 97 | 97 | aguarde("block") |
| 98 | 98 | var cp = new cpaint(); | ... | ... |
ferramentas/opcoes_escala/index.js
ferramentas/opcoes_fundo/index.js
ferramentas/opcoes_legenda/index.js
| ... | ... | @@ -72,7 +72,7 @@ function executa() |
| 72 | 72 | var temp = function() |
| 73 | 73 | { |
| 74 | 74 | aguarde("none") |
| 75 | - window.parent.ajaxredesenha("") | |
| 75 | + window.parent.i3GEO.atualiza("") | |
| 76 | 76 | } |
| 77 | 77 | var p = g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid+"&funcao=aplicaParametrosLegImg"+par |
| 78 | 78 | var cp = new cpaint(); | ... | ... |
ferramentas/opcoes_querymap/index.js
ferramentas/opcoes_tamanho/index.js
| ... | ... | @@ -19,8 +19,8 @@ GNU junto com este programa; se não, escreva para a |
| 19 | 19 | Free Software Foundation, Inc., no endereço |
| 20 | 20 | 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA. |
| 21 | 21 | */ |
| 22 | -$i("l").value = window.parent.objmapa.w | |
| 23 | -$i("a").value = window.parent.objmapa.h | |
| 22 | +$i("l").value = window.parent.i3GEO.parametros.w | |
| 23 | +$i("a").value = window.parent.i3GEO.parametros.h | |
| 24 | 24 | parametrosURL() |
| 25 | 25 | YAHOO.example.init = function () |
| 26 | 26 | { |
| ... | ... | @@ -65,11 +65,11 @@ function executaf() |
| 65 | 65 | |
| 66 | 66 | |
| 67 | 67 | window.parent.calcposf() |
| 68 | - window.parent.objaguarde.abre("ajaxredesenha","Aguarde...") | |
| 68 | + window.parent.objaguarde.abre("i3GEO.atualiza","Aguarde...") | |
| 69 | 69 | var p = g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid+"&funcao=mudatamanho&altura="+a+"&largura="+l |
| 70 | 70 | var cp = new cpaint(); |
| 71 | 71 | //cp.set_debug(2) |
| 72 | 72 | cp.set_response_type("JSON"); |
| 73 | - cp.call(p,"mudaQS",window.parent.ajaxredesenha); | |
| 73 | + cp.call(p,"mudaQS",window.parent.i3GEO.atualiza); | |
| 74 | 74 | } |
| 75 | 75 | } |
| 76 | 76 | \ No newline at end of file | ... | ... |
ferramentas/pontoempoligono/index.js
| ... | ... | @@ -93,7 +93,7 @@ function cruza() |
| 93 | 93 | if (retorno.data==undefined ) |
| 94 | 94 | {$i("fim").innerHTML = "Erro. A operação demorou muito.";} |
| 95 | 95 | else |
| 96 | - {window.parent.ajaxredesenha("");} | |
| 96 | + {window.parent.i3GEO.atualiza("");} | |
| 97 | 97 | } |
| 98 | 98 | var p = g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid+"&funcao=pontoEmPoligono&temaPt="+$i("temasPt").value+"&temasPo="+tsl.join(",") |
| 99 | 99 | aguarde("block") | ... | ... |
ferramentas/pontosdistri/index.js
| ... | ... | @@ -107,7 +107,7 @@ function analiseCluster() |
| 107 | 107 | var temp = function() |
| 108 | 108 | { |
| 109 | 109 | aguarde("none"); |
| 110 | - window.parent.ajaxredesenha("") | |
| 110 | + window.parent.i3GEO.atualiza("") | |
| 111 | 111 | } |
| 112 | 112 | var tema = $i("temasPt").value |
| 113 | 113 | if(tema == ""){alert("Escolha um tema");aguarde("none");return} |
| ... | ... | @@ -127,7 +127,7 @@ function analiseDeldir() |
| 127 | 127 | var temp = function() |
| 128 | 128 | { |
| 129 | 129 | aguarde("none"); |
| 130 | - window.parent.ajaxredesenha("") | |
| 130 | + window.parent.i3GEO.atualiza("") | |
| 131 | 131 | } |
| 132 | 132 | var tema = $i("temasPt").value |
| 133 | 133 | if(tema == ""){alert("Escolha um tema");aguarde("none");return} |
| ... | ... | @@ -147,7 +147,7 @@ function analiseKernel() |
| 147 | 147 | var temp = function() |
| 148 | 148 | { |
| 149 | 149 | aguarde("none"); |
| 150 | - window.parent.ajaxredesenha("") | |
| 150 | + window.parent.i3GEO.atualiza("") | |
| 151 | 151 | } |
| 152 | 152 | var tema = $i("temasPt").value |
| 153 | 153 | if(tema == ""){alert("Escolha um tema");aguarde("none");return} |
| ... | ... | @@ -167,7 +167,7 @@ function analiseDensidade() |
| 167 | 167 | var temp = function() |
| 168 | 168 | { |
| 169 | 169 | aguarde("none"); |
| 170 | - window.parent.ajaxredesenha("") | |
| 170 | + window.parent.i3GEO.atualiza("") | |
| 171 | 171 | } |
| 172 | 172 | var tema = $i("temasPt").value |
| 173 | 173 | if(tema == ""){alert("Escolha um tema");aguarde("none");return} |
| ... | ... | @@ -186,7 +186,7 @@ function analiseDistancia() |
| 186 | 186 | var temp = function() |
| 187 | 187 | { |
| 188 | 188 | aguarde("none"); |
| 189 | - window.parent.ajaxredesenha("") | |
| 189 | + window.parent.i3GEO.atualiza("") | |
| 190 | 190 | } |
| 191 | 191 | var tema = $i("temasPt").value |
| 192 | 192 | if(tema == ""){alert("Escolha um tema");aguarde("none");return} | ... | ... |
ferramentas/salvamapa/index.js
| ... | ... | @@ -20,7 +20,7 @@ Free Software Foundation, Inc., no endereço |
| 20 | 20 | 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA. |
| 21 | 21 | */ |
| 22 | 22 | mensagemAjuda("resultado",$i("resultado").innerHTML) |
| 23 | -map_file = (window.parent.objmapa).mapfile | |
| 23 | +map_file = window.parent.i3GEO.parametros.mapfile | |
| 24 | 24 | var local = map_file.split("ms_tmp") |
| 25 | 25 | var local = window.location.protocol+"//"+window.location.host+"/ms_tmp"+local[1] |
| 26 | 26 | $i("resultado").innerHTML += "<p><a href='"+local+"' >Clique aqui para baixar o arquivo</a>" | ... | ... |
ferramentas/scielo/index.js
| ... | ... | @@ -26,7 +26,7 @@ buscascielo() |
| 26 | 26 | function buscascielo() |
| 27 | 27 | { |
| 28 | 28 | $i("resultadoscielo").innerHTML = "Aguarde..."; |
| 29 | - if (window.parent.objmapa.scale > 150001) | |
| 29 | + if (window.parent.i3GEO.parametros.mapscale > 150001) | |
| 30 | 30 | { |
| 31 | 31 | var ins = "Aproxime mais o mapa <br>(pelo menos até a escala 1:150.000)!"; |
| 32 | 32 | ins += "<br><br><div style=width:80px onclick='ajustarescala()' ></div>" //<input id=botao1 size=20 type=button value='Ajustar escala' /></div>" |
| ... | ... | @@ -43,7 +43,7 @@ function buscascielo() |
| 43 | 43 | var cp = new cpaint(); |
| 44 | 44 | cp.set_response_type("JSON"); |
| 45 | 45 | //cp.set_debug(2) |
| 46 | - var p = g_locaplic+"/ferramentas/scielo/funcoes.php?funcao=listaartigos&ret="+window.parent.objmapa.extent; | |
| 46 | + var p = g_locaplic+"/ferramentas/scielo/funcoes.php?funcao=listaartigos&ret="+window.parent.i3GEO.parametros.mapexten; | |
| 47 | 47 | cp.call(p,"listaartigos",listaartigos); |
| 48 | 48 | } |
| 49 | 49 | function listaartigos(retorno) |
| ... | ... | @@ -70,5 +70,5 @@ function ajustarescala() |
| 70 | 70 | cp.set_response_type("JSON"); |
| 71 | 71 | //cp.set_debug(2) |
| 72 | 72 | var p = g_locaplic+"/classesphp/mapa_controle.php?funcao=mudaescala&g_sid="+g_sid+"&escala=150000"; |
| 73 | - cp.call(p,"mudaescala",window.parent.ajaxredesenha); | |
| 73 | + cp.call(p,"mudaescala",window.parent.i3GEO.atualiza); | |
| 74 | 74 | } |
| 75 | 75 | \ No newline at end of file | ... | ... |
ferramentas/selecao/index.js
| ... | ... | @@ -118,15 +118,15 @@ function mudaicone() |
| 118 | 118 | //botoes de tipo |
| 119 | 119 | function tiposel(obj) |
| 120 | 120 | { |
| 121 | - window.parent.objmapa.temaAtivo = $i("comboTemas").value; | |
| 121 | + window.parent.i3GEO.temaAtivo = $i("comboTemas").value; | |
| 122 | 122 | window.parent.i3GEO.eventos.MOUSEDOWN.remove("i3GEO.selecao.box.inicia()") |
| 123 | 123 | $i("parapoli").style.display = "none"; |
| 124 | 124 | var fim = function() |
| 125 | - {aguarde("none");window.parent.ajaxredesenha("");} | |
| 125 | + {aguarde("none");window.parent.i3GEO.atualiza("");} | |
| 126 | 126 | if ($i("comboTemas").value == ""){alert("Escolha um tema");return;} |
| 127 | 127 | if (obj.id == "selecaoext") |
| 128 | 128 | { |
| 129 | - if (window.parent.objmapa.scale > 500000) | |
| 129 | + if (window.parent.i3GEO.parametros.mapscale > 500000) | |
| 130 | 130 | {alert("A escala do mapa deve ser pelo menos 1:500.000");return;} |
| 131 | 131 | aguarde("block") |
| 132 | 132 | var p = g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid+"&funcao=selecaoext&tema="+$i("comboTemas").value+"&tipo="+$i("tipoOperacao").value |
| ... | ... | @@ -172,7 +172,7 @@ comboTemasLigados("comboTemas",function(retorno) |
| 172 | 172 | { |
| 173 | 173 | $i("lugarComboX").innerHTML = ""; |
| 174 | 174 | $i("lugarComboY").innerHTML = ""; |
| 175 | - window.parent.objmapa.temaAtivo = $i("comboTemas").value | |
| 175 | + window.parent.i3GEO.temaAtivo = $i("comboTemas").value | |
| 176 | 176 | comboitens("selItem",$i("comboTemas").value,function(retorno) |
| 177 | 177 | { |
| 178 | 178 | comboi = retorno.dados |
| ... | ... | @@ -260,7 +260,7 @@ function operacao(tipo) |
| 260 | 260 | { |
| 261 | 261 | aguarde("block") |
| 262 | 262 | var fim = function() |
| 263 | - {aguarde("none");window.parent.ajaxredesenha("")} | |
| 263 | + {aguarde("none");window.parent.i3GEO.atualiza("")} | |
| 264 | 264 | var p = g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid+"&funcao=selecaopt&tema="+$i("comboTemas").value+"&tipo="+tipo.value+"&tolerancia="+$i("toleranciapt").value |
| 265 | 265 | var cp = new cpaint(); |
| 266 | 266 | //cp.set_debug(2) |
| ... | ... | @@ -291,7 +291,7 @@ function aplicaselecao() |
| 291 | 291 | } |
| 292 | 292 | var tipo = $i("tipoOperacao").value |
| 293 | 293 | var fim = function() |
| 294 | - {aguarde("none");window.parent.ajaxredesenha("")} | |
| 294 | + {aguarde("none");window.parent.i3GEO.atualiza("")} | |
| 295 | 295 | var p = g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid+"&funcao=selecaoatrib&tipo="+tipo+"&tema="+$i("comboTemas").value+"&valor="+valor+"&operador="+operador+"&item="+itemsel |
| 296 | 296 | var cp = new cpaint(); |
| 297 | 297 | //cp.set_debug(2) |
| ... | ... | @@ -329,7 +329,7 @@ function criatemaf() |
| 329 | 329 | { |
| 330 | 330 | aguarde("block") |
| 331 | 331 | var fim = function() |
| 332 | - {aguarde("none");window.parent.ajaxredesenha("")} | |
| 332 | + {aguarde("none");window.parent.i3GEO.atualiza("")} | |
| 333 | 333 | var p = g_locaplic+"/classesphp/mapa_controle.php?g_sid="+g_sid+"&funcao=criatemasel&tema="+$i("comboTemas").value+"&nome=Novo tema "+$i("comboTemas").value |
| 334 | 334 | var cp = new cpaint(); |
| 335 | 335 | //cp.set_debug(2) | ... | ... |
ferramentas/tabela/index.js
| ... | ... | @@ -326,7 +326,7 @@ function ativaself() |
| 326 | 326 | cp.set_response_type("JSON"); |
| 327 | 327 | window.parent.g_operacao = "selecao" |
| 328 | 328 | var fim = function() |
| 329 | - {aguarde("none");window.parent.ajaxredesenha("")} | |
| 329 | + {aguarde("none");window.parent.i3GEO.atualiza("")} | |
| 330 | 330 | cp.call(p,"incluiSel",fim); |
| 331 | 331 | } |
| 332 | 332 | //limpa selecao no mapa |
| ... | ... | @@ -415,7 +415,7 @@ function criatemaf() |
| 415 | 415 | //cp.set_debug(2) |
| 416 | 416 | cp.set_response_type("JSON"); |
| 417 | 417 | aguarde("none"); |
| 418 | - cp.call(p,"selecao2tema",window.parent.ajaxredesenha); | |
| 418 | + cp.call(p,"selecao2tema",window.parent.i3GEO.atualiza); | |
| 419 | 419 | } |
| 420 | 420 | //termina |
| 421 | 421 | function concluidof() | ... | ... |
ferramentas/tipoimagem/index.js
ferramentas/wiki/index.js
| ... | ... | @@ -26,7 +26,7 @@ buscawiki() |
| 26 | 26 | function buscawiki() |
| 27 | 27 | { |
| 28 | 28 | $i("resultadowiki").innerHTML = "Aguarde..."; |
| 29 | - if (window.parent.objmapa.scale > 500001) | |
| 29 | + if (window.parent.i3GEO.parametros.mapscale > 500001) | |
| 30 | 30 | { |
| 31 | 31 | var ins = "Aproxime mais o mapa (pelo menos até a escala 1:500.000)!"; |
| 32 | 32 | ins += "<br><br><div onclick='ajustarescala()' >"//<input id=botao1 size=20 type=button value='Ajustar escala' /></div>" |
| ... | ... | @@ -43,7 +43,7 @@ function buscawiki() |
| 43 | 43 | var cp = new cpaint(); |
| 44 | 44 | cp.set_response_type("JSON"); |
| 45 | 45 | //cp.set_debug(2) |
| 46 | - var p = g_locaplic+"/ferramentas/wiki/funcoes.php?funcao=listaartigos&ret="+window.parent.objmapa.extent; | |
| 46 | + var p = g_locaplic+"/ferramentas/wiki/funcoes.php?funcao=listaartigos&ret="+window.parent.i3GEO.parametros.mapexten; | |
| 47 | 47 | cp.call(p,"listaartigos",listaartigos); |
| 48 | 48 | } |
| 49 | 49 | function listaartigos(retorno) | ... | ... |
ms_configura.php
| ... | ... | @@ -285,7 +285,7 @@ if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) |
| 285 | 285 | O programa PHP que estabelece a conexão deve retornar objetos com nomes padronizados. Veja o arquivo i3geo/admin/conexao.php para maiores detalhes. |
| 286 | 286 | |
| 287 | 287 | */ |
| 288 | - $conexaoadmin = $locaplic."/admin/php/conexaomma.php"; | |
| 288 | + $conexaoadmin = "";//$locaplic."/admin/php/conexaomma.php"; | |
| 289 | 289 | } |
| 290 | 290 | else //se for linux |
| 291 | 291 | { | ... | ... |