Commit 9cec94b68eaefd3802bcb2eea7df963986b40d63
1 parent
536252ea
Exists in
master
and in
7 other branches
remoção do programa gadgets.js
Showing
20 changed files
with
15 additions
and
201 deletions
Show diff stats
classesphp/mapa_inicia.php
| ... | ... | @@ -137,10 +137,11 @@ function iniciaMapa() |
| 137 | 137 | $layer->setmetadata("olstatus","OFF"); |
| 138 | 138 | } |
| 139 | 139 | $layer->setmetadata("olopacity",$layer->opacity); |
| 140 | + //error_log($layer->name); | |
| 140 | 141 | } |
| 141 | 142 | $m->save($map_file); |
| 142 | 143 | } |
| 143 | - if($interface == "googlemaps" || $interface == "googleearth") | |
| 144 | + if($interface == "googlemaps") | |
| 144 | 145 | { |
| 145 | 146 | $m = ms_newMapObj($map_file); |
| 146 | 147 | $e = $m->extent; |
| ... | ... | @@ -248,28 +249,6 @@ function iniciaMapa() |
| 248 | 249 | $arqsel = (file_exists($qyfile)) ? true : false; |
| 249 | 250 | $m = New Mapa($map_file,$locaplic); |
| 250 | 251 | $temas = $m->parametrosTemas(); |
| 251 | - //$m->ligaDesligaTemas("",implode(",",$m->nomes),"nao"); | |
| 252 | - // | |
| 253 | - //é necessário um mapa para compor o fundo apenas com o imagecolor e sem nenhuma outra camada | |
| 254 | - //utilizado em algumas interfaces | |
| 255 | - // | |
| 256 | - /* | |
| 257 | - $nomefundo = str_replace(".map","fundo.map",$map_file); | |
| 258 | - $m->mapa->save($nomefundo); | |
| 259 | - $mf = ms_newMapObj($nomefundo); | |
| 260 | - $numlayers = $mf->numlayers; | |
| 261 | - for($i = 0;$i < $numlayers;++$i) | |
| 262 | - { | |
| 263 | - $l = $mf->getLayer($i); | |
| 264 | - $l->set("status",MS_DELETE); | |
| 265 | - } | |
| 266 | - $of = $mf->outputformat; | |
| 267 | - $of->set("driver","GD/PNG"); | |
| 268 | - $versao = versao(); | |
| 269 | - $temp = $mf->scalebar; | |
| 270 | - $temp->set("status",MS_OFF); | |
| 271 | - $mf->save($nomefundo); | |
| 272 | - */ | |
| 273 | 252 | $versao = versao(); |
| 274 | 253 | $temp = $m->mapa->scalebar; |
| 275 | 254 | $temp->set("status",MS_OFF); |
| ... | ... | @@ -334,7 +313,6 @@ function iniciaMapa() |
| 334 | 313 | $res["editor"] = "sim"; |
| 335 | 314 | } |
| 336 | 315 | } |
| 337 | - | |
| 338 | 316 | } |
| 339 | 317 | // |
| 340 | 318 | $res["mapexten"] = $ext; | ... | ... |
interface/atlasdefault.htm
| ... | ... | @@ -80,7 +80,6 @@ |
| 80 | 80 | <table> |
| 81 | 81 | <tr> |
| 82 | 82 | <td> |
| 83 | - <div id=versaoi3geo></div> | |
| 84 | 83 | <h1 class="i3GEOlogoMarca">i3Geo - Software livre para criação de mapas |
| 85 | 84 | interativos e geoprocessamento</h1> |
| 86 | 85 | <h1 class="i3GEOlogoMarca">Baseado no Mapserver, é licenciado sob GPL e integra o | ... | ... |
interface/carto_ol.htm
| ... | ... | @@ -522,7 +522,7 @@ |
| 522 | 522 | <table> |
| 523 | 523 | <tr> |
| 524 | 524 | <td> |
| 525 | - <div id=versaoi3geo></div> | |
| 525 | + | |
| 526 | 526 | <h4 >i3Geo - Software livre para criação de mapas |
| 527 | 527 | interativos e geoprocessamento</h4> |
| 528 | 528 | <h4 >Baseado no Mapserver, é licenciado sob GPL e integra o | ... | ... |
interface/config.php
| ... | ... | @@ -7,7 +7,6 @@ i3GEO.configura.locaplic = i3GEO.util.protocolo() + "://" |
| 7 | 7 | //ajusta o tamanho do navegador ao tamanho da tela |
| 8 | 8 | i3GEO.configura.autotamanho = false; |
| 9 | 9 | i3GEO.Interface.IDCORPO = "mapai3Geo"; |
| 10 | -i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso.permiteLogin = true; | |
| 11 | 10 | |
| 12 | 11 | i3GEO.Interface.openlayers.TILES = true; |
| 13 | 12 | ... | ... |
interface/gm.phtml
| ... | ... | @@ -542,7 +542,7 @@ include("../ms_configura.php"); |
| 542 | 542 | <table> |
| 543 | 543 | <tr> |
| 544 | 544 | <td> |
| 545 | - <div id=versaoi3geo></div> | |
| 545 | + | |
| 546 | 546 | <h4 >i3Geo - Software livre para criação de mapas |
| 547 | 547 | interativos e geoprocessamento</h4> |
| 548 | 548 | <h4 >Baseado no Mapserver, é licenciado sob GPL e integra o | ... | ... |
interface/gmdebug.phtml
| ... | ... | @@ -408,7 +408,7 @@ include("../ms_configura.php"); |
| 408 | 408 | <table> |
| 409 | 409 | <tr> |
| 410 | 410 | <td> |
| 411 | - <div id=versaoi3geo></div> | |
| 411 | + | |
| 412 | 412 | <h4 >i3Geo - Software livre para criação de mapas |
| 413 | 413 | interativos e geoprocessamento</h4> |
| 414 | 414 | <h4 >Baseado no Mapserver, é licenciado sob GPL e integra o | ... | ... |
interface/googlemaps_noite.phtml
| ... | ... | @@ -542,7 +542,7 @@ include("../ms_configura.php"); |
| 542 | 542 | <table> |
| 543 | 543 | <tr> |
| 544 | 544 | <td> |
| 545 | - <div id=versaoi3geo></div> | |
| 545 | + | |
| 546 | 546 | <h4 >i3Geo - Software livre para criação de mapas |
| 547 | 547 | interativos e geoprocessamento</h4> |
| 548 | 548 | <h4 >Baseado no Mapserver, é licenciado sob GPL e integra o | ... | ... |
interface/ol.htm
| ... | ... | @@ -522,7 +522,7 @@ |
| 522 | 522 | <table> |
| 523 | 523 | <tr> |
| 524 | 524 | <td> |
| 525 | - <div id=versaoi3geo></div> | |
| 525 | + | |
| 526 | 526 | <h4 >i3Geo - Software livre para criação de mapas |
| 527 | 527 | interativos e geoprocessamento</h4> |
| 528 | 528 | <h4 >Baseado no Mapserver, é licenciado sob GPL e integra o | ... | ... |
interface/openlayersdebug.htm
| ... | ... | @@ -524,7 +524,7 @@ |
| 524 | 524 | <table> |
| 525 | 525 | <tr> |
| 526 | 526 | <td> |
| 527 | - <div id=versaoi3geo></div> | |
| 527 | + | |
| 528 | 528 | <h4 >i3Geo - Software livre para criação de mapas |
| 529 | 529 | interativos e geoprocessamento</h4> |
| 530 | 530 | <h4 >Baseado no Mapserver, é licenciado sob GPL e integra o | ... | ... |
interface/osm.htm
| ... | ... | @@ -522,7 +522,7 @@ |
| 522 | 522 | <table> |
| 523 | 523 | <tr> |
| 524 | 524 | <td> |
| 525 | - <div id=versaoi3geo></div> | |
| 525 | + | |
| 526 | 526 | <h4 >i3Geo - Software livre para criação de mapas |
| 527 | 527 | interativos e geoprocessamento</h4> |
| 528 | 528 | <h4 >Baseado no Mapserver, é licenciado sob GPL e integra o | ... | ... |
interface/osmdebug.htm
| ... | ... | @@ -522,7 +522,7 @@ |
| 522 | 522 | <table> |
| 523 | 523 | <tr> |
| 524 | 524 | <td> |
| 525 | - <div id=versaoi3geo></div> | |
| 525 | + | |
| 526 | 526 | <h4 >i3Geo - Software livre para criação de mapas |
| 527 | 527 | interativos e geoprocessamento</h4> |
| 528 | 528 | <h4 >Baseado no Mapserver, é licenciado sob GPL e integra o | ... | ... |
js/compactajs.php
| ... | ... | @@ -132,7 +132,7 @@ packer("ajuda.js","compactados/ajuda_compacto.js","Normal"); |
| 132 | 132 | packer("configura.js","compactados/configura_compacto.js","Normal"); |
| 133 | 133 | packer("navega.js","compactados/navega_compacto.js","Normal"); |
| 134 | 134 | packer("coordenadas.js","compactados/coordenadas_compacto.js","Normal"); |
| 135 | -packer("gadgets.js","compactados/gadgets_compacto.js","Normal"); | |
| 135 | +//packer("gadgets.js","compactados/gadgets_compacto.js","Normal"); | |
| 136 | 136 | packer("eventos.js","compactados/eventos_compacto.js","Normal"); |
| 137 | 137 | packer("barradebotoes.js","compactados/barradebotoes_compacto.js","Normal"); |
| 138 | 138 | packer("guias.js","compactados/guias_compacto.js","Normal"); |
| ... | ... | @@ -232,7 +232,7 @@ $jsfiles = array( |
| 232 | 232 | "compactados/arvoredetemas_compacto.js", |
| 233 | 233 | "compactados/barradebotoes_compacto.js", |
| 234 | 234 | "compactados/coordenadas_compacto.js", |
| 235 | -"compactados/gadgets_compacto.js", | |
| 235 | +//"compactados/gadgets_compacto.js", | |
| 236 | 236 | "compactados/social_compacto.js", |
| 237 | 237 | "compactados/login_compacto.js", |
| 238 | 238 | "compactados/marcador_compacto.js", | ... | ... |
js/configura.js
| ... | ... | @@ -599,12 +599,6 @@ i3GEO.configura = |
| 599 | 599 | funcoesBotoes : { |
| 600 | 600 | "botoes" : [ |
| 601 | 601 | { |
| 602 | - iddiv : "historicozoom", | |
| 603 | - tipo : "", | |
| 604 | - dica : "", | |
| 605 | - constroiconteudo : 'i3GEO.gadgets.mostraHistoricoZoom()' | |
| 606 | - }, | |
| 607 | - { | |
| 608 | 602 | // Ativa o botão que realiza a operação de zoom para a extensão total do mapa. |
| 609 | 603 | iddiv : "zoomtot", |
| 610 | 604 | tipo : "", | ... | ... |
js/gadgets.js
| ... | ... | @@ -72,35 +72,6 @@ i3GEO.gadgets = |
| 72 | 72 | * (end) |
| 73 | 73 | */ |
| 74 | 74 | PARAMETROS : { |
| 75 | - "mostraInserirKml" : { | |
| 76 | - idhtml : "inserirKml" | |
| 77 | - }, | |
| 78 | - "mostraEscalaNumerica" : { | |
| 79 | - idhtml : "escala" | |
| 80 | - }, | |
| 81 | - "mostraEscalaGrafica" : { | |
| 82 | - idhtml : "escalaGrafica" | |
| 83 | - }, | |
| 84 | - "mostraVisual" : { | |
| 85 | - idhtml : "" | |
| 86 | - }, | |
| 87 | - "mostraHistoricoZoom" : { | |
| 88 | - idhtml : "historicozoom" | |
| 89 | - }, | |
| 90 | - "mostraMenuSuspenso" : { | |
| 91 | - permiteLogin : true, | |
| 92 | - marcadores : true, | |
| 93 | - idhtml : "menus", | |
| 94 | - deslocaEsquerda : 0, | |
| 95 | - menuUnico : false, | |
| 96 | - parametrosYUI : { | |
| 97 | - iframe : false, | |
| 98 | - autosubmenudisplay : false, | |
| 99 | - showdelay : 200, | |
| 100 | - hidedelay : 500, | |
| 101 | - lazyload : false | |
| 102 | - } | |
| 103 | - }, | |
| 104 | 75 | "mostraVersao" : { |
| 105 | 76 | idhtml : "versaoi3geo" |
| 106 | 77 | }, |
| ... | ... | @@ -147,119 +118,5 @@ i3GEO.gadgets = |
| 147 | 118 | i3GEO.gadgets.PARAMETROS.mostraVersao.idhtml = id; |
| 148 | 119 | } |
| 149 | 120 | i3GEO.util.defineValor(id, "innerHTML", i3GEO.parametros.mensageminicia); |
| 150 | - }, | |
| 151 | - /** | |
| 152 | - * Function: mostraInserirKml | |
| 153 | - * | |
| 154 | - * Mostra no mapa a a opção para inserir kml. | |
| 155 | - * | |
| 156 | - * Essa opção só funciona com a API do Google carregada | |
| 157 | - * | |
| 158 | - * Se você não quer essa função no mapa, elimine o elemento HTML existente no mapa que contenha o id | |
| 159 | - * definido em i3GEO.gadgets.PARAMETROS.mostraInserirKml.idhtml | |
| 160 | - * | |
| 161 | - * Parametro: | |
| 162 | - * | |
| 163 | - * {String} - id do elemento HTML que receberá o resultado. Esse id por default é obtido de | |
| 164 | - * i3GEO.gadgets.PARAMETROS.mostraInserirKml.idhtml | |
| 165 | - */ | |
| 166 | - mostraInserirKml : function(id) { | |
| 167 | - if (typeof (console) !== 'undefined') | |
| 168 | - console.info("i3GEO.gadgets.mostraInserirKml()"); | |
| 169 | - | |
| 170 | - var i, ins, temp; | |
| 171 | - if (arguments.length === 0) { | |
| 172 | - id = i3GEO.gadgets.PARAMETROS.mostraInserirKml.idhtml; | |
| 173 | - } | |
| 174 | - if ($i(id)) { | |
| 175 | - if (!$i("i3geo_urlkml")) { | |
| 176 | - i = $inputText(id, "290", "i3geo_urlkml", "kml url", "35", "kml"); | |
| 177 | - ins = "<table><tr><td>" + i; | |
| 178 | - temp = 'i3GEO.Interface.adicionaKml();'; | |
| 179 | - ins += | |
| 180 | - "</td><td><img src='" + i3GEO.configura.locaplic | |
| 181 | - + "/imagens/branco.gif" | |
| 182 | - + "' class='tic' onclick='" | |
| 183 | - + temp | |
| 184 | - + "' /></td></tr></table>"; | |
| 185 | - $i(id).innerHTML = ins; | |
| 186 | - } | |
| 187 | - } | |
| 188 | - }, | |
| 189 | - | |
| 190 | - /** | |
| 191 | - * Function: mostraHistoricoZoom | |
| 192 | - * | |
| 193 | - * Mostra na barra de zoom os ícones que controlam a visualização do histórico da | |
| 194 | - * navegação sobre o mapa | |
| 195 | - * | |
| 196 | - * Parametro: | |
| 197 | - * | |
| 198 | - * {String} - id do elemento HTML que receberá o resultado. Esse id por default é obtido de i3GEO.gadgets.PARAMETROS | |
| 199 | - */ | |
| 200 | - mostraHistoricoZoom : function(id) { | |
| 201 | - if (typeof (console) !== 'undefined') | |
| 202 | - console.info("i3GEO.gadgets.mostraHistoricoZoom()"); | |
| 203 | - | |
| 204 | - if (arguments.length === 0) { | |
| 205 | - id = i3GEO.gadgets.PARAMETROS.mostraHistoricoZoom.idhtml; | |
| 206 | - } | |
| 207 | - if ($i(id)) { | |
| 208 | - marcadorZoom = ""; | |
| 209 | - var ins = "<table style='text-align:center;position:relative;left:"; | |
| 210 | - if (navm) { | |
| 211 | - ins += "0px;'>"; | |
| 212 | - } else { | |
| 213 | - ins += "6px;'>"; | |
| 214 | - } | |
| 215 | - ins += | |
| 216 | - "<tr><td><img id='i3geo_zoomanterior' class='zoomAnterior' title='anterior' src='" + i3GEO.configura.locaplic | |
| 217 | - + "/imagens/branco.gif" | |
| 218 | - + "' /></td>"; | |
| 219 | - ins += "<td> </td>"; | |
| 220 | - ins += | |
| 221 | - "<td><img id='i3geo_zoomproximo' class='zoomProximo' title='proximo' src='" + i3GEO.configura.locaplic | |
| 222 | - + "/imagens/branco.gif" | |
| 223 | - + "' /></td>"; | |
| 224 | - ins += "</tr></table>"; | |
| 225 | - $i(id).innerHTML = ins; | |
| 226 | - } | |
| 227 | - }, | |
| 228 | - /** | |
| 229 | - * i3GEO.gadgets.visual (depreciado) | |
| 230 | - * | |
| 231 | - * Gera os ícones e controla as opções de modificação do visual do mapa. | |
| 232 | - * | |
| 233 | - * O visual consiste na definição dos ícones utilizados no mapa. O visual pode ser modificado na | |
| 234 | - * inicialização ou então escolhido pelo usuário. | |
| 235 | - * | |
| 236 | - * Os visuais disponíveis são definidos no servidor e consistem em diretórios localizados em | |
| 237 | - * i3geo/imagens/visual. A lista de visuais disponíveis é obtida na inicialização do i3geo. | |
| 238 | - * | |
| 239 | - * Os ícones para mudança do visual são incluídos no elemento HTML definido em | |
| 240 | - * i3geo.gadgets.PARAMETROS.visual | |
| 241 | - */ | |
| 242 | - visual : { | |
| 243 | - /** | |
| 244 | - * Constrói os ícones de escolha do visual. | |
| 245 | - * | |
| 246 | - * Parametro: | |
| 247 | - * | |
| 248 | - * id {String} - id do elemento que receberá os ícones (opcional) | |
| 249 | - */ | |
| 250 | - inicia : function(id) { | |
| 251 | - alert("A i3GEO.gadgets.visual foi depreciado"); | |
| 252 | - }, | |
| 253 | - /** | |
| 254 | - * Troca o visual atual. A lista de visuais disponíveis é obtida em i3GEO.parametros.listavisual | |
| 255 | - * | |
| 256 | - * Parametro: | |
| 257 | - * | |
| 258 | - * visual {String} - nome do visual que será utilizado. | |
| 259 | - */ | |
| 260 | - troca : function(visual) { | |
| 261 | - alert("A i3GEO.gadgets.visual foi depreciado"); | |
| 262 | - } | |
| 263 | 121 | } |
| 264 | - | |
| 265 | 122 | }; |
| 266 | 123 | \ No newline at end of file | ... | ... |
js/i3geonaocompacto.js
js/ini_i3geo.js
| ... | ... | @@ -560,11 +560,6 @@ var i3GEO = { |
| 560 | 560 | } else { |
| 561 | 561 | if (retorno.data.variaveis) { |
| 562 | 562 | i3GEO.parametros = retorno.data.variaveis; |
| 563 | - //verifica se o login e possivel em funcao da variavel variaveis i3geoPermiteLogin | |
| 564 | - //definida no ms_configura.php | |
| 565 | - if(i3GEO.gadgets && i3GEO.parametros.i3geoPermiteLogin && i3GEO.parametros.i3geoPermiteLogin == "nao" ){ | |
| 566 | - i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso.permiteLogin = false; | |
| 567 | - } | |
| 568 | 563 | // |
| 569 | 564 | // converte string em número |
| 570 | 565 | // |
| ... | ... | @@ -623,7 +618,7 @@ var i3GEO = { |
| 623 | 618 | // marcadores |
| 624 | 619 | //i3GEO.listaDeFerramentas = i3GEO.marcador.adicionaMenuSuspenso(i3GEO.listaDeFerramentas); |
| 625 | 620 | // inclui opcoes admin |
| 626 | - if (i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso.permiteLogin === true || (i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso.permiteLogin != false && i3GEO.parametros.editor === "sim")) { | |
| 621 | + if (i3GEO.parametros.editor === "sim") { | |
| 627 | 622 | i3GEO.listaDeFerramentas = i3GEO.login.adicionaMenuSuspenso(i3GEO.listaDeFerramentas); |
| 628 | 623 | } |
| 629 | 624 | i3GEO.Interface.inicia(); | ... | ... |
js/interface.js
| ... | ... | @@ -417,8 +417,6 @@ i3GEO.Interface = |
| 417 | 417 | if ($i("i3GEOcompartilhar")) { |
| 418 | 418 | i3GEO.social.compartilhar("i3GEOcompartilhar", temp, temp, "semtotal"); |
| 419 | 419 | } |
| 420 | - gadgets.mostraVersao(); | |
| 421 | - gadgets.mostraEmail(); | |
| 422 | 420 | // |
| 423 | 421 | // esse id é utilizado apenas para manter o mapa não |
| 424 | 422 | // visível até que tudo seja montado |
| ... | ... | @@ -1136,7 +1134,6 @@ i3GEO.Interface = |
| 1136 | 1134 | montaMapa(); |
| 1137 | 1135 | |
| 1138 | 1136 | i3GEO.coordenadas.ativaEventos(); |
| 1139 | - //i3GEO.gadgets.mostraMenuSuspenso(); | |
| 1140 | 1137 | i3GEO.ajuda.ativaLetreiro(i3GEO.parametros.mensagens); |
| 1141 | 1138 | i3GEO.idioma.mostraSeletor(); |
| 1142 | 1139 | |
| ... | ... | @@ -2519,11 +2516,6 @@ i3GEO.Interface = |
| 2519 | 2516 | i3GEO.Interface.googlemaps.criaLayers(); |
| 2520 | 2517 | i3GeoMapOverlay.setMap(i3GeoMap); |
| 2521 | 2518 | i3GEO.Interface.googlemaps.registraEventos(); |
| 2522 | - // se o mapa está no modo de troca de interface, alguns | |
| 2523 | - // elementos não precisam ser inseridos novamente | |
| 2524 | - if (i3GEO.Interface.STATUS.trocando === false) { | |
| 2525 | - i3GEO.gadgets.mostraInserirKml(); | |
| 2526 | - } | |
| 2527 | 2519 | i3GEO.eventos.ativa($i(i3GEO.Interface.IDMAPA)); |
| 2528 | 2520 | if (i3GEO.Interface.STATUS.trocando === false) { |
| 2529 | 2521 | // i3GEO.coordenadas.mostraCoordenadas(); | ... | ... |
ms_criamapa.php
| ... | ... | @@ -650,7 +650,6 @@ adaptaLayers($tmpfname,$versao); |
| 650 | 650 | if (file_exists($locaplic."/pacotes/geoip") && file_exists($locaplic."/pacotes/geoip/GeoLiteCity.dat")){ |
| 651 | 651 | require_once(dirname(__FILE__)."/ms_registraip.php"); |
| 652 | 652 | } |
| 653 | - | |
| 654 | 653 | if ($interface != "mashup"){ |
| 655 | 654 | abreInterface($interface,$caminho,$tempo); |
| 656 | 655 | } |
| ... | ... | @@ -881,6 +880,7 @@ function incluiTemasIniciais(){ |
| 881 | 880 | } |
| 882 | 881 | cloneInlineSymbol($layern,$maptemp,$mapn); |
| 883 | 882 | $layerAdicionado = ms_newLayerObj($mapn, $layern); |
| 883 | + //echo $layern->name; | |
| 884 | 884 | corrigeLayerGrid($layern,$layerAdicionado); |
| 885 | 885 | } |
| 886 | 886 | } | ... | ... |