Commit b2394028ceedefddb87d5372b9a18994c38b3a90
1 parent
d8b5a090
Exists in
master
and in
7 other branches
Eliminação de variáveis globais ou depreciadas
Showing
7 changed files
with
171 additions
and
527 deletions
Show diff stats
classesjs/classe_barradebotoes.js
classesjs/classe_configura.js
... | ... | @@ -649,7 +649,7 @@ i3GEO.configura = { |
649 | 649 | i3GEO.barraDeBotoes.ativaIcone("zoomli"); |
650 | 650 | marcadorZoom = ""; |
651 | 651 | if(i3GEO.Interface.ATUAL==="openlayers"){ |
652 | - OLpanel.activateControl(OLzoom); | |
652 | + i3GEO.Interface.openlayers.OLpanel.activateControl(i3GEO.Interface.openlayers.OLzoom); | |
653 | 653 | return; |
654 | 654 | } |
655 | 655 | if(!$i("i3geoboxZoom")) |
... | ... | @@ -687,7 +687,7 @@ i3GEO.configura = { |
687 | 687 | marcadorZoom = ""; |
688 | 688 | if(i3GEO.Interface.ATUAL==="openlayers"){ |
689 | 689 | if(i3GEO.Interface.TABLET === false) |
690 | - {OLpanel.activateControl(i3GEO.Interface.openlayers.OLpan);} | |
690 | + {i3GEO.Interface.openlayers.OLpanel.activateControl(i3GEO.Interface.openlayers.OLpan);} | |
691 | 691 | return; |
692 | 692 | } |
693 | 693 | panMapaInicia = function(exy){ | ... | ... |
classesjs/classe_guias.js
... | ... | @@ -243,7 +243,7 @@ i3GEO.guias = { |
243 | 243 | // |
244 | 244 | //obtém outras guias que podem existir no mapa |
245 | 245 | // |
246 | - var nguiasreal = 0,onf,outf,guiaconteudo,id,guia,guias,nguias,g,re,ng,tituloguia,i,ins,largura,altura, | |
246 | + var nguiasreal = 0,onf,outf,guiaconteudo,id,guia,guias,nguias,g,re,ng,tituloguia,i,ins,largura,altura,temp, | |
247 | 247 | CONFIGURA = i3GEO.guias.CONFIGURA, |
248 | 248 | guias = i3GEO.util.listaChaves(CONFIGURA); |
249 | 249 | ... | ... |
classesjs/classe_idioma.js
... | ... | @@ -335,21 +335,23 @@ Returns: |
335 | 335 | var $trad = function(id) |
336 | 336 | {return (i3GEO.idioma.traduzir(id));}; |
337 | 337 | // |
338 | -try { | |
339 | - var c = i3GEO.util.pegaCookie("i3geolingua"); | |
340 | - if(c) { | |
341 | - i3GEO.idioma.define(c); | |
342 | - g_linguagem = c; | |
343 | - } | |
344 | - else { | |
345 | - if(typeof(g_linguagem) !== "undefined") | |
346 | - {i3GEO.idioma.define(g_linguagem);} | |
338 | +(function(){ | |
339 | + try { | |
340 | + var c = i3GEO.util.pegaCookie("i3geolingua"); | |
341 | + if(c) { | |
342 | + i3GEO.idioma.define(c); | |
343 | + g_linguagem = c; | |
344 | + } | |
347 | 345 | else { |
348 | - g_linguagem = "pt"; | |
349 | - i3GEO.idioma.define("pt"); | |
346 | + if(typeof(g_linguagem) !== "undefined") | |
347 | + {i3GEO.idioma.define(g_linguagem);} | |
348 | + else { | |
349 | + g_linguagem = "pt"; | |
350 | + i3GEO.idioma.define("pt"); | |
351 | + } | |
350 | 352 | } |
353 | + if(typeof('g_traducao') !== "undefined") | |
354 | + {i3GEO.idioma.defineDicionario(g_traducao);} | |
351 | 355 | } |
352 | - if(typeof('g_traducao') !== "undefined") | |
353 | - {i3GEO.idioma.defineDicionario(g_traducao);} | |
354 | -} | |
355 | -catch(e){alert("Problemas com idiomas "+e);} | |
356 | 356 | \ No newline at end of file |
357 | + catch(e){alert("Problemas com idiomas "+e);} | |
358 | +})(); | |
357 | 359 | \ No newline at end of file | ... | ... |
classesjs/classe_interface.js
... | ... | @@ -772,7 +772,7 @@ i3GEO.Interface = { |
772 | 772 | //monta o mapa após receber o resultado da criação do mapfile temporário |
773 | 773 | // |
774 | 774 | var montaMapa = function(){ |
775 | - var pz,pos,temp,propriedades,layers,nlayers,i,texto,estilo, | |
775 | + var pz,pos,temp,propriedades,layers,nlayers,i,texto,estilo,layersn, | |
776 | 776 | openlayers = i3GEO.Interface.openlayers; |
777 | 777 | i3GEO.util.multiStep([ |
778 | 778 | openlayers.registraEventos, |
... | ... | @@ -785,11 +785,11 @@ i3GEO.Interface = { |
785 | 785 | ); |
786 | 786 | openlayers.criaLayers(); |
787 | 787 | if(openlayers.GADGETS.PanZoomBar === true){ |
788 | - OLpanzoombar = new OpenLayers.Control.PanZoomBar(); | |
789 | - i3geoOL.addControl(OLpanzoombar); | |
790 | - OLpanzoombar.div.style.zIndex = 5000; | |
791 | - OLpanzoombar.div.style.top = i3GEO.Interface.BARRADEZOOMTOP+"px"; | |
792 | - OLpanzoombar.div.style.left = i3GEO.Interface.BARRADEZOOMLEFT+"px"; | |
788 | + i3GEO.Interface.openlayers.OLpanzoombar = new OpenLayers.Control.PanZoomBar(); | |
789 | + i3geoOL.addControl(i3GEO.Interface.openlayers.OLpanzoombar); | |
790 | + i3GEO.Interface.openlayers.OLpanzoombar.div.style.zIndex = 5000; | |
791 | + i3GEO.Interface.openlayers.OLpanzoombar.div.style.top = i3GEO.Interface.BARRADEZOOMTOP+"px"; | |
792 | + i3GEO.Interface.openlayers.OLpanzoombar.div.style.left = i3GEO.Interface.BARRADEZOOMLEFT+"px"; | |
793 | 793 | } |
794 | 794 | if(openlayers.GADGETS.PanZoom === true){ |
795 | 795 | pz = new OpenLayers.Control.PanZoom(); |
... | ... | @@ -830,10 +830,10 @@ i3GEO.Interface = { |
830 | 830 | // |
831 | 831 | if(i3GEO.Interface.TABLET === false){ |
832 | 832 | i3GEO.Interface.openlayers.OLpan = new OpenLayers.Control.Navigation(); |
833 | - OLzoom = new OpenLayers.Control.ZoomBox(); | |
834 | - OLpanel = new OpenLayers.Control.Panel(); | |
835 | - OLpanel.addControls([i3GEO.Interface.openlayers.OLpan,OLzoom]); | |
836 | - i3geoOL.addControl(OLpanel); | |
833 | + i3GEO.Interface.openlayers.OLzoom = new OpenLayers.Control.ZoomBox(); | |
834 | + i3GEO.Interface.openlayers.OLpanel = new OpenLayers.Control.Panel(); | |
835 | + i3GEO.Interface.openlayers.OLpanel.addControls([i3GEO.Interface.openlayers.OLpan,i3GEO.Interface.openlayers.OLzoom]); | |
836 | + i3geoOL.addControl(i3GEO.Interface.openlayers.OLpanel); | |
837 | 837 | } |
838 | 838 | openlayers.ativaBotoes(); |
839 | 839 | if (i3GEO.configura.mapaRefDisplay !== "none"){ |
... | ... | @@ -1057,8 +1057,8 @@ i3GEO.Interface = { |
1057 | 1057 | }, |
1058 | 1058 | ativaFundo: function(id){ |
1059 | 1059 | i3geoOL.setBaseLayer(i3geoOL.getLayer(id)); |
1060 | - OLpanzoombar.div.style.top = i3GEO.Interface.BARRADEZOOMTOP+"px"; | |
1061 | - OLpanzoombar.div.style.left = i3GEO.Interface.BARRADEZOOMLEFT+"px"; | |
1060 | + i3GEO.Interface.openlayers.OLpanzoombar.div.style.top = i3GEO.Interface.BARRADEZOOMTOP+"px"; | |
1061 | + i3GEO.Interface.openlayers.OLpanzoombar.div.style.left = i3GEO.Interface.BARRADEZOOMLEFT+"px"; | |
1062 | 1062 | }, |
1063 | 1063 | atualizaMapa:function(){ |
1064 | 1064 | var layers = i3geoOL.layers, | ... | ... |
classesjs/classe_util.js
... | ... | @@ -80,9 +80,8 @@ Default: |
80 | 80 | {false} |
81 | 81 | */ |
82 | 82 | opera = navigator.userAgent.toLowerCase().indexOf('opera') > -1; |
83 | -var app = navigator.appName.substring(0,1); | |
84 | -if (app==='N'){navn=true;} | |
85 | -if (app==='M'){navm=true;} | |
83 | +if (navigator.appName.substring(0,1) === 'N'){navn=true;} | |
84 | +if (navigator.appName.substring(0,1) === 'M'){navm=true;} | |
86 | 85 | if(opera === true) |
87 | 86 | {navn = true;} |
88 | 87 | /* |
... | ... | @@ -363,7 +362,7 @@ i3GEO.util = { |
363 | 362 | */ |
364 | 363 | arvore: function(titulo,onde,obj){ |
365 | 364 | if(typeof(console) !== 'undefined'){console.info("i3GEO.util.arvore()");} |
366 | - var arvore,root,tempNode,currentIconMode,d,c,i,linha,conteudo; | |
365 | + var arvore,root,tempNode,currentIconMode,d,c,i,linha,conteudo,j,temaNode; | |
367 | 366 | if(!$i(onde)){return;} |
368 | 367 | try{ |
369 | 368 | arvore = new YAHOO.widget.TreeView(onde); | ... | ... |
classesjs/depreciados.js
... | ... | @@ -10,36 +10,36 @@ function i3GEOmantemCompatibilidade(){ |
10 | 10 | try{ |
11 | 11 | i3GEO.configura.oMenuData = oMenuData; |
12 | 12 | } |
13 | - catch(e){} | |
13 | + catch(e){alert("funcao depreciada");} | |
14 | 14 | try{ |
15 | 15 | i3GEO.configura.tipoimagem = g_tipoimagem; |
16 | 16 | } |
17 | - catch(e){} | |
17 | + catch(e){alert("funcao depreciada");} | |
18 | 18 | try{ |
19 | 19 | i3GEO.configura.tipotip = g_tipotip; |
20 | 20 | } |
21 | - catch(e){} | |
21 | + catch(e){alert("funcao depreciada");} | |
22 | 22 | try{ |
23 | 23 | i3GEO.configura.funcaoTip = g_funcaoTip; |
24 | 24 | } |
25 | - catch(e){} | |
25 | + catch(e){alert("funcao depreciada");} | |
26 | 26 | |
27 | 27 | try{ |
28 | 28 | i3GEO.configura.map3d = g_3dmap; |
29 | 29 | } |
30 | - catch(e){} | |
30 | + catch(e){alert("funcao depreciada");} | |
31 | 31 | try{ |
32 | 32 | i3GEO.configura.embedLegenda = g_embedLegenda; |
33 | 33 | } |
34 | - catch(e){} | |
34 | + catch(e){alert("funcao depreciada");} | |
35 | 35 | try{ |
36 | 36 | i3GEO.configura.templateLegenda = g_templateLegenda; |
37 | 37 | } |
38 | - catch(e){} | |
38 | + catch(e){alert("funcao depreciada");} | |
39 | 39 | try{ |
40 | 40 | if(objmapa.finaliza != "") |
41 | 41 | i3GEO.finaliza = objmapa.finaliza; |
42 | - }catch(e){}; | |
42 | + }catch(e){alert("funcao depreciada");}; | |
43 | 43 | g_arvoreClick = ""; |
44 | 44 | g_arvoreClicks = ""; |
45 | 45 | |
... | ... | @@ -53,15 +53,15 @@ function i3GEOmantemCompatibilidade(){ |
53 | 53 | if (g_opcoesTemas == "nao") |
54 | 54 | {i3GEO.arvoreDeCamadas.OPCOESTEMAS = false;} |
55 | 55 | } |
56 | - catch(e){}; | |
56 | + catch(e){alert("funcao depreciada");}; | |
57 | 57 | try { |
58 | 58 | i3GEO.maparef.fatorZoomDinamico = g_zoomRefDinamico; |
59 | 59 | } |
60 | - catch(e){}; | |
60 | + catch(e){alert("funcao depreciada");}; | |
61 | 61 | try { |
62 | 62 | i3GEO.configura.mashuppar = g_mashuppar; |
63 | 63 | } |
64 | - catch(e){}; | |
64 | + catch(e){alert("funcao depreciada");}; | |
65 | 65 | try{ |
66 | 66 | //if($i("arvoreAdicionaTema") || $i("outrasOpcoesAdiciona")){ |
67 | 67 | if(!$i("arvoreAdicionaTema")) |
... | ... | @@ -70,97 +70,97 @@ function i3GEOmantemCompatibilidade(){ |
70 | 70 | {i3GEO.arvoreDeTemas.IDHTML = "arvoreAdicionaTema";} |
71 | 71 | //} |
72 | 72 | } |
73 | - catch(e){}; | |
73 | + catch(e){alert("funcao depreciada");}; | |
74 | 74 | try { |
75 | 75 | if (g_uploaddbf == "nao") |
76 | 76 | {i3GEO.arvoreDeTemas.OPCOESADICIONAIS.uploaddbf = false;} |
77 | 77 | } |
78 | - catch(e){}; | |
78 | + catch(e){alert("funcao depreciada");}; | |
79 | 79 | try { |
80 | 80 | if (g_uploadlocal == "nao") |
81 | 81 | {i3GEO.arvoreDeTemas.OPCOESADICIONAIS.uploadlocal = false;} |
82 | 82 | } |
83 | - catch(e){}; | |
83 | + catch(e){alert("funcao depreciada");}; | |
84 | 84 | try { |
85 | 85 | if (g_downloadbase == "nao") |
86 | 86 | {i3GEO.arvoreDeTemas.OPCOESADICIONAIS.downloadbase = false;} |
87 | 87 | } |
88 | - catch(e){}; | |
88 | + catch(e){alert("funcao depreciada");}; | |
89 | 89 | try { |
90 | 90 | if (g_conectarwms == "nao") |
91 | 91 | {i3GEO.arvoreDeTemas.OPCOESADICIONAIS.conectarwms = false;} |
92 | 92 | } |
93 | - catch(e){}; | |
93 | + catch(e){alert("funcao depreciada");}; | |
94 | 94 | try { |
95 | 95 | if (g_conectargeorss == "nao") |
96 | 96 | {i3GEO.arvoreDeTemas.OPCOESADICIONAIS.conectargeorss = false;} |
97 | 97 | } |
98 | - catch(e){}; | |
98 | + catch(e){alert("funcao depreciada");}; | |
99 | 99 | try { |
100 | 100 | if (g_nuvemTags == "nao") |
101 | 101 | {i3GEO.arvoreDeTemas.OPCOESADICIONAIS.nuvemTags = false;} |
102 | 102 | } |
103 | - catch(e){}; | |
103 | + catch(e){alert("funcao depreciada");}; | |
104 | 104 | try { |
105 | 105 | if (g_kml == "nao") |
106 | 106 | {i3GEO.arvoreDeTemas.OPCOESADICIONAIS.kml = false;} |
107 | 107 | } |
108 | - catch(e){}; | |
108 | + catch(e){alert("funcao depreciada");}; | |
109 | 109 | try { |
110 | 110 | if (g_qrcode == "nao") |
111 | 111 | {i3GEO.arvoreDeTemas.OPCOESADICIONAIS.qrcode = false;} |
112 | 112 | } |
113 | - catch(e){}; | |
113 | + catch(e){alert("funcao depreciada");}; | |
114 | 114 | try{ |
115 | 115 | if(g_tipoacao != "") |
116 | 116 | {i3GEO.barraDeBotoes.BOTAOPADRAO = g_tipoacao;} |
117 | 117 | } |
118 | - catch(e){} | |
118 | + catch(e){alert("funcao depreciada");} | |
119 | 119 | try { |
120 | 120 | if (g_listaPropriedades) |
121 | 121 | {i3GEO.configura.listaDePropriedadesDoMapa = g_listaPropriedades;} |
122 | 122 | } |
123 | - catch(e){}; | |
123 | + catch(e){alert("funcao depreciada");}; | |
124 | 124 | try { |
125 | 125 | if (g_tempo_aplicar) |
126 | 126 | {i3GEO.configura.tempoAplicar = g_tempo_aplicar;} |
127 | 127 | } |
128 | - catch(e){}; | |
128 | + catch(e){alert("funcao depreciada");}; | |
129 | 129 | try { |
130 | 130 | if (g_janelaMen == "nao") |
131 | 131 | {i3GEO.configura.iniciaJanelaMensagens = false;} |
132 | 132 | } |
133 | - catch(e){}; | |
133 | + catch(e){alert("funcao depreciada");}; | |
134 | 134 | try { |
135 | 135 | if (g_locaplic) |
136 | 136 | {i3GEO.configura.locaplic = g_locaplic;} |
137 | 137 | } |
138 | - catch(e){}; | |
138 | + catch(e){alert("funcao depreciada");}; | |
139 | 139 | try { |
140 | 140 | if (g_tempotip) |
141 | 141 | {i3GEO.configura.tempoMouseParado = g_tempotip;} |
142 | 142 | } |
143 | - catch(e){}; | |
143 | + catch(e){alert("funcao depreciada");}; | |
144 | 144 | try { |
145 | 145 | if (g_mostraRosa) |
146 | 146 | {i3GEO.configura.mostraRosaDosVentos = g_mostraRosa;} |
147 | 147 | } |
148 | - catch(e){}; | |
148 | + catch(e){alert("funcao depreciada");}; | |
149 | 149 | try { |
150 | 150 | if (g_visual) |
151 | 151 | {i3GEO.configura.visual = g_visual;} |
152 | 152 | } |
153 | - catch(e){}; | |
153 | + catch(e){alert("funcao depreciada");}; | |
154 | 154 | try { |
155 | 155 | if (g_mapaRefDisplay) |
156 | 156 | {i3GEO.configura.mapaRefDisplay = g_mapaRefDisplay;} |
157 | 157 | } |
158 | - catch(e){}; | |
158 | + catch(e){alert("funcao depreciada");}; | |
159 | 159 | try { |
160 | 160 | if (g_docaguias) |
161 | 161 | {i3GEO.configura.liberaGuias = g_docaguias;} |
162 | 162 | } |
163 | - catch(e){}; | |
163 | + catch(e){alert("funcao depreciada");}; | |
164 | 164 | if (window.location.href.split("?")[1]){ |
165 | 165 | g_sid = window.location.href.split("?")[1]; |
166 | 166 | if (g_sid.split("#")[0]) |
... | ... | @@ -172,39 +172,39 @@ function i3GEOmantemCompatibilidade(){ |
172 | 172 | try{ |
173 | 173 | i3GEO.guias.ATUAL = g_guiaativa; |
174 | 174 | } |
175 | - catch(e){} | |
175 | + catch(e){alert("funcao depreciada");} | |
176 | 176 | try{ |
177 | 177 | i3GEO.navega.autoRedesenho.INTERVALO = g_autoRedesenho; |
178 | 178 | } |
179 | - catch(e){} | |
179 | + catch(e){alert("funcao depreciada");} | |
180 | 180 | try{ |
181 | 181 | i3GEO.eventos.NAVEGAMAPA = g_funcoesNavegaMapaDefault; |
182 | 182 | } |
183 | - catch(e){} | |
183 | + catch(e){alert("funcao depreciada");} | |
184 | 184 | try{ |
185 | 185 | i3GEO.eventos.MOUSEMOVE = g_funcoesMousemoveMapaDefault; |
186 | 186 | } |
187 | - catch(e){} | |
187 | + catch(e){alert("funcao depreciada");} | |
188 | 188 | try{ |
189 | 189 | i3GEO.eventos.MOUSECLIQUE = g_funcoesClickMapaDefault; |
190 | 190 | } |
191 | - catch(e){} | |
191 | + catch(e){alert("funcao depreciada");} | |
192 | 192 | try{ |
193 | 193 | i3GEO.configura.entorno = g_entorno; |
194 | 194 | } |
195 | - catch(e){} | |
195 | + catch(e){alert("funcao depreciada");} | |
196 | 196 | try{ |
197 | 197 | i3GEO.navega.lente.POSICAOX = g_posicaoLenteX = 0; |
198 | 198 | } |
199 | - catch(e){} | |
199 | + catch(e){alert("funcao depreciada");} | |
200 | 200 | try{ |
201 | 201 | i3GEO.navega.lente.POSICAOY = g_posicaoLenteY; |
202 | 202 | } |
203 | - catch(e){} | |
203 | + catch(e){alert("funcao depreciada");} | |
204 | 204 | try{ |
205 | 205 | i3GEO.navega.destacaTema.TAMANHO = destacaTamanho; |
206 | 206 | } |
207 | - catch(e){} | |
207 | + catch(e){alert("funcao depreciada");} | |
208 | 208 | if (!$i("tip")){ |
209 | 209 | var novoel = document.createElement("div"); |
210 | 210 | novoel.id = "tip"; |
... | ... | @@ -223,7 +223,7 @@ function i3GEOmantemCompatibilidade(){ |
223 | 223 | objmapa.atualizaListaTemas = function(temas) |
224 | 224 | {alert("atualizaListaTemas foi depreciado. Utilize i3GEO.arvoreDeCamadas")}; |
225 | 225 | } |
226 | - catch(e){} | |
226 | + catch(e){alert("funcao depreciada");} | |
227 | 227 | } |
228 | 228 | |
229 | 229 | // |
... | ... | @@ -241,6 +241,7 @@ cpObj.set_response_type("JSON"); |
241 | 241 | */ |
242 | 242 | function Mapa(e,m) |
243 | 243 | { |
244 | + alert("Funcao Mapa foi depreciada. Utilize i3GEO.cria()"); | |
244 | 245 | i3GEO.cria(); |
245 | 246 | this.inicializa= function() |
246 | 247 | {i3GEO.finaliza = this.finaliza;i3GEO.inicia();}; |
... | ... | @@ -250,9 +251,11 @@ function Mapa(e,m) |
250 | 251 | // |
251 | 252 | objaguarde = { |
252 | 253 | abre: function(){ |
254 | + alert("objaguarde foi depreciada. Utilize i3GEO.janela"); | |
253 | 255 | i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1")); |
254 | 256 | }, |
255 | 257 | fecha: function(){ |
258 | + alert("objaguarde foi depreciada. Utilize i3GEO.janela"); | |
256 | 259 | i3GEO.janela.fechaAguarde("i3GEO.atualiza"); |
257 | 260 | } |
258 | 261 | }; |
... | ... | @@ -264,271 +267,43 @@ Utilize i3GEO.util |
264 | 267 | Cria um cookie. |
265 | 268 | */ |
266 | 269 | function iCookie(nome,valor) |
267 | -{i3GEO.util.insereCookie(nome,valor);} | |
270 | +{ | |
271 | + alert("iCookie foi depreciado. Utilize i3GEO.util.insereCookie"); | |
272 | + i3GEO.util.insereCookie(nome,valor); | |
273 | +} | |
268 | 274 | /* |
269 | 275 | pCookie (depreciado) |
270 | 276 | |
271 | 277 | Utilize i3GEO.util.pegaCookie |
272 | 278 | */ |
273 | 279 | function pCookie(nome) |
274 | -{i3GEO.util.pegaCookie(nome);} | |
275 | -/* | |
276 | - trocalingua (depreciado) | |
277 | - | |
278 | -Utilize i3GEO.idioma.trocaIdioma | |
279 | -*/ | |
280 | -function trocalingua(l) | |
281 | -{i3GEO.idioma.trocaIdioma(l);alert("trocalingua foi depreciado utilize i3GEO.idioma");} | |
282 | -/* | |
283 | - initJanelaMen (depreciado) | |
284 | -*/ | |
285 | -function initJanelaMen() | |
286 | -{i3GEO.ajuda.abreJanela();alert("initJanelaMen foi depreciado utilize i3GEO.ajuda");} | |
287 | -/* | |
288 | - pegalistademenus (depreciado) | |
289 | -*/ | |
290 | -function pegalistademenus(retorno) | |
291 | -{alert("Funcao pegalistademenus foi depreciado. Utilize i3GEO.arvoreDeTemas");} | |
280 | +{ | |
281 | + alert("pCookie foi depreciado. Utilize i3GEO.util.pegaCookie"); | |
282 | + i3GEO.util.pegaCookie(nome); | |
283 | +} | |
292 | 284 | /* |
293 | 285 | wdocaf (depreciado) |
294 | 286 | */ |
295 | 287 | function wdocaf(wlargura,waltura,wsrc,nx,ny,texto) |
296 | -{var janela = i3GEO.janela.cria(wlargura,waltura,wsrc,nx,ny,texto);} | |
297 | -/* | |
298 | - redimwdocaf (depreciado) | |
299 | -*/ | |
300 | -function redimwdocaf(w,h) | |
301 | -{i3GEO.janela.alteraTamanho(w,h);alert("redimwdocaf foi depreciado utilize i3GEO.janela");} | |
288 | +{alert("funcao depreciada");var janela = i3GEO.janela.cria(wlargura,waltura,wsrc,nx,ny,texto);} | |
302 | 289 | /* |
303 | 290 | wdocaf2 (depreciado) |
304 | 291 | */ |
305 | 292 | function wdocaf2(wlargura,waltura,wsrc,nx,ny,texto) |
306 | 293 | { |
294 | + alert("funcao depreciada"); | |
307 | 295 | var id = YAHOO.util.Dom.generateId(); |
308 | 296 | i3GEO.janela.cria(wlargura,waltura,wsrc,nx,ny,texto,id,true); |
309 | 297 | } |
310 | -/* | |
311 | - wdocafechaf (depreciado) | |
312 | -*/ | |
313 | -function wdocafechaf(odoca) | |
314 | -{alert("wdocafechaf foi depreciado");} | |
315 | -/* | |
316 | - mostradicasf (depreciado) | |
317 | -*/ | |
318 | -function mostradicasf(objeto,dica,hlpt) | |
319 | -{i3GEO.ajuda.mostraJanela(dica);alert("mostradicasf foi depreciado utilize i3GEO.ajuda");} | |
320 | -/* | |
321 | - mudaboxnf (depreciado) | |
322 | -*/ | |
323 | -function mudaboxnf(tipo,obj,nomeFuncao) | |
324 | -{alert("mudaboxnf foi depreciado");} | |
325 | -/* | |
326 | - inverteStatusClasse (depreciado) | |
327 | -*/ | |
328 | -/* | |
329 | - procurartemas (depreciado) | |
330 | - | |
331 | -Localiza um tema no menu de temas. | |
332 | -*/ | |
333 | -function procurartemas(texto) | |
334 | -{alert("procurartemas foi depreciado");} | |
335 | -/* | |
336 | - expandeTema (depreciado) | |
337 | - | |
338 | -*/ | |
339 | -function expandeTema(itemID) | |
340 | -{ | |
341 | - //verifica se clicou para expandir a legenda | |
342 | - var tema = itemID.split("legenda"); | |
343 | - if (tema.length == 2) | |
344 | - { | |
345 | - g_arvoreClick = itemID; | |
346 | - tema = tema[1]; | |
347 | - var p = g_locaplic+"/classesphp/mapa_controle.php?funcao=criaLegendaHTML&template=legenda2.htm&tema="+tema+"&g_sid="+g_sid; | |
348 | - cpObj.call(p,"criaLegenda",expandeLegendaVer); | |
349 | - } | |
350 | - alert("expandeTema foi depreciado"); | |
351 | -} | |
352 | -/* | |
353 | - expandeGrupo (depreciado) | |
354 | -*/ | |
355 | -/* | |
356 | - processaGrupos (depreciado) | |
357 | -*/ | |
358 | -/* | |
359 | - pegavalSistemas (depreciado) | |
360 | - | |
361 | -Adiciona uma árvore no menu de adição de temas, contendo os sistemas que podem ser executados. | |
362 | -*/ | |
363 | -function pegavalSistemas(sis) | |
364 | -{alert("Funcao pegavalSistemas foi depreciada - veja i3GEO.arvoreDeTemas");} | |
365 | -/* | |
366 | - processevent1 (depreciado) | |
367 | - | |
368 | -Captura a posição do mouse tendo como referência o navegador. | |
369 | - | |
370 | -Atualiza o objeto objposicaomouse e movimenta as janelas docáveis. | |
371 | - | |
372 | -Recalcula a posição correta da imagem do mapa. | |
373 | - | |
374 | -Parameters: | |
375 | - | |
376 | -exy1 - objeto evento. | |
377 | -*/ | |
378 | 298 | function processevent1(exy1) |
379 | -{} | |
380 | -/* | |
381 | - ativaDragDrop (depreciado) | |
382 | - | |
383 | -Ativa a funcionalidade de arrastar e soltar para alteração da ordem de desenho dos temas e para excluir um tema do mapa. | |
384 | -*/ | |
385 | -/* | |
386 | - removeAcentos (depreciado) | |
387 | -*/ | |
388 | -function removeAcentos(palavra) | |
389 | -{ | |
390 | - return(i3GEO.util.removeAcentos(palavra)); | |
391 | - alert("removeAcentos foi depreciado utilize i3GEO.util"); | |
392 | -} | |
393 | -/* | |
394 | - ativaMensagemBanner (depreciado | |
395 | -*/ | |
396 | -function ativaMensagemBanner() | |
397 | -{alert("ativaMensagemBanner fooi depreciado utilize i3GEO.ajuda");} | |
299 | +{alert("funcao depreciada");} | |
398 | 300 | /* |
399 | 301 | mensagemBanner (depreciado) |
400 | 302 | */ |
401 | 303 | function mensagemBanner() |
402 | -{} | |
403 | -/* | |
404 | - mensagemf (depreciado) | |
405 | - | |
406 | -Abre uma mensagem na tela em um DIV. | |
407 | - | |
408 | -A mensagem é incluída em um elemento HTML com id ="mensagem" | |
409 | - | |
410 | -Parameters: | |
411 | - | |
412 | -m - mensagem que será mostrada. | |
413 | -*/ | |
414 | -function mensagemf(m) | |
415 | -{ | |
416 | - alert("mensagemf foi depreciado"); | |
417 | - try | |
418 | - { | |
419 | - //insere o div para mensagens | |
420 | - if (!$i("mensagem")) | |
421 | - { | |
422 | - var novoel = document.createElement("div"); | |
423 | - novoel.id = 'mensagem'; | |
424 | - novoel.innerHTML = '<table width="50" style="border: 1px solid #000000;"> <tr> <td onclick="mensagemf()" style="text-align:left;cursor:pointer" class="tdclara"> <img src="'+g_locaplic+'/imagens/excluir.png" /> </td> <td style="text-align:left" class="tdclara"> <input style="text-align:left" class="textocb" type="text" id="mensagemt" size="70" value="" /> </td></tr> </table>'; | |
425 | - if($i("i3geo")) | |
426 | - {$i("i3geo").appendChild(novoel);} | |
427 | - else | |
428 | - {document.body.appendChild(novoel);} | |
429 | - } | |
430 | - if (m == null) | |
431 | - {$i("mensagem").style.visibility = "hidden";} | |
432 | - else | |
433 | - { | |
434 | - $i("mensagemt").value = m; | |
435 | - $i("mensagem").style.visibility = "visible"; | |
436 | - } | |
437 | - var pos = pegaPosicaoObjeto($i("img")); | |
438 | - pos[1] = pos[1] + parseInt($i("img").style.height) - 22; | |
439 | - eval ('document.getElementById("mensagem").style.' + g_tipoleft + ' = pos[0] + g_postpx'); | |
440 | - eval ('document.getElementById("mensagem").style.' + g_tipotop + ' = pos[1] + g_postpx'); | |
441 | - } | |
442 | - catch(e){alert("Impossivel criar mensagem."+e);} | |
443 | -} | |
444 | -/* | |
445 | - aguarde (depreciado) | |
446 | -*/ | |
447 | -function aguarde() | |
448 | -{ | |
449 | - alert("aguarde foi depreciado utilize i3GEO.janela"); | |
450 | - this.abre = function(aguardeId,texto) | |
451 | - { | |
452 | - i3GEO.janela.abreAguarde(aguardeId,texto); | |
453 | - }; | |
454 | - this.fecha = function(aguardeId) | |
455 | - { | |
456 | - i3GEO.janela.fechaAguarde(aguardeId); | |
457 | - }; | |
458 | -} | |
459 | -/* | |
460 | - zoomiauto (depreciado) | |
461 | -*/ | |
462 | -function zoomiauto() | |
463 | -{alert("zoomiauto foi depreciado utilize i3GEO.navega");i3GEO.navega.zoomin(g_locaplic,g_sid);} | |
464 | -/* | |
465 | - zoomoauto (depreciado) | |
466 | -*/ | |
467 | -function zoomoauto() | |
468 | -{alert("zoomoauto foi depreciado utilize i3GEO.navega");i3GEO.navega.zoomout(g_locaplic,g_sid);} | |
469 | -/* | |
470 | - convdmsddf (depreciado) | |
471 | -*/ | |
472 | -function convdmsddf(cd,cm,cs) | |
473 | -{alert("convdmsddf foi depreciado utilize i3GEO.calculo");return (i3GEO.calculo.dsm2dd(cd,cm,cs));} | |
474 | -/* | |
475 | - zoomPonto (depreciado) | |
476 | -*/ | |
477 | -function zoomPonto() | |
478 | -{alert("utilize i3GEO.navega.zoomponto");} | |
479 | -/* | |
480 | - zoomIP (depreciado) | |
481 | -*/ | |
482 | -function zoomIP() | |
483 | -{alert("zoomIP foi depreciado. Utilize i3GEO.navega.zoomIP");} | |
484 | -/* | |
485 | - zoomtot | |
486 | -*/ | |
487 | -function zoomtot() | |
488 | -{alert("zoomtot foi depreciado. Utilize i3GEO.navega.zoomExt");} | |
489 | -/* | |
490 | - atualizaFarol (depreciado) | |
491 | -*/ | |
492 | -/* | |
493 | - panFixo (depreciado) | |
494 | -*/ | |
495 | -function panFixo(direcao,w,h,escala) | |
496 | -{alert("panFixo foi depreciado. Utilize i3GEO.navega.panFixo");} | |
497 | -/* | |
498 | - protocolo (depreciado) | |
499 | - | |
500 | -Utilize i3GEO.util | |
501 | -*/ | |
502 | -function protocolo() | |
503 | -{alert("protocolo foi depreciado utilize i3GEO.util");return(i3GEO.util.protocolo());} | |
504 | -//Mantido aqui apenas para fins de compatibilidade | |
304 | +{alert("funcao depreciada");} | |
505 | 305 | function borra() |
506 | -{} | |
507 | -/* | |
508 | - pegaPosicaoObjeto (depreciado) | |
509 | -*/ | |
510 | -function pegaPosicaoObjeto(obj) | |
511 | -{alert("pegaPosicaoObjeto foi depreciado utilize i3GEO.util");return(i3GEO.util.pegaPosicaoObjeto(obj));} | |
512 | -/* | |
513 | - i3geo_pegaElementoPai (depreciado) | |
514 | -*/ | |
515 | -function i3geo_pegaElementoPai(e) | |
516 | -{alert("i3geo_pegaElementoPai foi depreciado utilize i3GEO.util");return(i3GEO.util.pegaElementoPai(e));} | |
517 | -/* | |
518 | - convddtela (depreciado) | |
519 | -*/ | |
520 | -function convddtela(vx,vy,docmapa) | |
521 | -{alert("convddtela foi depreciado utilize i3GEO.calculo");return(i3GEO.calculo.dd2tela(vx,vy,docmapa,i3GEO.parametros.extent,i3GEO.parametros.pixelsize));} | |
522 | -/* | |
523 | - convdmsf (depreciado) | |
524 | -*/ | |
525 | -function convdmsf(x,y) | |
526 | -{alert("convdmsf foi depreciado utilize i3GEO.calculo");return(i3GEO.calculo.dd2dms(x,y));} | |
527 | -/* | |
528 | - calcddf (depreciado) | |
529 | -*/ | |
530 | -function calcddf(xfign,yfign,g_celula,imgext) | |
531 | -{alert("calcddf foi depreciado utilize i3GEO.calculo");return(i3GEO.calculo.tela2dd(xfign,yfign,g_celula,imgext));} | |
306 | +{alert("funcao depreciada");} | |
532 | 307 | /* |
533 | 308 | movecursor (depreciado) |
534 | 309 | |
... | ... | @@ -536,6 +311,7 @@ Move o ícone que segue o mouse quando da movimentação sobre o mapa |
536 | 311 | */ |
537 | 312 | function movecursor() |
538 | 313 | { |
314 | + alert("funcao depreciada"); | |
539 | 315 | // |
540 | 316 | //se a interface openlayers ou flamingo estiver sendo usada, o ícone não é mostrado |
541 | 317 | //'obj' é o elemento que guarda o ícone que segue o mouse |
... | ... | @@ -571,113 +347,27 @@ function movecursor() |
571 | 347 | } |
572 | 348 | } |
573 | 349 | /* |
574 | - g_janelaMen (depreciado) | |
575 | -*/ | |
576 | -/* | |
577 | - g_downloadbase (depreciado) | |
578 | - | |
579 | -Define se na árvore de adição de temas, será mostrada a opção de download dos dados. | |
580 | -*/ | |
581 | -/* | |
582 | - g_conectargeorss (depreciado) | |
583 | - | |
584 | -Define se na árvore de adição de temas, será mostrada a opção de conexão com GeoRSS. | |
585 | -*/ | |
586 | -/* | |
587 | - g_nuvemTags (depreciado) | |
588 | - | |
589 | -Define se na árvore de adição de temas, será mostrada a opção de busca de temas por tags. | |
590 | -*/ | |
591 | -/* | |
592 | - g_uploadlocal (depreciado) | |
593 | - | |
594 | -Define se na árvore de adição de temas, será mostrada a opção de upload. | |
595 | -*/ | |
596 | -/* | |
597 | - g_uploaddbf (depreciado) | |
598 | - | |
599 | -Define se na árvore de adição de temas, será mostrada a opção de upload de arquivo dbf. | |
600 | -*/ | |
601 | -/* | |
602 | - g_conectarwms (depreciado) | |
603 | - | |
604 | -Define se na árvore de adição de temas, será mostrada a opção de conexão com WMS. | |
605 | -*/ | |
606 | -/* | |
607 | - g_funcoesMouseParado (depreciado) | |
608 | -*/ | |
609 | -/* | |
610 | - g_tempotip (depreciado) | |
611 | -*/ | |
612 | -/* | |
613 | -Variable: g_mostraRosa (depreciado) | |
614 | -*/ | |
615 | - | |
616 | -/* | |
617 | - pegaCoordenadaUTM (depreciado) | |
618 | -*/ | |
619 | -function pegaCoordenadaUTM() | |
620 | -{alert("pegaCoordenadaUTM foi depreciado utilize i3GEO.gadgets");i3GEO.gadgets.mostraCoordenadasUTM(g_locaplic,"mostraUTM");} | |
621 | -/* | |
622 | - ativaLocalizarxy (depreciado) | |
623 | -*/ | |
624 | -function ativaLocalizarxy(iddiv) | |
625 | -{alert("ativaLocalizarxy foi depreciado utilize i3GEO.gadgets");i3GEO.gadgets.mostraCoordenadasGEO(iddiv);} | |
626 | -/* | |
627 | - ativaEscalaNumerica (depreciado) | |
628 | -*/ | |
629 | -function ativaEscalaNumerica(iddiv) | |
630 | -{alert("ativaEscalaNumerica foi depreciado utilize i3GEO.gadgets");i3GEO.gadgets.mostraEscalaNumerica(iddiv);} | |
631 | -/* | |
632 | - ativaBuscaRapida (depreciado) | |
633 | -*/ | |
634 | -function ativaBuscaRapida(iddiv) | |
635 | -{alert("ativaBuscaRapida foi depreciado utilize i3GEO.gadgets");i3GEO.gadgets.mostraBuscaRapida(iddiv);} | |
636 | -/* | |
637 | 350 | buscaRapida (depreciado) |
638 | 351 | */ |
639 | 352 | function buscaRapida() |
640 | -{i3geo_buscarapida()} | |
641 | -/* | |
642 | - criaboxg (depreciado) | |
643 | -*/ | |
644 | -function criaboxg() | |
645 | -{ | |
646 | - i3GEO.util.criaBox(); | |
647 | - i3GEO.util.criaPin(); | |
648 | - alert("criaboxg foi depreciado utilize i3GEO.util"); | |
649 | -} | |
353 | +{alert("funcao depreciada");i3geo_buscarapida()} | |
650 | 354 | /* |
651 | 355 | initJanelaZoom (depreciado) |
652 | 356 | */ |
653 | 357 | function initJanelaZoom(qual){ |
358 | + alert("funcao depreciada"); | |
654 | 359 | i3GEO.barraDeBotoes.reativa(qual-1); |
655 | 360 | } |
656 | 361 | /* |
657 | 362 | sobeferramentas(depreciado) |
658 | 363 | */ |
659 | 364 | function sobeferramentas() |
660 | -{} | |
365 | +{alert("funcao depreciada");} | |
661 | 366 | /* |
662 | 367 | desceferramentas (depreciado) |
663 | 368 | */ |
664 | 369 | function desceferramentas() |
665 | -{} | |
666 | -/* | |
667 | - mostraRosaDosVentos (depreciado) | |
668 | -*/ | |
669 | -function mostraRosaDosVentos() | |
670 | -{alert("mostraRosaDosVentos foi depreciado utilize i3GEO.navega");i3GEO.navega.mostraRosaDosVentos();} | |
671 | -/* | |
672 | - mudaVisual (depreciado) | |
673 | -*/ | |
674 | -function mudaVisual(visual) | |
675 | -{alert("visual foi depreciado utilize i3GEO.visual");i3GEO.gadgets.visual.troca(visual);} | |
676 | -/* | |
677 | - visual (depreciado) | |
678 | -*/ | |
679 | -function visual(iddiv) | |
680 | -{alert("visual foi depreciado utilize i3GEO.visual");i3GEO.gadgets.visual.inicia(iddiv);} | |
370 | +{alert("funcao depreciada");} | |
681 | 371 | /* |
682 | 372 | arvoreclick (depreciado) |
683 | 373 | |
... | ... | @@ -689,6 +379,7 @@ itemID - ID que identifica qual tema foi clicado. O ID é definido no arquivo .ma |
689 | 379 | */ |
690 | 380 | function arvoreclick(itemID) |
691 | 381 | { |
382 | + alert("funcao depreciada"); | |
692 | 383 | if (itemID.search("tema") == 0) |
693 | 384 | { |
694 | 385 | if ($i(itemID).checked == true) |
... | ... | @@ -714,6 +405,7 @@ Id do tema. |
714 | 405 | */ |
715 | 406 | function pegaTema(celula) |
716 | 407 | { |
408 | +alert("funcao depreciada"); | |
717 | 409 | var nos = celula.parentNode.childNodes; |
718 | 410 | var tempi = nos.length; |
719 | 411 | for (var no=0;no<tempi; no++){if (nos[no].type == "checkbox"){return nos[no].value;}} |
... | ... | @@ -722,83 +414,83 @@ function pegaTema(celula) |
722 | 414 | gerafilmef (depreciado) |
723 | 415 | */ |
724 | 416 | function gerafilmef(qs) |
725 | -{} | |
417 | +{alert("funcao depreciada");} | |
726 | 418 | /* |
727 | 419 | gravaQuadro (depreciado) |
728 | 420 | */ |
729 | 421 | function gravaQuadro(variavel,valor) |
730 | -{i3GEO.gadgets.quadros.grava(variavel,valor);} | |
422 | +{alert("funcao depreciada");i3GEO.gadgets.quadros.grava(variavel,valor);} | |
731 | 423 | /* |
732 | 424 | avancaQuadro (depreciado) |
733 | 425 | */ |
734 | 426 | function avancaQuadro() |
735 | -{i3GEO.gadgets.quadros.avanca();} | |
427 | +{alert("funcao depreciada");i3GEO.gadgets.quadros.avanca();} | |
736 | 428 | /* |
737 | 429 | zoomAnterior (depreciado) |
738 | 430 | */ |
739 | -function zoomAnterior(){ | |
431 | +function zoomAnterior(){alert("funcao depreciada"); | |
740 | 432 | } |
741 | 433 | /* |
742 | 434 | zoomProximo (depreciado) |
743 | 435 | |
744 | 436 | */ |
745 | -function zoomProximo(){ | |
437 | +function zoomProximo(){alert("funcao depreciada"); | |
746 | 438 | } |
747 | 439 | /* |
748 | 440 | opcoesQuadros (depreciado) |
749 | 441 | */ |
750 | 442 | function opcoesQuadros() |
751 | -{} | |
443 | +{alert("funcao depreciada");} | |
752 | 444 | /* |
753 | 445 | filmef |
754 | 446 | */ |
755 | 447 | function filmef(o) |
756 | -{} | |
448 | +{alert("funcao depreciada");} | |
757 | 449 | /* |
758 | 450 | rebobinaf (depreciado) |
759 | 451 | */ |
760 | 452 | function rebobinaf() |
761 | -{} | |
453 | +{alert("funcao depreciada");} | |
762 | 454 | /* |
763 | 455 | filmezf (depreciado) |
764 | 456 | */ |
765 | 457 | function filmezf(o) |
766 | -{} | |
458 | +{alert("funcao depreciada");} | |
767 | 459 | /* |
768 | 460 | quadrofilme (depreciado) |
769 | 461 | */ |
770 | 462 | function quadrofilme() |
771 | -{} | |
463 | +{alert("funcao depreciada");} | |
772 | 464 | /* |
773 | 465 | filmeanimaf (depreciado) |
774 | 466 | */ |
775 | 467 | function filmeanimaf() |
776 | -{} | |
468 | +{alert("funcao depreciada");} | |
777 | 469 | /* |
778 | 470 | filmeanimarodaf (depreciado) |
779 | 471 | */ |
780 | 472 | function filmeanimarodaf(janima) |
781 | -{} | |
473 | +{alert("funcao depreciada");} | |
782 | 474 | /* |
783 | 475 | pegaimagens (depreciado) |
784 | 476 | */ |
785 | 477 | function pegaimagens() |
786 | -{} | |
478 | +{alert("funcao depreciada");} | |
787 | 479 | /* |
788 | 480 | Function calculaArea (depreciado) |
789 | 481 | */ |
790 | 482 | function calculaArea(pontos,pixel) |
791 | -{return (i3GEO.calculo.area(pontos,pixel));} | |
483 | +{alert("funcao depreciada");return (i3GEO.calculo.area(pontos,pixel));} | |
792 | 484 | /* |
793 | 485 | calculadistancia (depreciado) |
794 | 486 | */ |
795 | 487 | function calculadistancia(lga,lta,lgb,ltb) //0ms |
796 | -{return (i3GEO.calculo.distancia(lga,lta,lgb,ltb));} | |
488 | +{alert("funcao depreciada");return (i3GEO.calculo.distancia(lga,lta,lgb,ltb));} | |
797 | 489 | /* |
798 | 490 | initJanelaRef (depreciado) |
799 | 491 | */ |
800 | 492 | function initJanelaRef() |
801 | -{i3GEO.maparef.inicia();} | |
493 | +{alert("funcao depreciada");i3GEO.maparef.inicia();} | |
802 | 494 | /* |
803 | 495 | Variable: g_mapaRefDisplay (depreciado) |
804 | 496 | */ |
... | ... | @@ -809,21 +501,21 @@ Variable: g_mapaRefDisplay (depreciado) |
809 | 501 | ajaxReferencia (depreciado) |
810 | 502 | */ |
811 | 503 | function ajaxReferencia(retorno) |
812 | -{i3GEO.maparef.processaImagem(retorno)} | |
504 | +{alert("funcao depreciada");i3GEO.maparef.processaImagem(retorno)} | |
813 | 505 | /* |
814 | 506 | clicouRef (depreciado) |
815 | 507 | |
816 | 508 | Altera a abrangência do mapa quando o mapa de referência é clicado |
817 | 509 | */ |
818 | 510 | function clicouRef() |
819 | -{} | |
511 | +{alert("funcao depreciada");} | |
820 | 512 | /* |
821 | 513 | movimentoRef (depreciado) |
822 | 514 | |
823 | 515 | Pega a coordenada do cursor sobre o mapa de referência |
824 | 516 | */ |
825 | 517 | function movimentoRef(obj) |
826 | -{} | |
518 | +{alert("funcao depreciada");} | |
827 | 519 | /* |
828 | 520 | mostraTip (depreciado) |
829 | 521 | |
... | ... | @@ -838,6 +530,7 @@ retorno - retorno da função ajax com os dados para montar a etiqueta. |
838 | 530 | function mostraTip(retorno) |
839 | 531 | { |
840 | 532 | //insere div para tips |
533 | +alert("funcao depreciada"); | |
841 | 534 | if (!$i("tip")){ |
842 | 535 | var novoel = document.createElement("div"); |
843 | 536 | novoel.id = "tip"; |
... | ... | @@ -921,12 +614,12 @@ function mostraTip(retorno) |
921 | 614 | trataErro (depreciado) |
922 | 615 | */ |
923 | 616 | function trataErro() |
924 | -{i3GEO.janela.fechaAguarde();} | |
617 | +{alert("funcao depreciada");i3GEO.janela.fechaAguarde();} | |
925 | 618 | /* |
926 | 619 | mostraguiaf (depreciado) |
927 | 620 | */ |
928 | 621 | function mostraguiaf(guia) |
929 | -{ | |
622 | +{alert("funcao depreciada"); | |
930 | 623 | i3GEO.guias.mostra(guia); |
931 | 624 | /* |
932 | 625 | if ($i("guia"+guia)) |
... | ... | @@ -956,7 +649,7 @@ function mostraguiaf(guia) |
956 | 649 | ativaGuias (depreciado) |
957 | 650 | */ |
958 | 651 | function ativaGuias() |
959 | -{ | |
652 | +{alert("funcao depreciada"); | |
960 | 653 | //YAHOO.log("ativaGuias", "i3geo"); |
961 | 654 | //ajusta as guias da versão antiga do YUI para a nova |
962 | 655 | // |
... | ... | @@ -988,7 +681,7 @@ function ativaGuias() |
988 | 681 | if($i(objmapa.guiaListaMapas)) |
989 | 682 | {$i(objmapa.guiaListaMapas).innerHTML = $trad("g4");} |
990 | 683 | } |
991 | - catch(e){}; | |
684 | + catch(e){alert("funcao depreciada");}; | |
992 | 685 | // |
993 | 686 | // |
994 | 687 | for(var g=0;g<12;g++) |
... | ... | @@ -1104,153 +797,105 @@ function ativaGuias() |
1104 | 797 | //YAHOO.log("Fim ativaGuias", "i3geo"); |
1105 | 798 | } |
1106 | 799 | /* |
1107 | - // | |
1108 | - //altera o tamanho das guias | |
1109 | - // | |
1110 | - var temp = new Array("guiaTemas","guiaMenu","guiaLegenda"); | |
1111 | - var i = temp.length-1; | |
1112 | - if (i >= 0) | |
1113 | - { | |
1114 | - do | |
1115 | - { | |
1116 | - eval("var s = objmapa."+temp[i]+"obj"); | |
1117 | - if ($i(s)) | |
1118 | - { | |
1119 | - var d = $i(s).style; | |
1120 | - d.style.overflow="auto"; | |
1121 | - d.style.height = i3GEO.parametros.h-13; | |
1122 | - d.style.width = "100%"; | |
1123 | - } | |
1124 | - } | |
1125 | - while(i--) | |
1126 | - } | |
1127 | -*/ | |
1128 | -/* | |
1129 | 800 | docaguias (depreciado) |
1130 | 801 | */ |
1131 | 802 | function docaguias() |
1132 | -{i3GEO.guias.libera();} | |
803 | +{alert("funcao depreciada");i3GEO.guias.libera();} | |
1133 | 804 | /* |
1134 | 805 | autoRedesenho (depreciado) |
1135 | 806 | */ |
1136 | 807 | function autoRedesenho(opcao) |
1137 | -{} | |
1138 | -/* | |
1139 | -Function movePan (depreciado) | |
1140 | -*/ | |
1141 | -function movePan() | |
1142 | -{alert("movePan foi depreciado")} | |
808 | +{alert("funcao depreciada");} | |
1143 | 809 | /* |
1144 | 810 | Function selecao (depreciado) |
1145 | 811 | */ |
1146 | 812 | function selecao() |
1147 | -{} | |
813 | +{alert("funcao depreciada");} | |
1148 | 814 | /* |
1149 | 815 | cliqueSelecao (depreciado) |
1150 | 816 | */ |
1151 | 817 | function cliqueSelecao() |
1152 | -{} | |
818 | +{alert("funcao depreciada");} | |
1153 | 819 | /* |
1154 | 820 | zoomboxf (depreciado) |
1155 | 821 | */ |
1156 | 822 | function zoomboxf(tipo) |
1157 | -{} | |
823 | +{alert("funcao depreciada");} | |
1158 | 824 | /* |
1159 | 825 | i3geo_comboGruposMenu (depreciado) |
1160 | 826 | */ |
1161 | 827 | function i3geo_comboGruposMenu(funcaoOnchange,idDestino,idCombo,largura,altura) |
1162 | -{} | |
828 | +{alert("funcao depreciada");} | |
1163 | 829 | /* |
1164 | 830 | i3geo_comboSubGruposMenu (depreciado) |
1165 | 831 | */ |
1166 | 832 | function i3geo_comboSubGruposMenu(funcaoOnchange,idDestino,idCombo,idGrupo,largura,altura) |
1167 | -{} | |
833 | +{alert("funcao depreciada");} | |
1168 | 834 | /* |
1169 | 835 | i3geo_comboTemasMenu (depreciado) |
1170 | 836 | */ |
1171 | 837 | function i3geo_comboTemasMenu(funcaoOnchange,idDestino,idCombo,idGrupo,idSubGrupo,largura,altura) |
1172 | -{} | |
838 | +{alert("funcao depreciada");} | |
1173 | 839 | /* |
1174 | 840 | remapaf (depreciado) |
1175 | 841 | */ |
1176 | 842 | function remapaf() |
1177 | -{i3GEO.atualiza("");} | |
843 | +{i3GEO.atualiza("");alert("funcao depreciada");} | |
1178 | 844 | /* |
1179 | 845 | limpacontainerf (depreciado) |
1180 | 846 | */ |
1181 | 847 | function limpacontainerf() |
1182 | -{} | |
848 | +{alert("funcao depreciada");} | |
1183 | 849 | /* |
1184 | 850 | inseremarcaf (depreciado) |
1185 | 851 | */ |
1186 | 852 | function inseremarcaf(xi,yi,funcaoOnclick,container) |
1187 | -{i3GEO.utl.insereMarca.cria(xi,yi,funcaoOnclick,container)} | |
853 | +{alert("funcao depreciada");i3GEO.utl.insereMarca.cria(xi,yi,funcaoOnclick,container)} | |
1188 | 854 | /* |
1189 | 855 | Function moveSelecaoPoli (depreciado) |
1190 | 856 | */ |
1191 | 857 | function moveSelecaoPoli() |
1192 | -{} | |
858 | +{alert("funcao depreciada");} | |
1193 | 859 | /* |
1194 | 860 | cliqueSelecaoPoli (depreciado) |
1195 | 861 | */ |
1196 | 862 | function cliqueSelecaoPoli() |
1197 | -{} | |
1198 | -/* | |
1199 | - capturaposicao (depreciado) | |
1200 | -*/ | |
1201 | -function capturaposicao(e) | |
1202 | -{alert("capturaposicao foi depreciado utilize i3GEO.eventos");} | |
863 | +{alert("funcao depreciada");} | |
1203 | 864 | /* |
1204 | 865 | ativaEntorno (depreciado) |
1205 | 866 | */ |
1206 | 867 | function ativaEntorno() |
1207 | -{} | |
868 | +{alert("funcao depreciada");} | |
1208 | 869 | /* |
1209 | 870 | geraURLentorno (depreciado) |
1210 | 871 | */ |
1211 | 872 | function geraURLentorno() |
1212 | -{} | |
873 | +{alert("funcao depreciada");} | |
1213 | 874 | /* |
1214 | 875 | ajustaEntorno |
1215 | 876 | */ |
1216 | 877 | function ajustaEntorno() |
1217 | -{} | |
1218 | -/* | |
1219 | - lenteDeAumento (depreciado) | |
1220 | -*/ | |
1221 | -function lenteDeAumento() | |
1222 | -{alert("lenteDeAumento foi depreciado utilize i3GEO.navega.lente.ativaDesativa()")} | |
878 | +{alert("funcao depreciada");} | |
1223 | 879 | /* |
1224 | 880 | ajaxabrelente (depreciado) |
1225 | 881 | */ |
1226 | 882 | function ajaxabrelente(retorno) |
1227 | -{} | |
883 | +{alert("funcao depreciada");} | |
1228 | 884 | /* |
1229 | 885 | movelentef (depreciado) |
1230 | 886 | */ |
1231 | 887 | function movelentef() |
1232 | -{} | |
1233 | -/* | |
1234 | - destacaTema (depreciado) | |
1235 | -*/ | |
1236 | -function destacaTema(tema) | |
1237 | -{alert("destacaTema foi depreciado utilize i3GEO.navega");} | |
1238 | - | |
1239 | -/* | |
1240 | - ajaxdestaca (depreciado) | |
1241 | -*/ | |
1242 | -function ajaxdestaca() | |
1243 | -{alert("ajaxdestaca foi depreciado, utilize i3GEO.navega")} | |
888 | +{alert("funcao depreciada");} | |
1244 | 889 | /* |
1245 | 890 | ativaClicks (depreciado) |
1246 | 891 | */ |
1247 | 892 | function ativaClicks(docMapa) |
1248 | -{} | |
893 | +{alert("funcao depreciada");} | |
1249 | 894 | /* |
1250 | 895 | incluir (depreciado) |
1251 | 896 | */ |
1252 | 897 | function incluir(path) |
1253 | -{i3GEO.util.adicionaSHP(path);} | |
898 | +{i3GEO.util.adicionaSHP(path);alert("funcao depreciada");} | |
1254 | 899 | /* |
1255 | 900 | pontosdist(depreciado) |
1256 | 901 | */ |
... | ... | @@ -1264,32 +909,28 @@ function pontosdist() |
1264 | 909 | this.ximg = []; |
1265 | 910 | this.yimg = []; |
1266 | 911 | this.linhas = []; |
912 | + alert("funcao depreciada"); | |
1267 | 913 | } |
1268 | 914 | /* |
1269 | 915 | mudaiconf (depreciado) |
1270 | 916 | */ |
1271 | 917 | function mudaiconf(i) |
1272 | -{i3GEO.barraDeBotoes.ativaIcone(i);} | |
918 | +{i3GEO.barraDeBotoes.ativaIcone(i);alert("funcao depreciada");} | |
1273 | 919 | /* |
1274 | 920 | calcposf (depreciado) |
1275 | 921 | */ |
1276 | 922 | function calcposf() |
1277 | -{i3GEO.mapa.ajustaPosicao();} | |
923 | +{i3GEO.mapa.ajustaPosicao();alert("funcao depreciada");} | |
1278 | 924 | /* |
1279 | 925 | recuperamapa (depreciado) |
1280 | 926 | */ |
1281 | 927 | function recuperamapa() |
1282 | -{} | |
1283 | -/* | |
1284 | - criaContainerRichdraw | |
1285 | -*/ | |
1286 | -function criaContainerRichdraw() | |
1287 | -{alert("criaContainerRichdraw foi depreciado utilize i3GEO.desenho");} | |
928 | +{alert("funcao depreciada");} | |
1288 | 929 | /* |
1289 | 930 | desenhoRichdraw (depreciado) |
1290 | 931 | */ |
1291 | 932 | function desenhoRichdraw(tipo,objeto,n) |
1292 | -{} | |
933 | +{alert("funcao depreciada");} | |
1293 | 934 | /* |
1294 | 935 | ajaxhttp (depreciado) |
1295 | 936 | |
... | ... | @@ -1304,7 +945,7 @@ See Also: |
1304 | 945 | <ajaxexecAS> |
1305 | 946 | */ |
1306 | 947 | function ajaxhttp() |
1307 | -{ | |
948 | +{alert("funcao depreciada"); | |
1308 | 949 | try |
1309 | 950 | {var objhttp1 = new XMLHttpRequest();} |
1310 | 951 | catch(ee) |
... | ... | @@ -1338,7 +979,7 @@ See Also: |
1338 | 979 | <ajaxhttp> |
1339 | 980 | */ |
1340 | 981 | function ajaxexecAS(programa,funcao) |
1341 | -{ | |
982 | +{alert("funcao depreciada"); | |
1342 | 983 | var ohttp = ajaxhttp(); |
1343 | 984 | ohttp.open("POST",programa,true); |
1344 | 985 | var retorno = ""; |
... | ... | @@ -1384,7 +1025,7 @@ See Also: |
1384 | 1025 | <ajaxhttp> |
1385 | 1026 | */ |
1386 | 1027 | function ajaxexec(programa,funcao) |
1387 | -{ | |
1028 | +{alert("funcao depreciada"); | |
1388 | 1029 | var objhttp = ajaxhttp(); |
1389 | 1030 | objhttp.open('GET', programa, false); |
1390 | 1031 | objhttp.send(null); |
... | ... | @@ -1400,101 +1041,103 @@ function ajaxexec(programa,funcao) |
1400 | 1041 | ajaxLegendaHTML (depreciado) |
1401 | 1042 | */ |
1402 | 1043 | function ajaxLegendaHTML(retorno) |
1403 | -{} | |
1044 | +{alert("funcao depreciada");} | |
1404 | 1045 | /* |
1405 | 1046 | ajaxLegendaImagem (depreciado) |
1406 | 1047 | */ |
1407 | 1048 | function ajaxLegendaImagem(retorno) |
1408 | -{} | |
1049 | +{alert("funcao depreciada");} | |
1409 | 1050 | /* |
1410 | 1051 | mede (depreciado) |
1411 | 1052 | */ |
1412 | 1053 | function mede() |
1413 | -{} | |
1054 | +{alert("funcao depreciada");} | |
1414 | 1055 | /* |
1415 | 1056 | cliqueMede (depreciado) |
1416 | 1057 | */ |
1417 | 1058 | function cliqueMede() |
1418 | -{} | |
1059 | +{alert("funcao depreciada");} | |
1419 | 1060 | /* |
1420 | 1061 | Function moveMede (depreciado) |
1421 | 1062 | */ |
1422 | 1063 | function moveMede() |
1423 | -{} | |
1064 | +{alert("funcao depreciada");} | |
1424 | 1065 | /* |
1425 | 1066 | area (depreciado) |
1426 | 1067 | */ |
1427 | 1068 | function area() |
1428 | -{} | |
1069 | +{alert("funcao depreciada");} | |
1429 | 1070 | /* |
1430 | 1071 | cliqueArea (depreciado) |
1431 | 1072 | */ |
1432 | 1073 | function cliqueArea() |
1433 | -{} | |
1074 | +{alert("funcao depreciada");} | |
1434 | 1075 | /* |
1435 | 1076 | Function moveArea (depreciado) |
1436 | 1077 | */ |
1437 | 1078 | function moveArea() |
1438 | -{} | |
1079 | +{alert("funcao depreciada");} | |
1439 | 1080 | /* |
1440 | 1081 | textofid (depreciado) |
1441 | 1082 | */ |
1442 | 1083 | function textofid() |
1443 | -{} | |
1084 | +{alert("funcao depreciada");} | |
1444 | 1085 | /* |
1445 | 1086 | inserexy (depreciado) |
1446 | 1087 | */ |
1447 | 1088 | function inserexy() |
1448 | -{} | |
1089 | +{alert("funcao depreciada");} | |
1449 | 1090 | /* |
1450 | 1091 | cliqueInseretoponimo (depreciado) |
1451 | 1092 | */ |
1452 | 1093 | function cliqueInseretoponimo() |
1453 | -{} | |
1094 | +{alert("funcao depreciada");} | |
1454 | 1095 | /* |
1455 | 1096 | cliqueInserexy (depreciado) |
1456 | 1097 | */ |
1457 | 1098 | function cliqueInserexy() |
1458 | -{} | |
1099 | +{alert("funcao depreciada");} | |
1459 | 1100 | /* |
1460 | 1101 | inseregrafico (depreciado) |
1461 | 1102 | */ |
1462 | 1103 | function inseregrafico() |
1463 | -{} | |
1104 | +{alert("funcao depreciada");} | |
1464 | 1105 | /* |
1465 | 1106 | cliqueInseregrafico (depreciado) |
1466 | 1107 | */ |
1467 | 1108 | function cliqueInseregrafico() |
1468 | -{} | |
1109 | +{alert("funcao depreciada");} | |
1469 | 1110 | /* |
1470 | 1111 | ativaHistoricoZoom (depreciado) |
1471 | 1112 | */ |
1472 | 1113 | function ativaHistoricoZoom(iddiv) |
1473 | -{} | |
1114 | +{alert("funcao depreciada");} | |
1474 | 1115 | function ajaxhttp(){ |
1116 | + alert("funcao depreciada"); | |
1475 | 1117 | return i3GEO.util.ajaxhttp(); |
1476 | 1118 | } |
1477 | 1119 | /* |
1478 | 1120 | ajaxCorpoMapa (depreciado) |
1479 | 1121 | */ |
1480 | 1122 | function ajaxCorpoMapa(retorno) |
1481 | -{i3GEO.mapa.corpo.veirifca(retorno);} | |
1123 | +{i3GEO.mapa.corpo.veirifca(retorno);alert("funcao depreciada");} | |
1482 | 1124 | /* |
1483 | 1125 | ajaxredesenha (depreciado) |
1484 | 1126 | */ |
1485 | 1127 | function ajaxredesenha(retorno) |
1486 | -{i3GEO.atualiza(retorno);} | |
1128 | +{i3GEO.atualiza(retorno);alert("funcao depreciada");} | |
1487 | 1129 | /* |
1488 | 1130 | ajaxIniciaParametros (depreciado) |
1489 | 1131 | */ |
1490 | 1132 | function ajaxIniciaParametros(retorno) |
1491 | -{i3GEO.atualiza(retorno);} | |
1133 | +{i3GEO.atualiza(retorno);alert("funcao depreciada");} | |
1492 | 1134 | /* |
1493 | 1135 | montaMenuSuspenso (depreciado) |
1494 | 1136 | */ |
1495 | 1137 | function montaMenuSuspenso(iddiv){ |
1496 | 1138 | i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso.idhtml = iddiv; |
1497 | 1139 | i3GEO.gadgets.mostraMenuSuspenso(); |
1140 | + alert("funcao depreciada"); | |
1498 | 1141 | } |
1499 | 1142 | |
1500 | 1143 | //YAHOO.log("carregou depreciados", "Classes i3geo"); |
1501 | 1144 | \ No newline at end of file | ... | ... |