depreciados.js
26.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
/*
Title: Depreciados
Funções ou variáveis depreciadas. Mantidas aqui para efeitos de compatibilidade
Arquivo: i3geo/classesjs/depreciados.js
*/
function i3GEOmantemCompatibilidade(){
try{
i3GEO.configura.oMenuData = oMenuData;
}
catch(e){alert("funcao depreciada");}
try{
i3GEO.configura.tipoimagem = g_tipoimagem;
}
catch(e){alert("funcao depreciada");}
try{
i3GEO.configura.tipotip = g_tipotip;
}
catch(e){alert("funcao depreciada");}
try{
i3GEO.configura.funcaoTip = g_funcaoTip;
}
catch(e){alert("funcao depreciada");}
try{
i3GEO.configura.map3d = g_3dmap;
}
catch(e){alert("funcao depreciada");}
try{
i3GEO.configura.embedLegenda = g_embedLegenda;
}
catch(e){alert("funcao depreciada");}
try{
i3GEO.configura.templateLegenda = g_templateLegenda;
}
catch(e){alert("funcao depreciada");}
try{
if(objmapa.finaliza != "")
i3GEO.finaliza = objmapa.finaliza;
}catch(e){alert("funcao depreciada");};
g_arvoreClick = "";
g_arvoreClicks = "";
if ($i("longlat")){
atualizalonglat = function(){
$i("longlat").innerHTML = objposicaocursor.dmsx + " " + objposicaocursor.dmsy;
};
YAHOO.util.Event.addListener($i("img"),"mousemove", atualizalonglat);
}
try {
if (g_opcoesTemas == "nao")
{i3GEO.arvoreDeCamadas.OPCOESTEMAS = false;}
}
catch(e){alert("funcao depreciada");};
try {
i3GEO.maparef.fatorZoomDinamico = g_zoomRefDinamico;
}
catch(e){alert("funcao depreciada");};
try {
i3GEO.configura.mashuppar = g_mashuppar;
}
catch(e){alert("funcao depreciada");};
try{
//if($i("arvoreAdicionaTema") || $i("outrasOpcoesAdiciona")){
if(!$i("arvoreAdicionaTema"))
{i3GEO.arvoreDeTemas.IDHTML = objmapa.guiaMenu+"obj";}
else
{i3GEO.arvoreDeTemas.IDHTML = "arvoreAdicionaTema";}
//}
}
catch(e){alert("funcao depreciada");};
try {
if (g_uploaddbf == "nao")
{i3GEO.arvoreDeTemas.OPCOESADICIONAIS.uploaddbf = false;}
}
catch(e){alert("funcao depreciada");};
try {
if (g_uploadlocal == "nao")
{i3GEO.arvoreDeTemas.OPCOESADICIONAIS.uploadlocal = false;}
}
catch(e){alert("funcao depreciada");};
try {
if (g_downloadbase == "nao")
{i3GEO.arvoreDeTemas.OPCOESADICIONAIS.downloadbase = false;}
}
catch(e){alert("funcao depreciada");};
try {
if (g_conectarwms == "nao")
{i3GEO.arvoreDeTemas.OPCOESADICIONAIS.conectarwms = false;}
}
catch(e){alert("funcao depreciada");};
try {
if (g_conectargeorss == "nao")
{i3GEO.arvoreDeTemas.OPCOESADICIONAIS.conectargeorss = false;}
}
catch(e){alert("funcao depreciada");};
try {
if (g_nuvemTags == "nao")
{i3GEO.arvoreDeTemas.OPCOESADICIONAIS.nuvemTags = false;}
}
catch(e){alert("funcao depreciada");};
try {
if (g_kml == "nao")
{i3GEO.arvoreDeTemas.OPCOESADICIONAIS.kml = false;}
}
catch(e){alert("funcao depreciada");};
try {
if (g_qrcode == "nao")
{i3GEO.arvoreDeTemas.OPCOESADICIONAIS.qrcode = false;}
}
catch(e){alert("funcao depreciada");};
try{
if(g_tipoacao != "")
{i3GEO.barraDeBotoes.BOTAOPADRAO = g_tipoacao;}
}
catch(e){alert("funcao depreciada");}
try {
if (g_listaPropriedades)
{i3GEO.configura.listaDePropriedadesDoMapa = g_listaPropriedades;}
}
catch(e){alert("funcao depreciada");};
try {
if (g_tempo_aplicar)
{i3GEO.configura.tempoAplicar = g_tempo_aplicar;}
}
catch(e){alert("funcao depreciada");};
try {
if (g_janelaMen == "nao")
{i3GEO.configura.iniciaJanelaMensagens = false;}
}
catch(e){alert("funcao depreciada");};
try {
if (g_locaplic)
{i3GEO.configura.locaplic = g_locaplic;}
}
catch(e){alert("funcao depreciada");};
try {
if (g_tempotip)
{i3GEO.configura.tempoMouseParado = g_tempotip;}
}
catch(e){alert("funcao depreciada");};
try {
if (g_mostraRosa)
{i3GEO.configura.mostraRosaDosVentos = g_mostraRosa;}
}
catch(e){alert("funcao depreciada");};
try {
if (g_visual)
{i3GEO.configura.visual = g_visual;}
}
catch(e){alert("funcao depreciada");};
try {
if (g_mapaRefDisplay)
{i3GEO.configura.mapaRefDisplay = g_mapaRefDisplay;}
}
catch(e){alert("funcao depreciada");};
try {
if (g_docaguias)
{i3GEO.configura.liberaGuias = g_docaguias;}
}
catch(e){alert("funcao depreciada");};
if (window.location.href.split("?")[1]){
g_sid = window.location.href.split("?")[1];
if (g_sid.split("#")[0])
{g_sid = g_sid.split("#")[0];}
}
else
{g_sid = "";}
i3GEO.configura.sid = g_sid;
try{
i3GEO.guias.ATUAL = g_guiaativa;
}
catch(e){alert("funcao depreciada");}
try{
i3GEO.navega.autoRedesenho.INTERVALO = g_autoRedesenho;
}
catch(e){alert("funcao depreciada");}
try{
i3GEO.eventos.NAVEGAMAPA = g_funcoesNavegaMapaDefault;
}
catch(e){alert("funcao depreciada");}
try{
i3GEO.eventos.MOUSEMOVE = g_funcoesMousemoveMapaDefault;
}
catch(e){alert("funcao depreciada");}
try{
i3GEO.eventos.MOUSECLIQUE = g_funcoesClickMapaDefault;
}
catch(e){alert("funcao depreciada");}
try{
i3GEO.navega.lente.POSICAOX = g_posicaoLenteX = 0;
}
catch(e){alert("funcao depreciada");}
try{
i3GEO.navega.lente.POSICAOY = g_posicaoLenteY;
}
catch(e){alert("funcao depreciada");}
try{
i3GEO.navega.destacaTema.TAMANHO = destacaTamanho;
}
catch(e){alert("funcao depreciada");}
if (!$i("tip")){
var novoel = document.createElement("div");
novoel.id = "tip";
novoel.style.position="absolute";
novoel.style.zIndex=5000;
if (navm)
{novoel.style.filter = "alpha(opacity=90)";}
document.body.appendChild(novoel);
}
/*
Function: atualizaListaTemas (depreciado)
Atualiza a lista de temas disponíveis no mapa (guia com a lista de temas)
*/
try{
objmapa.atualizaListaTemas = function(temas)
{alert("atualizaListaTemas foi depreciado. Utilize i3GEO.arvoreDeCamadas")};
}
catch(e){alert("funcao depreciada");}
}
//
//
//
if(typeof(i3GEO) == 'undefined'){
i3GEO = [];
}
cpObj = new cpaint();
cpObj.set_async("true");
cpObj.set_response_type("JSON");
/*
Mapa (depreciado)
*/
function Mapa(e,m)
{
alert("Funcao Mapa foi depreciada. Utilize i3GEO.cria()");
i3GEO.cria();
this.inicializa= function()
{i3GEO.finaliza = this.finaliza;i3GEO.inicia();};
}
//
//funcoes depreciadas
//
objaguarde = {
abre: function(){
alert("objaguarde foi depreciada. Utilize i3GEO.janela");
i3GEO.janela.abreAguarde("i3GEO.atualiza",$trad("o1"));
},
fecha: function(){
alert("objaguarde foi depreciada. Utilize i3GEO.janela");
i3GEO.janela.fechaAguarde("i3GEO.atualiza");
}
};
/*
iCookie (depreciado)
Utilize i3GEO.util
Cria um cookie.
*/
function iCookie(nome,valor)
{
alert("iCookie foi depreciado. Utilize i3GEO.util.insereCookie");
i3GEO.util.insereCookie(nome,valor);
}
/*
pCookie (depreciado)
Utilize i3GEO.util.pegaCookie
*/
function pCookie(nome)
{
alert("pCookie foi depreciado. Utilize i3GEO.util.pegaCookie");
i3GEO.util.pegaCookie(nome);
}
/*
wdocaf (depreciado)
*/
function wdocaf(wlargura,waltura,wsrc,nx,ny,texto)
{var janela = i3GEO.janela.cria(wlargura,waltura,wsrc,nx,ny,texto);}
/*
wdocaf2 (depreciado)
*/
function wdocaf2(wlargura,waltura,wsrc,nx,ny,texto)
{
var id = YAHOO.util.Dom.generateId();
i3GEO.janela.cria(wlargura,waltura,wsrc,nx,ny,texto,id,true);
}
function processevent1(exy1)
{alert("funcao depreciada");}
/*
mensagemBanner (depreciado)
*/
function mensagemBanner()
{alert("funcao depreciada");}
function borra()
{alert("funcao depreciada");}
/*
movecursor (depreciado)
Move o ícone que segue o mouse quando da movimentação sobre o mapa
*/
function movecursor()
{
alert("funcao depreciada");
//
//se a interface openlayers ou flamingo estiver sendo usada, o ícone não é mostrado
//'obj' é o elemento que guarda o ícone que segue o mouse
//
if ($i("obj"))
{
if ($i("openlayers") || $i("flamingo"))
{$i("obj").style.display = "none";}
else
{
var obje = $i("obj").style;
if ($i("img"))
{
eval ("obje." + g_tipotop + "= objposicaocursor.telay + 9 + g_postpx");
eval ("obje." + g_tipoleft + "= objposicaocursor.telax + 9 + g_postpx");
}
else
{
eval ("obje." + g_tipotop + "= objposicaocursor.telay - 15 + g_postpx");
eval ("obje." + g_tipoleft + "= objposicaocursor.telax + 15 + g_postpx");
}
}
}
if($i("box1"))
{
var bx = $i("box1");
if (bx.style.visibility != "visible")
{
//move o box para a posição correta
bx.style.left = objposicaocursor.telax + g_postpx;
bx.style.top = objposicaocursor.telay + g_postpx;
}
}
}
/*
buscaRapida (depreciado)
*/
function buscaRapida()
{alert("funcao depreciada");i3geo_buscarapida()}
/*
initJanelaZoom (depreciado)
*/
function initJanelaZoom(qual){
alert("funcao depreciada");
i3GEO.barraDeBotoes.reativa(qual-1);
}
/*
sobeferramentas(depreciado)
*/
function sobeferramentas()
{alert("funcao depreciada");}
/*
desceferramentas (depreciado)
*/
function desceferramentas()
{alert("funcao depreciada");}
/*
arvoreclick (depreciado)
Marca o checkbox de adição de temas
Parameters:
itemID - ID que identifica qual tema foi clicado. O ID é definido no arquivo .map e no arquivo menutemas/menutemas.xml
*/
function arvoreclick(itemID)
{
alert("funcao depreciada");
if (itemID.search("tema") == 0)
{
if ($i(itemID).checked == true)
{$i(itemID).checked = false;}
else
{$i(itemID).checked = true;}
}
}
/*
pegaTema (depreciado)
Pega o tema de um no na guia de temas.
Utilizado nas opções que operam sobre um tema específico.
Parameters:
celula - objeto que foi clicado
Returns:
Id do tema.
*/
function pegaTema(celula)
{
alert("funcao depreciada");
var nos = celula.parentNode.childNodes;
var tempi = nos.length;
for (var no=0;no<tempi; no++){if (nos[no].type == "checkbox"){return nos[no].value;}}
}
/*
gerafilmef (depreciado)
*/
function gerafilmef(qs)
{alert("funcao depreciada");}
/*
gravaQuadro (depreciado)
*/
function gravaQuadro(variavel,valor)
{alert("funcao depreciada");i3GEO.gadgets.quadros.grava(variavel,valor);}
/*
avancaQuadro (depreciado)
*/
function avancaQuadro()
{alert("funcao depreciada");i3GEO.gadgets.quadros.avanca();}
/*
zoomAnterior (depreciado)
*/
function zoomAnterior(){alert("funcao depreciada");
}
/*
zoomProximo (depreciado)
*/
function zoomProximo(){alert("funcao depreciada");
}
/*
opcoesQuadros (depreciado)
*/
function opcoesQuadros()
{alert("funcao depreciada");}
/*
filmef
*/
function filmef(o)
{alert("funcao depreciada");}
/*
rebobinaf (depreciado)
*/
function rebobinaf()
{alert("funcao depreciada");}
/*
filmezf (depreciado)
*/
function filmezf(o)
{alert("funcao depreciada");}
/*
quadrofilme (depreciado)
*/
function quadrofilme()
{alert("funcao depreciada");}
/*
filmeanimaf (depreciado)
*/
function filmeanimaf()
{alert("funcao depreciada");}
/*
filmeanimarodaf (depreciado)
*/
function filmeanimarodaf(janima)
{alert("funcao depreciada");}
/*
pegaimagens (depreciado)
*/
function pegaimagens()
{alert("funcao depreciada");}
/*
Function calculaArea (depreciado)
*/
function calculaArea(pontos,pixel)
{alert("funcao depreciada");return (i3GEO.calculo.area(pontos,pixel));}
/*
calculadistancia (depreciado)
*/
function calculadistancia(lga,lta,lgb,ltb) //0ms
{alert("funcao depreciada");return (i3GEO.calculo.distancia(lga,lta,lgb,ltb));}
/*
initJanelaRef (depreciado)
*/
function initJanelaRef()
{alert("funcao depreciada");i3GEO.maparef.inicia();}
/*
Variable: g_mapaRefDisplay (depreciado)
*/
/*
atualizaReferencia (depreciado)
*/
/*
ajaxReferencia (depreciado)
*/
function ajaxReferencia(retorno)
{alert("funcao depreciada");i3GEO.maparef.processaImagem(retorno)}
/*
clicouRef (depreciado)
Altera a abrangência do mapa quando o mapa de referência é clicado
*/
function clicouRef()
{alert("funcao depreciada");}
/*
movimentoRef (depreciado)
Pega a coordenada do cursor sobre o mapa de referência
*/
function movimentoRef(obj)
{alert("funcao depreciada");}
/*
mostraTip (depreciado)
Mostra a descrição de um elemento do mapa como uma etiqueta na posição do mouse.
Para que um tema tenha uma etiqueta, é necessário configurar o metadata TIP no map file.
Parameters:
retorno - retorno da função ajax com os dados para montar a etiqueta.
*/
function mostraTip(retorno)
{
//insere div para tips
alert("funcao depreciada");
if (!$i("tip")){
var novoel = document.createElement("div");
novoel.id = "tip";
novoel.style.position="absolute";
novoel.style.zIndex=5000;
if (navm)
{novoel.style.filter = "alpha(opacity=90)";}
document.body.appendChild(novoel);
}
var i = $i("i3geo_rosa");
if(i)
i.style.display="none";
var mostra = false;
var retorno = retorno.data;
if ((retorno != "erro") && (retorno != undefined))
{
if ($i("img"))
{$i("img").title = "";}
if (retorno != "")
{
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>";
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>";
var temas = retorno.split("!");
var tema = temas.length-1;
if(tema >= 0)
{
do
{
var titulo = temas[tema].split("@");
if (g_tipotip == "completo")
{
res += "<span style='text-align:left;font-size:9pt'><b>"+titulo[0]+"</b></span><br>";
}
var ocorrencias = titulo[1].split("*");
var ocorrencia = ocorrencias.length-1;
if(ocorrencia >= 0)
{
do
{
if (ocorrencias[ocorrencia] != "")
{
var pares = ocorrencias[ocorrencia].split("##");
var paresi = pares.length;
for (var par=0;par<paresi; par++)
{
var valores = pares[par].split("#");
if (g_tipotip == "completo")
{
res = res + "<span class='tiptexto' style='text-align:left;font-size:9pt'>" + valores[0] + " <i>" + valores[1] + "</i></span><br>";
var mostra = true;
}
else
{
res = res + "<span class='tiptexto' style='text-align:left;font-size:9pt'><i>" + valores[1] + "</i></span><br>";
var mostra = true;
}
}
}
}
while(ocorrencia--)
}
}
while(tema--)
}
if(!mostra){$i("tip").style.display="none";return;}
if ($i("janelaMen"))
{$i("janelaMenTexto").innerHTML = res;}
else
{
var i = $i("tip");
i.innerHTML = "<table style='text-align:left'><tr><td style='text-align:left'>"+res+"</td></tr></table>";
ist = i.style;
ist.top = objposicaocursor.telay - 10 + "px";
ist.left = objposicaocursor.telax - 20 + "px";
ist.display="block";
}
}
}
}
/*
trataErro (depreciado)
*/
function trataErro()
{alert("funcao depreciada");i3GEO.janela.fechaAguarde();}
/*
mostraguiaf (depreciado)
*/
function mostraguiaf(guia)
{alert("funcao depreciada");
i3GEO.guias.mostra(guia);
/*
if ($i("guia"+guia))
{
var fs=[1,2,3,4,5,6,7,8,9,10,11,12];
for (var j=0;j<10; j++)
{
if ($i("guia"+fs[j]))
{
jj = fs[j];
if ($i("guia"+jj+"obj"))
{$i("guia"+jj+"obj").style.display="none";}
$i("guia"+fs[j]).parentNode.parentNode.style.background="transparent";
}
}
if ($i("guia"+guia+"obj"))
{
$i("guia"+guia+"obj").style.display="block";
}
else
{alert("O objeto guia"+guia+"obj nao existe.");}
$i("guia"+guia).parentNode.parentNode.style.background="white";
}
*/
}
/*
ativaGuias (depreciado)
*/
function ativaGuias()
{alert("funcao depreciada");
//YAHOO.log("ativaGuias", "i3geo");
//ajusta as guias da versão antiga do YUI para a nova
//
//pega o elemento onde as guias serão colocadas
//
for(var g=0;g<12;g++)
{
if ($i("guia"+g))
var gpai = $i("guia"+g).parentNode;
}
//
//monta as guias
//
if(gpai)
{
gpai.id = "guiasYUI";
gpai.className = "yui-navset";
var ins = '<ul class="yui-nav" style="border-width:0pt 0pt 0px;border-color:rgb(240,240,240);border-bottom-color:white;">';
//
//define os títulos das guias padrão
//
try{
if($i(objmapa.guiaTemas))
{$i(objmapa.guiaTemas).innerHTML = $trad("g1");}
if($i(objmapa.guiaMenu))
{$i(objmapa.guiaMenu).innerHTML = $trad("g2");}
if($i(objmapa.guiaLegenda))
{$i(objmapa.guiaLegenda).innerHTML = $trad("g3");}
if($i(objmapa.guiaListaMapas))
{$i(objmapa.guiaListaMapas).innerHTML = $trad("g4");}
}
catch(e){alert("funcao depreciada");};
//
//
for(var g=0;g<12;g++)
{
if ($i("guia"+g))
{
//
//pega os títulos das guias, inclusive as que não são padrão
//
var tituloguia = $i("guia"+g).innerHTML;
//
//remove os espaços em branco
//necessário para manter compatibilidade com versões antigas do i3geo
//
var re = new RegExp(" ", "g");
var tituloguia = tituloguia.replace(re,'');
//
//monta o título das guias
//
ins += '<li><a href="#"><em><div id="guia'+g+'" >'+tituloguia+'</div></em></a></li>';
}
}
ins += "</ul>";
//
//insere as guias em gpai
//
gpai.innerHTML = ins;
for(var g=0;g<12;g++)
{
if ($i("guia"+g))
{
eval('$i("guia'+g+'").onclick = function(){g_guiaativa = "guia'+g+'";mostraguiaf('+g+');}');
$i("guia"+g).onmouseover = function()
{
var bcg = this.parentNode.parentNode.style;
var cor = bcg.background.split(" ")[0];
if(cor != "white")
bcg.background = "#bfdaff";
};
$i("guia"+g).onmouseout = function()
{
var bcg = this.parentNode.parentNode.style;
var cor = bcg.background.split(" ")[0];
if(cor != "white")
bcg.background = "transparent";
};
if($i("guia"+g+"obj"))
{
$i("guia"+g+"obj").style.overflow="auto";
$i("guia"+g+"obj").style.height = i3GEO.parametros.h;
}
}
}
}
//
//define a função que será executada quando o usuário clica em uma guia padrão
//
if ($i(objmapa.guiaTemas))
{
$i(objmapa.guiaTemas).onclick = function()
{
g_guiaativa = objmapa.guiaTemas;mostraguiaf(1);
};
}
if ($i(objmapa.guiaMenu))
{
$i(objmapa.guiaMenu).onclick = function()
{
g_guiaativa = objmapa.guiaMenu;
mostraguiaf(2);
//pega a lista de árvores que devem ser montadas
//é executado apenas se não existir o id=arvoreAdicionaTema
//caso contrário, a árvore é montada na inicialização do i3geo
if(!$i("arvoreAdicionaTema"))
{var ondeArvore = objmapa.guiaMenu+"obj";}
else
{var ondeArvore = "arvoreAdicionaTema";}
//
//para efeitos de compatibilidade
//
if(document.getElementById("outrasOpcoesAdiciona"))
{
i3GEO.arvoreDeTemas.OPCOESADICIONAIS.idonde = "outrasOpcoesAdiciona";
i3GEO.arvoreDeTemas.OPCOESADICIONAIS.incluiArvore = false;
}
//
//cria a árvore
//
i3GEO.arvoreDeTemas.cria(i3GEO.configura.sid,i3GEO.configura.locaplic,ondeArvore);
};
}
if($i(objmapa.guiaLegenda))
{
$i(objmapa.guiaLegenda).onclick = function()
{g_guiaativa = objmapa.guiaLegenda;mostraguiaf(4);objmapa.atualizaLegendaHTML();};
}
if ($i(objmapa.guiaListaMapas))
{
$i(objmapa.guiaListaMapas).onclick = function()
{
g_guiaativa = objmapa.guiaListaMapas;
mostraguiaf(5);
if ($i("banners"))
{
$i("banners").innerHTML == $trad("o1");
var p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?funcao=pegaMapas&g_sid="+i3GEO.configura.sid;
cpObj.call(p,"pegaMapas",pegaMapas);
}
else
{alert("id banners nao encontrado");}
};
}
//YAHOO.log("Fim ativaGuias", "i3geo");
}
/*
docaguias (depreciado)
*/
function docaguias()
{alert("funcao depreciada");i3GEO.guias.libera();}
/*
autoRedesenho (depreciado)
*/
function autoRedesenho(opcao)
{alert("funcao depreciada");}
/*
Function selecao (depreciado)
*/
function selecao()
{alert("funcao depreciada");}
/*
cliqueSelecao (depreciado)
*/
function cliqueSelecao()
{alert("funcao depreciada");}
/*
zoomboxf (depreciado)
*/
function zoomboxf(tipo)
{alert("funcao depreciada");}
/*
i3geo_comboGruposMenu (depreciado)
*/
function i3geo_comboGruposMenu(funcaoOnchange,idDestino,idCombo,largura,altura)
{alert("funcao depreciada");}
/*
i3geo_comboSubGruposMenu (depreciado)
*/
function i3geo_comboSubGruposMenu(funcaoOnchange,idDestino,idCombo,idGrupo,largura,altura)
{alert("funcao depreciada");}
/*
i3geo_comboTemasMenu (depreciado)
*/
function i3geo_comboTemasMenu(funcaoOnchange,idDestino,idCombo,idGrupo,idSubGrupo,largura,altura)
{alert("funcao depreciada");}
/*
remapaf (depreciado)
*/
function remapaf()
{i3GEO.atualiza("");alert("funcao depreciada");}
/*
limpacontainerf (depreciado)
*/
function limpacontainerf()
{alert("funcao depreciada");}
/*
inseremarcaf (depreciado)
*/
function inseremarcaf(xi,yi,funcaoOnclick,container)
{alert("funcao depreciada");i3GEO.utl.insereMarca.cria(xi,yi,funcaoOnclick,container)}
/*
Function moveSelecaoPoli (depreciado)
*/
function moveSelecaoPoli()
{alert("funcao depreciada");}
/*
cliqueSelecaoPoli (depreciado)
*/
function cliqueSelecaoPoli()
{alert("funcao depreciada");}
/*
ativaEntorno (depreciado)
*/
function ativaEntorno()
{alert("funcao depreciada");}
/*
geraURLentorno (depreciado)
*/
function geraURLentorno()
{alert("funcao depreciada");}
/*
ajustaEntorno
*/
function ajustaEntorno()
{alert("funcao depreciada");}
/*
ajaxabrelente (depreciado)
*/
function ajaxabrelente(retorno)
{alert("funcao depreciada");}
/*
movelentef (depreciado)
*/
function movelentef()
{alert("funcao depreciada");}
/*
ativaClicks (depreciado)
*/
function ativaClicks(docMapa)
{alert("funcao depreciada");}
/*
incluir (depreciado)
*/
function incluir(path)
{i3GEO.util.adicionaSHP(path);alert("funcao depreciada");}
/*
pontosdist(depreciado)
*/
function pontosdist()
{
this.xpt = [];
this.ypt = [];
this.dist = [];
this.xtela = [];
this.ytela = [];
this.ximg = [];
this.yimg = [];
this.linhas = [];
alert("funcao depreciada");
}
/*
mudaiconf (depreciado)
*/
function mudaiconf(i)
{i3GEO.barraDeBotoes.ativaIcone(i);alert("funcao depreciada");}
/*
calcposf (depreciado)
*/
function calcposf()
{i3GEO.mapa.ajustaPosicao();alert("funcao depreciada");}
/*
recuperamapa (depreciado)
*/
function recuperamapa()
{alert("funcao depreciada");}
/*
desenhoRichdraw (depreciado)
*/
function desenhoRichdraw(tipo,objeto,n)
{alert("funcao depreciada");}
/*
ajaxhttp (depreciado)
Cria o objeto http utilizado nas funções Ajax.
Returns:
Objeto httprequest.
See Also:
<ajaxexecAS>
*/
function ajaxhttp()
{alert("funcao depreciada");
try
{var objhttp1 = new XMLHttpRequest();}
catch(ee)
{
try{var objhttp1 = new ActiveXObject("Msxml2.XMLHTTP");}
catch(e)
{
try{var objhttp1 = new ActiveXObject("Microsoft.XMLHTTP");}
catch(E)
{var objhttp1 = false;}
}
}
return(objhttp1);
}
/*
ajaxexecAS (depreciado)
Executa uma chamada ajax no modo assíncrono.
Parameters:
programa - programa que será executado.
funcao - função que tratará o resultado.
Returns:
O resultado em uma variável. Se o retorno contiver a palavra "Erro", é gerado um alert.
See Also:
<ajaxhttp>
*/
function ajaxexecAS(programa,funcao)
{alert("funcao depreciada");
var ohttp = ajaxhttp();
ohttp.open("POST",programa,true);
var retorno = "";
ohttp.onreadystatechange=function()
{
if (ohttp.readyState==4)
{
retorno = ohttp.responseText;
var reg = /Warning/gi;
if (retorno.search(reg) != -1)
{
alert("OOps! Ocorreu um erro\n"+retorno);
return;
}
var reg = /erro/gi;
if (retorno.search(reg) != -1)
{
alert("OOps! Ocorreu um erro\n"+retorno);
return;
}
if (funcao != "volta")
{eval(funcao+'("'+retorno+'")');}
}
};
ohttp.send(null);
}
/*
ajaxexec (depreciado)
Executa uma chamada ajax no modo síncrono.
Parameters:
programa - programa que será executado.
funcao - função que tratará o resultado.
Returns:
O resultado em uma variável. Se o retorno contiver a palavra "Erro", é gerado um alert.
See Also:
<ajaxhttp>
*/
function ajaxexec(programa,funcao)
{alert("funcao depreciada");
var objhttp = ajaxhttp();
objhttp.open('GET', programa, false);
objhttp.send(null);
if(objhttp.status == 200)
{
if (funcao != "volta")
{eval(funcao+'("'+objhttp.responseText+'")');}
else
{return objhttp.responseText;}
}
}
/*
ajaxLegendaHTML (depreciado)
*/
function ajaxLegendaHTML(retorno)
{alert("funcao depreciada");}
/*
ajaxLegendaImagem (depreciado)
*/
function ajaxLegendaImagem(retorno)
{alert("funcao depreciada");}
/*
mede (depreciado)
*/
function mede()
{alert("funcao depreciada");}
/*
cliqueMede (depreciado)
*/
function cliqueMede()
{alert("funcao depreciada");}
/*
Function moveMede (depreciado)
*/
function moveMede()
{alert("funcao depreciada");}
/*
area (depreciado)
*/
function area()
{alert("funcao depreciada");}
/*
cliqueArea (depreciado)
*/
function cliqueArea()
{alert("funcao depreciada");}
/*
Function moveArea (depreciado)
*/
function moveArea()
{alert("funcao depreciada");}
/*
textofid (depreciado)
*/
function textofid()
{alert("funcao depreciada");}
/*
inserexy (depreciado)
*/
function inserexy()
{alert("funcao depreciada");}
/*
cliqueInseretoponimo (depreciado)
*/
function cliqueInseretoponimo()
{alert("funcao depreciada");}
/*
cliqueInserexy (depreciado)
*/
function cliqueInserexy()
{alert("funcao depreciada");}
/*
inseregrafico (depreciado)
*/
function inseregrafico()
{alert("funcao depreciada");}
/*
cliqueInseregrafico (depreciado)
*/
function cliqueInseregrafico()
{alert("funcao depreciada");}
/*
ativaHistoricoZoom (depreciado)
*/
function ativaHistoricoZoom(iddiv)
{alert("funcao depreciada");}
function ajaxhttp(){
alert("funcao depreciada");
return i3GEO.util.ajaxhttp();
}
/*
ajaxCorpoMapa (depreciado)
*/
function ajaxCorpoMapa(retorno)
{i3GEO.mapa.corpo.veirifca(retorno);alert("funcao depreciada");}
/*
ajaxredesenha (depreciado)
*/
function ajaxredesenha(retorno)
{i3GEO.atualiza(retorno);alert("funcao depreciada");}
/*
ajaxIniciaParametros (depreciado)
*/
function ajaxIniciaParametros(retorno)
{i3GEO.atualiza(retorno);alert("funcao depreciada");}
/*
montaMenuSuspenso (depreciado)
*/
function montaMenuSuspenso(iddiv){
i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso.idhtml = iddiv;
i3GEO.gadgets.mostraMenuSuspenso();
alert("funcao depreciada");
}
//YAHOO.log("carregou depreciados", "Classes i3geo");