Commit 6821dc2f81016a2124c9bbaf481c1ddd3de4517c

Authored by Edmar Moretti
1 parent 8363153f

Aprimoramento dos códigos

.buildpath
@@ -1,5 +0,0 @@ @@ -1,5 +0,0 @@
1 -<?xml version="1.0" encoding="UTF-8"?>  
2 -<buildpath>  
3 - <buildpathentry kind="src" path=""/>  
4 - <buildpathentry kind="con" path="org.eclipse.php.core.LANGUAGE"/>  
5 -</buildpath>  
@@ -1,28 +0,0 @@ @@ -1,28 +0,0 @@
1 -<?xml version="1.0" encoding="UTF-8"?>  
2 -<projectDescription>  
3 - <name>i3geo</name>  
4 - <comment></comment>  
5 - <projects>  
6 - </projects>  
7 - <buildSpec>  
8 - <buildCommand>  
9 - <name>org.eclipse.wst.validation.validationbuilder</name>  
10 - <arguments>  
11 - </arguments>  
12 - </buildCommand>  
13 - <buildCommand>  
14 - <name>org.eclipse.dltk.core.scriptbuilder</name>  
15 - <arguments>  
16 - </arguments>  
17 - </buildCommand>  
18 - <buildCommand>  
19 - <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>  
20 - <arguments>  
21 - </arguments>  
22 - </buildCommand>  
23 - </buildSpec>  
24 - <natures>  
25 - <nature>org.eclipse.wst.jsdt.core.jsNature</nature>  
26 - <nature>org.eclipse.php.core.PHPNature</nature>  
27 - </natures>  
28 -</projectDescription>  
.settings/.jsdtscope
@@ -1,161 +0,0 @@ @@ -1,161 +0,0 @@
1 -<?xml version="1.0" encoding="UTF-8"?>  
2 -<classpath>  
3 - <classpathentry kind="src" path="admin/js"/>  
4 - <classpathentry excluding="compactados/|zerocal/" kind="src" path="classesjs"/>  
5 - <classpathentry kind="src" path="classesjs/compactados"/>  
6 - <classpathentry kind="src" path="classesjs/zerocal"/>  
7 - <classpathentry kind="src" path="documentacao/javascript"/>  
8 - <classpathentry kind="src" path="exemplos/atlas"/>  
9 - <classpathentry excluding="depreciados/conectarwfs/|imprimir/|depreciados/exemplo/|template/|depreciados/inserexy/|depreciados/downloadbase/|depreciados/|scielo/|conectargeorss/|conectarwms/|navegacaodir_depreciado/|buscarapida/|wmstime/|nuvemtagsflash/" kind="src" path="ferramentas"/>  
10 - <classpathentry kind="src" path="ferramentas/buscarapida"/>  
11 - <classpathentry kind="src" path="ferramentas/conectargeorss"/>  
12 - <classpathentry kind="src" path="ferramentas/conectarwms"/>  
13 - <classpathentry excluding="conectarwfs/|exemplo/|inserexy/|downloadbase/" kind="src" path="ferramentas/depreciados"/>  
14 - <classpathentry kind="src" path="ferramentas/depreciados/conectarwfs"/>  
15 - <classpathentry kind="src" path="ferramentas/depreciados/downloadbase"/>  
16 - <classpathentry kind="src" path="ferramentas/depreciados/exemplo"/>  
17 - <classpathentry kind="src" path="ferramentas/depreciados/inserexy"/>  
18 - <classpathentry kind="src" path="ferramentas/imprimir"/>  
19 - <classpathentry kind="src" path="ferramentas/navegacaodir_depreciado"/>  
20 - <classpathentry kind="src" path="ferramentas/nuvemtagsflash"/>  
21 - <classpathentry kind="src" path="ferramentas/scielo"/>  
22 - <classpathentry kind="src" path="ferramentas/template"/>  
23 - <classpathentry kind="src" path="ferramentas/wmstime"/>  
24 - <classpathentry kind="src" path="mashups"/>  
25 - <classpathentry kind="src" path="pacotes/balloon-tooltips/htdocs_depreciado/js"/>  
26 - <classpathentry kind="src" path="pacotes/balloon-tooltips/htdocs/js"/>  
27 - <classpathentry excluding="JSON/" kind="src" path="pacotes/cpaint"/>  
28 - <classpathentry kind="src" path="pacotes/cpaint/JSON"/>  
29 - <classpathentry kind="src" path="pacotes/cswclient/lib/scripts"/>  
30 - <classpathentry kind="src" path="pacotes/eudock/js"/>  
31 - <classpathentry kind="src" path="pacotes/jsobjects/jsUI-Global"/>  
32 - <classpathentry kind="src" path="pacotes/jsobjects/jsUI-Treeview"/>  
33 - <classpathentry kind="src" path="pacotes/jsts/lib"/>  
34 - <classpathentry kind="src" path="pacotes/mobileesp"/>  
35 - <classpathentry kind="src" path="pacotes/openflashchart"/>  
36 - <classpathentry excluding="depreciado29/" kind="src" path="pacotes/openlayers"/>  
37 - <classpathentry kind="src" path="pacotes/openlayers/depreciado29"/>  
38 - <classpathentry excluding="maps/" kind="src" path="pacotes/proj4js/demo"/>  
39 - <classpathentry kind="src" path="pacotes/proj4js/demo/maps"/>  
40 - <classpathentry kind="src" path="pacotes/proj4js/docs/NaturalDocs/javascript"/>  
41 - <classpathentry excluding="projCode/|defs/" kind="src" path="pacotes/proj4js/lib"/>  
42 - <classpathentry kind="src" path="pacotes/proj4js/lib/defs"/>  
43 - <classpathentry kind="src" path="pacotes/proj4js/lib/projCode"/>  
44 - <classpathentry kind="src" path="pacotes/richdraw"/>  
45 - <classpathentry excluding="scripts/" kind="src" path="pacotes/simile/timeline_2.3.0/timeline_ajax"/>  
46 - <classpathentry kind="src" path="pacotes/simile/timeline_2.3.0/timeline_ajax/scripts"/>  
47 - <classpathentry excluding="scripts/l10n/zh/|scripts/l10n/en/|scripts/l10n/it/|scripts/l10n/cs/|scripts/l10n/nl/|scripts/l10n/fr/|scripts/l10n/es/|scripts/l10n/se/|scripts/l10n/vi/|scripts/l10n/tr/|scripts/l10n/ru/|scripts/l10n/de/" kind="src" path="pacotes/simile/timeline_2.3.0/timeline_js"/>  
48 - <classpathentry kind="src" path="pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/cs"/>  
49 - <classpathentry kind="src" path="pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/de"/>  
50 - <classpathentry kind="src" path="pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/en"/>  
51 - <classpathentry kind="src" path="pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/es"/>  
52 - <classpathentry kind="src" path="pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/fr"/>  
53 - <classpathentry kind="src" path="pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/it"/>  
54 - <classpathentry kind="src" path="pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/nl"/>  
55 - <classpathentry kind="src" path="pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/ru"/>  
56 - <classpathentry kind="src" path="pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/se"/>  
57 - <classpathentry kind="src" path="pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/tr"/>  
58 - <classpathentry kind="src" path="pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/vi"/>  
59 - <classpathentry kind="src" path="pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/zh"/>  
60 - <classpathentry kind="src" path="pacotes/simile/timeline_local_example_1.0/local_example"/>  
61 - <classpathentry kind="src" path="pacotes/tme/javascript"/>  
62 - <classpathentry kind="src" path="pacotes/wpcumulus"/>  
63 - <classpathentry kind="src" path="pacotes/yui270/assets"/>  
64 - <classpathentry kind="src" path="pacotes/yui270/build/animation"/>  
65 - <classpathentry kind="src" path="pacotes/yui270/build/autocomplete"/>  
66 - <classpathentry kind="src" path="pacotes/yui270/build/button"/>  
67 - <classpathentry kind="src" path="pacotes/yui270/build/calendar"/>  
68 - <classpathentry kind="src" path="pacotes/yui270/build/carousel"/>  
69 - <classpathentry kind="src" path="pacotes/yui270/build/charts"/>  
70 - <classpathentry kind="src" path="pacotes/yui270/build/colorpicker"/>  
71 - <classpathentry kind="src" path="pacotes/yui270/build/connection"/>  
72 - <classpathentry kind="src" path="pacotes/yui270/build/container"/>  
73 - <classpathentry kind="src" path="pacotes/yui270/build/cookie"/>  
74 - <classpathentry kind="src" path="pacotes/yui270/build/datasource"/>  
75 - <classpathentry kind="src" path="pacotes/yui270/build/datatable"/>  
76 - <classpathentry kind="src" path="pacotes/yui270/build/dom"/>  
77 - <classpathentry kind="src" path="pacotes/yui270/build/dragdrop"/>  
78 - <classpathentry kind="src" path="pacotes/yui270/build/editor"/>  
79 - <classpathentry kind="src" path="pacotes/yui270/build/element"/>  
80 - <classpathentry kind="src" path="pacotes/yui270/build/event"/>  
81 - <classpathentry kind="src" path="pacotes/yui270/build/get"/>  
82 - <classpathentry kind="src" path="pacotes/yui270/build/history"/>  
83 - <classpathentry kind="src" path="pacotes/yui270/build/imagecropper"/>  
84 - <classpathentry kind="src" path="pacotes/yui270/build/imageloader"/>  
85 - <classpathentry kind="src" path="pacotes/yui270/build/json"/>  
86 - <classpathentry kind="src" path="pacotes/yui270/build/layout"/>  
87 - <classpathentry kind="src" path="pacotes/yui270/build/logger"/>  
88 - <classpathentry kind="src" path="pacotes/yui270/build/menu"/>  
89 - <classpathentry kind="src" path="pacotes/yui270/build/paginator"/>  
90 - <classpathentry kind="src" path="pacotes/yui270/build/profiler"/>  
91 - <classpathentry kind="src" path="pacotes/yui270/build/profilerviewer"/>  
92 - <classpathentry kind="src" path="pacotes/yui270/build/progressbar"/>  
93 - <classpathentry kind="src" path="pacotes/yui270/build/resize"/>  
94 - <classpathentry kind="src" path="pacotes/yui270/build/selector"/>  
95 - <classpathentry kind="src" path="pacotes/yui270/build/slider"/>  
96 - <classpathentry kind="src" path="pacotes/yui270/build/stylesheet"/>  
97 - <classpathentry kind="src" path="pacotes/yui270/build/tabview"/>  
98 - <classpathentry kind="src" path="pacotes/yui270/build/treeview"/>  
99 - <classpathentry kind="src" path="pacotes/yui270/build/uploader"/>  
100 - <classpathentry kind="src" path="pacotes/yui270/build/utilities"/>  
101 - <classpathentry kind="src" path="pacotes/yui270/build/yahoo"/>  
102 - <classpathentry kind="src" path="pacotes/yui270/build/yahoo-dom-event"/>  
103 - <classpathentry kind="src" path="pacotes/yui270/build/yuiloader"/>  
104 - <classpathentry kind="src" path="pacotes/yui270/build/yuiloader-dom-event"/>  
105 - <classpathentry kind="src" path="pacotes/yui270/build/yuitest"/>  
106 - <classpathentry kind="src" path="pacotes/yui290/assets"/>  
107 - <classpathentry kind="src" path="pacotes/yui290/build/animation"/>  
108 - <classpathentry kind="src" path="pacotes/yui290/build/autocomplete"/>  
109 - <classpathentry kind="src" path="pacotes/yui290/build/button"/>  
110 - <classpathentry kind="src" path="pacotes/yui290/build/calendar"/>  
111 - <classpathentry kind="src" path="pacotes/yui290/build/carousel"/>  
112 - <classpathentry kind="src" path="pacotes/yui290/build/charts"/>  
113 - <classpathentry kind="src" path="pacotes/yui290/build/colorpicker"/>  
114 - <classpathentry kind="src" path="pacotes/yui290/build/connection"/>  
115 - <classpathentry kind="src" path="pacotes/yui290/build/container"/>  
116 - <classpathentry kind="src" path="pacotes/yui290/build/cookie"/>  
117 - <classpathentry kind="src" path="pacotes/yui290/build/datasource"/>  
118 - <classpathentry kind="src" path="pacotes/yui290/build/datatable"/>  
119 - <classpathentry kind="src" path="pacotes/yui290/build/datemath"/>  
120 - <classpathentry kind="src" path="pacotes/yui290/build/dom"/>  
121 - <classpathentry kind="src" path="pacotes/yui290/build/dragdrop"/>  
122 - <classpathentry kind="src" path="pacotes/yui290/build/editor"/>  
123 - <classpathentry kind="src" path="pacotes/yui290/build/element"/>  
124 - <classpathentry kind="src" path="pacotes/yui290/build/element-delegate"/>  
125 - <classpathentry kind="src" path="pacotes/yui290/build/event"/>  
126 - <classpathentry kind="src" path="pacotes/yui290/build/event-delegate"/>  
127 - <classpathentry kind="src" path="pacotes/yui290/build/event-mouseenter"/>  
128 - <classpathentry kind="src" path="pacotes/yui290/build/event-simulate"/>  
129 - <classpathentry kind="src" path="pacotes/yui290/build/get"/>  
130 - <classpathentry kind="src" path="pacotes/yui290/build/history"/>  
131 - <classpathentry kind="src" path="pacotes/yui290/build/imagecropper"/>  
132 - <classpathentry kind="src" path="pacotes/yui290/build/imageloader"/>  
133 - <classpathentry kind="src" path="pacotes/yui290/build/json"/>  
134 - <classpathentry kind="src" path="pacotes/yui290/build/layout"/>  
135 - <classpathentry kind="src" path="pacotes/yui290/build/logger"/>  
136 - <classpathentry kind="src" path="pacotes/yui290/build/menu"/>  
137 - <classpathentry kind="src" path="pacotes/yui290/build/paginator"/>  
138 - <classpathentry kind="src" path="pacotes/yui290/build/profiler"/>  
139 - <classpathentry kind="src" path="pacotes/yui290/build/profilerviewer"/>  
140 - <classpathentry kind="src" path="pacotes/yui290/build/progressbar"/>  
141 - <classpathentry kind="src" path="pacotes/yui290/build/resize"/>  
142 - <classpathentry kind="src" path="pacotes/yui290/build/selector"/>  
143 - <classpathentry kind="src" path="pacotes/yui290/build/slider"/>  
144 - <classpathentry kind="src" path="pacotes/yui290/build/storage"/>  
145 - <classpathentry kind="src" path="pacotes/yui290/build/stylesheet"/>  
146 - <classpathentry kind="src" path="pacotes/yui290/build/swf"/>  
147 - <classpathentry kind="src" path="pacotes/yui290/build/swfdetect"/>  
148 - <classpathentry kind="src" path="pacotes/yui290/build/swfstore"/>  
149 - <classpathentry kind="src" path="pacotes/yui290/build/tabview"/>  
150 - <classpathentry kind="src" path="pacotes/yui290/build/treeview"/>  
151 - <classpathentry kind="src" path="pacotes/yui290/build/uploader"/>  
152 - <classpathentry kind="src" path="pacotes/yui290/build/utilities"/>  
153 - <classpathentry kind="src" path="pacotes/yui290/build/yahoo"/>  
154 - <classpathentry kind="src" path="pacotes/yui290/build/yahoo-dom-event"/>  
155 - <classpathentry kind="src" path="pacotes/yui290/build/yuiloader"/>  
156 - <classpathentry kind="src" path="pacotes/yui290/build/yuiloader-dom-event"/>  
157 - <classpathentry kind="src" path="pacotes/yui290/build/yuitest"/>  
158 - <classpathentry excluding="admin/js/|classesjs/|classesjs/compactados/|classesjs/zerocal/|documentacao/javascript/|exemplos/atlas/|ferramentas/|ferramentas/buscarapida/|ferramentas/conectargeorss/|ferramentas/conectarwms/|ferramentas/depreciados/|ferramentas/depreciados/conectarwfs/|ferramentas/depreciados/downloadbase/|ferramentas/depreciados/exemplo/|ferramentas/depreciados/inserexy/|ferramentas/imprimir/|ferramentas/navegacaodir_depreciado/|ferramentas/nuvemtagsflash/|ferramentas/scielo/|ferramentas/template/|ferramentas/wmstime/|mashups/|pacotes/balloon-tooltips/htdocs/js/|pacotes/balloon-tooltips/htdocs_depreciado/js/|pacotes/cpaint/|pacotes/cpaint/JSON/|pacotes/cswclient/lib/scripts/|pacotes/eudock/js/|pacotes/jsobjects/jsUI-Global/|pacotes/jsobjects/jsUI-Treeview/|pacotes/jsts/lib/|pacotes/mobileesp/|pacotes/openflashchart/|pacotes/openlayers/|pacotes/openlayers/depreciado29/|pacotes/proj4js/demo/|pacotes/proj4js/demo/maps/|pacotes/proj4js/docs/NaturalDocs/javascript/|pacotes/proj4js/lib/|pacotes/proj4js/lib/defs/|pacotes/proj4js/lib/projCode/|pacotes/richdraw/|pacotes/simile/timeline_2.3.0/timeline_ajax/|pacotes/simile/timeline_2.3.0/timeline_ajax/scripts/|pacotes/simile/timeline_2.3.0/timeline_js/|pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/cs/|pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/de/|pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/en/|pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/es/|pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/fr/|pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/it/|pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/nl/|pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/ru/|pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/se/|pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/tr/|pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/vi/|pacotes/simile/timeline_2.3.0/timeline_js/scripts/l10n/zh/|pacotes/simile/timeline_local_example_1.0/local_example/|pacotes/tme/javascript/|pacotes/wpcumulus/|pacotes/yui270/assets/|pacotes/yui270/build/animation/|pacotes/yui270/build/autocomplete/|pacotes/yui270/build/button/|pacotes/yui270/build/calendar/|pacotes/yui270/build/carousel/|pacotes/yui270/build/charts/|pacotes/yui270/build/colorpicker/|pacotes/yui270/build/connection/|pacotes/yui270/build/container/|pacotes/yui270/build/cookie/|pacotes/yui270/build/datasource/|pacotes/yui270/build/datatable/|pacotes/yui270/build/dom/|pacotes/yui270/build/dragdrop/|pacotes/yui270/build/editor/|pacotes/yui270/build/element/|pacotes/yui270/build/event/|pacotes/yui270/build/get/|pacotes/yui270/build/history/|pacotes/yui270/build/imagecropper/|pacotes/yui270/build/imageloader/|pacotes/yui270/build/json/|pacotes/yui270/build/layout/|pacotes/yui270/build/logger/|pacotes/yui270/build/menu/|pacotes/yui270/build/paginator/|pacotes/yui270/build/profiler/|pacotes/yui270/build/profilerviewer/|pacotes/yui270/build/progressbar/|pacotes/yui270/build/resize/|pacotes/yui270/build/selector/|pacotes/yui270/build/slider/|pacotes/yui270/build/stylesheet/|pacotes/yui270/build/tabview/|pacotes/yui270/build/treeview/|pacotes/yui270/build/uploader/|pacotes/yui270/build/utilities/|pacotes/yui270/build/yahoo-dom-event/|pacotes/yui270/build/yahoo/|pacotes/yui270/build/yuiloader-dom-event/|pacotes/yui270/build/yuiloader/|pacotes/yui270/build/yuitest/|pacotes/yui290/assets/|pacotes/yui290/build/animation/|pacotes/yui290/build/autocomplete/|pacotes/yui290/build/button/|pacotes/yui290/build/calendar/|pacotes/yui290/build/carousel/|pacotes/yui290/build/charts/|pacotes/yui290/build/colorpicker/|pacotes/yui290/build/connection/|pacotes/yui290/build/container/|pacotes/yui290/build/cookie/|pacotes/yui290/build/datasource/|pacotes/yui290/build/datatable/|pacotes/yui290/build/datemath/|pacotes/yui290/build/dom/|pacotes/yui290/build/dragdrop/|pacotes/yui290/build/editor/|pacotes/yui290/build/element-delegate/|pacotes/yui290/build/element/|pacotes/yui290/build/event-delegate/|pacotes/yui290/build/event-mouseenter/|pacotes/yui290/build/event-simulate/|pacotes/yui290/build/event/|pacotes/yui290/build/get/|pacotes/yui290/build/history/|pacotes/yui290/build/imagecropper/|pacotes/yui290/build/imageloader/|pacotes/yui290/build/json/|pacotes/yui290/build/layout/|pacotes/yui290/build/logger/|pacotes/yui290/build/menu/|pacotes/yui290/build/paginator/|pacotes/yui290/build/profiler/|pacotes/yui290/build/profilerviewer/|pacotes/yui290/build/progressbar/|pacotes/yui290/build/resize/|pacotes/yui290/build/selector/|pacotes/yui290/build/slider/|pacotes/yui290/build/storage/|pacotes/yui290/build/stylesheet/|pacotes/yui290/build/swf/|pacotes/yui290/build/swfdetect/|pacotes/yui290/build/swfstore/|pacotes/yui290/build/tabview/|pacotes/yui290/build/treeview/|pacotes/yui290/build/uploader/|pacotes/yui290/build/utilities/|pacotes/yui290/build/yahoo-dom-event/|pacotes/yui290/build/yahoo/|pacotes/yui290/build/yuiloader-dom-event/|pacotes/yui290/build/yuiloader/|pacotes/yui290/build/yuitest/" including="admin/|classesjs/|ferramentas/|mashups/|pacotes/balloon-tooltips/|pacotes/cpaint/|pacotes/eudock/|pacotes/openlayers/|pacotes/richdraw/|pacotes/yui290/" kind="src" path=""/>  
159 - <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>  
160 - <classpathentry kind="output" path=""/>  
161 -</classpath>  
.settings/org.eclipse.mylyn.tasks.ui.prefs
@@ -1,3 +0,0 @@ @@ -1,3 +0,0 @@
1 -eclipse.preferences.version=1  
2 -project.repository.kind=trac  
3 -project.repository.url=http\://svn.softwarepublico.gov.br/trac/i3geo  
.settings/org.eclipse.wst.jsdt.ui.superType.container
@@ -1 +0,0 @@ @@ -1 +0,0 @@
1 -org.eclipse.wst.jsdt.launching.JRE_CONTAINER  
2 \ No newline at end of file 0 \ No newline at end of file
.settings/org.eclipse.wst.jsdt.ui.superType.name
@@ -1 +0,0 @@ @@ -1 +0,0 @@
1 -Global  
2 \ No newline at end of file 0 \ No newline at end of file
admin/admin.db
No preview for this file type
admin/js/webservices.js
@@ -39,7 +39,7 @@ Inicializa o editor @@ -39,7 +39,7 @@ Inicializa o editor
39 */ 39 */
40 function initMenu() 40 function initMenu()
41 { 41 {
42 - core_ativaBotaoAdicionaLinha("../php/webservices.php?funcao=alterarWS","adiciona") 42 + core_ativaBotaoAdicionaLinha("../php/webservices.php?funcao=alterarWS","adiciona");
43 core_carregando("ativa"); 43 core_carregando("ativa");
44 core_ativaPainelAjuda("ajuda","botaoAjuda"); 44 core_ativaPainelAjuda("ajuda","botaoAjuda");
45 pegaWS(); 45 pegaWS();
@@ -56,14 +56,14 @@ function pegaWS() @@ -56,14 +56,14 @@ function pegaWS()
56 // 56 //
57 //pega o tipo de WS que será listado se tiver sido definido na url 57 //pega o tipo de WS que será listado se tiver sido definido na url
58 // 58 //
59 - var tipows = ""; 59 + var tipows = "",u;
60 try{ 60 try{
61 - var u = window.location.href.split("?");  
62 - var u = u[1].split("="); 61 + u = window.location.href.split("?");
  62 + u = u[1].split("=");
63 tipows = u[1]; 63 tipows = u[1];
64 } 64 }
65 catch(e){tipows = "";} 65 catch(e){tipows = "";}
66 - core_pegaDados("buscando endereços...","../php/webservices.php?funcao=pegaWS&tipows="+tipows,"montaTabela") 66 + core_pegaDados("buscando endereços...","../php/webservices.php?funcao=pegaWS&tipows="+tipows,"montaTabela");
67 } 67 }
68 /* 68 /*
69 Function: montaTabela 69 Function: montaTabela
@@ -132,7 +132,7 @@ function montaTabela(dados) @@ -132,7 +132,7 @@ function montaTabela(dados)
132 failure:core_handleFailure, 132 failure:core_handleFailure,
133 argument: { foo:"foo", bar:"bar" } 133 argument: { foo:"foo", bar:"bar" }
134 }; 134 };
135 - core_makeRequest(sUrl,callback) 135 + core_makeRequest(sUrl,callback);
136 } 136 }
137 137
138 }); 138 });
@@ -155,7 +155,6 @@ function montaEditor(dados,id,recordid) @@ -155,7 +155,6 @@ function montaEditor(dados,id,recordid)
155 { 155 {
156 function on_editorCheckBoxChange(p_oEvent) 156 function on_editorCheckBoxChange(p_oEvent)
157 { 157 {
158 - var ins = "";  
159 if(p_oEvent.newValue.get("value") == "OK") 158 if(p_oEvent.newValue.get("value") == "OK")
160 { 159 {
161 gravaDados(id,recordid); 160 gravaDados(id,recordid);
@@ -186,7 +185,7 @@ function montaEditor(dados,id,recordid) @@ -186,7 +185,7 @@ function montaEditor(dados,id,recordid)
186 } 185 }
187 YAHOO.example.container.panelEditor.show(); 186 YAHOO.example.container.panelEditor.show();
188 //carrega os dados na janela 187 //carrega os dados na janela
189 - $i("editor_bd").innerHTML = montaDiv(dados[0]) 188 + $i("editor_bd").innerHTML = montaDiv(dados[0]);
190 core_carregando("desativa"); 189 core_carregando("desativa");
191 } 190 }
192 function montaDiv(i) 191 function montaDiv(i)
@@ -198,42 +197,42 @@ function montaDiv(i) @@ -198,42 +197,42 @@ function montaDiv(i)
198 {titulo:"Autor:",id:"Eautor_ws",size:"50",value:i.autor_ws,tipo:"text",div:""}, 197 {titulo:"Autor:",id:"Eautor_ws",size:"50",value:i.autor_ws,tipo:"text",div:""},
199 {titulo:"Endereço:",id:"Elink_ws",size:"50",value:i.link_ws,tipo:"text",div:""} 198 {titulo:"Endereço:",id:"Elink_ws",size:"50",value:i.link_ws,tipo:"text",div:""}
200 ] 199 ]
201 - }  
202 - var ins = ""  
203 - ins += core_geraLinhas(param) 200 + };
  201 + var ins = "";
  202 + ins += core_geraLinhas(param);
204 203
205 - ins += "<p>Tipo:<br>"  
206 - ins += "<select id='Etipo_ws' />"  
207 - ins += "<option value='' " 204 + ins += "<p>Tipo:<br>";
  205 + ins += "<select id='Etipo_ws' />";
  206 + ins += "<option value='' ";
208 if (i.tipo_ws == ""){ins += "selected";} 207 if (i.tipo_ws == ""){ins += "selected";}
209 - ins += ">---</option>"  
210 - ins += "<option value='KML' " 208 + ins += ">---</option>";
  209 + ins += "<option value='KML' ";
211 if (i.tipo_ws == "KML"){ins += "selected";} 210 if (i.tipo_ws == "KML"){ins += "selected";}
212 - ins += " >KML</option>"  
213 - ins += "<option value='WMS' " 211 + ins += " >KML</option>";
  212 + ins += "<option value='WMS' ";
214 if (i.tipo_ws == "WMS"){ins += "selected";} 213 if (i.tipo_ws == "WMS"){ins += "selected";}
215 - ins += " >WMS</option>"  
216 - ins += "<option value='GEORSS' " 214 + ins += " >WMS</option>";
  215 + ins += "<option value='GEORSS' ";
217 if (i.tipo_ws == "GEORSS"){ins += "selected";} 216 if (i.tipo_ws == "GEORSS"){ins += "selected";}
218 - ins += " >GEORSS</option>"  
219 - ins += "<option value='WS' " 217 + ins += " >GEORSS</option>";
  218 + ins += "<option value='WS' ";
220 if (i.tipo_ws == "WS"){ins += "selected";} 219 if (i.tipo_ws == "WS"){ins += "selected";}
221 - ins += " >WS</option>"  
222 - ins += "<option value='DOWNLOAD' " 220 + ins += " >WS</option>";
  221 + ins += "<option value='DOWNLOAD' ";
223 if (i.tipo_ws == "DOWNLOAD"){ins += "selected";} 222 if (i.tipo_ws == "DOWNLOAD"){ins += "selected";}
224 - ins += " >DOWNLOAD</option>"  
225 - ins += "<option value='GEOJSON' " 223 + ins += " >DOWNLOAD</option>";
  224 + ins += "<option value='GEOJSON' ";
226 if (i.tipo_ws == "GEOJSON"){ins += "selected";} 225 if (i.tipo_ws == "GEOJSON"){ins += "selected";}
227 - ins += " >GEOJSON</option>" 226 + ins += " >GEOJSON</option>";
228 227
229 - ins += "</select></p>"  
230 - return(ins) 228 + ins += "</select></p>";
  229 + return(ins);
231 } 230 }
232 function excluiLinha(id,row) 231 function excluiLinha(id,row)
233 { 232 {
234 var mensagem = " excluindo o registro do id= "+id; 233 var mensagem = " excluindo o registro do id= "+id;
235 var sUrl = "../php/webservices.php?funcao=excluir&id="+id; 234 var sUrl = "../php/webservices.php?funcao=excluir&id="+id;
236 - core_excluiLinha(sUrl,row,mensagem) 235 + core_excluiLinha(sUrl,row,mensagem);
237 } 236 }
238 /* 237 /*
239 Function: gravaDados 238 Function: gravaDados
@@ -244,11 +243,12 @@ Aplica as alterações feitas em um WS @@ -244,11 +243,12 @@ Aplica as alterações feitas em um WS
244 */ 243 */
245 function gravaDados(id,recordid) 244 function gravaDados(id,recordid)
246 { 245 {
247 - var campos = new Array("desc","nome","link","tipo","autor")  
248 - var par = "" 246 + var campos = new Array("desc","nome","link","tipo","autor"),
  247 + par = "",
  248 + i;
249 for (i=0;i<campos.length;i++) 249 for (i=0;i<campos.length;i++)
250 {par += "&"+campos[i]+"_ws="+($i("E"+campos[i]+"_ws").value)} 250 {par += "&"+campos[i]+"_ws="+($i("E"+campos[i]+"_ws").value)}
251 - par += "&id_ws="+id 251 + par += "&id_ws="+id;
252 core_carregando("ativa"); 252 core_carregando("ativa");
253 core_carregando(" gravando o registro do id= "+id); 253 core_carregando(" gravando o registro do id= "+id);
254 var sUrl = "../php/webservices.php?funcao=alterarWS"+par; 254 var sUrl = "../php/webservices.php?funcao=alterarWS"+par;
@@ -261,12 +261,12 @@ function gravaDados(id,recordid) @@ -261,12 +261,12 @@ function gravaDados(id,recordid)
261 if(YAHOO.lang.JSON.parse(o.responseText) == "erro") 261 if(YAHOO.lang.JSON.parse(o.responseText) == "erro")
262 { 262 {
263 core_carregando("<span style=color:red >Não foi possível excluir. Verifique se não existem registros vinculados</span>"); 263 core_carregando("<span style=color:red >Não foi possível excluir. Verifique se não existem registros vinculados</span>");
264 - setTimeout("core_carregando('desativa')",3000) 264 + setTimeout("core_carregando('desativa')",3000);
265 } 265 }
266 else 266 else
267 { 267 {
268 var rec = myDataTable.getRecordSet().getRecord(recordid); 268 var rec = myDataTable.getRecordSet().getRecord(recordid);
269 - myDataTable.updateRow(rec,YAHOO.lang.JSON.parse(o.responseText)[0]) 269 + myDataTable.updateRow(rec,YAHOO.lang.JSON.parse(o.responseText)[0]);
270 core_carregando("desativa"); 270 core_carregando("desativa");
271 } 271 }
272 YAHOO.example.container.panelEditor.destroy(); 272 YAHOO.example.container.panelEditor.destroy();
atlas/geral.htm
@@ -25,6 +25,7 @@ @@ -25,6 +25,7 @@
25 <!-- 25 <!--
26 Guias principais, não mude o ID, apenas o nome se for desejado 26 Guias principais, não mude o ID, apenas o nome se for desejado
27 --> 27 -->
  28 + <td>
28 <div class=verdeescuro style="top:0px;cursor:pointer;"> 29 <div class=verdeescuro style="top:0px;cursor:pointer;">
29 <div id=guia1 class=guia ></div> 30 <div id=guia1 class=guia ></div>
30 <div id=guia2 class=guia ></div> 31 <div id=guia2 class=guia ></div>
classesjs/.project 0 → 100644
@@ -0,0 +1,17 @@ @@ -0,0 +1,17 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<projectDescription>
  3 + <name>i3geo classesjs</name>
  4 + <comment></comment>
  5 + <projects>
  6 + </projects>
  7 + <buildSpec>
  8 + <buildCommand>
  9 + <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
  10 + <arguments>
  11 + </arguments>
  12 + </buildCommand>
  13 + </buildSpec>
  14 + <natures>
  15 + <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
  16 + </natures>
  17 +</projectDescription>
classesjs/.settings/.jsdtscope 0 → 100644
@@ -0,0 +1,9 @@ @@ -0,0 +1,9 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<classpath>
  3 + <classpathentry excluding="compactados/|zerocal/" kind="src" path=""/>
  4 + <classpathentry kind="src" path="compactados"/>
  5 + <classpathentry kind="src" path="zerocal"/>
  6 + <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
  7 + <classpathentry kind="con" path="org.eclipse.wst.jsdt.USER_LIBRARY/YUI"/>
  8 + <classpathentry kind="output" path=""/>
  9 +</classpath>
classesjs/.settings/org.eclipse.wst.jsdt.ui.superType.container 0 → 100644
@@ -0,0 +1 @@ @@ -0,0 +1 @@
  1 +org.eclipse.wst.jsdt.launching.JRE_CONTAINER
0 \ No newline at end of file 2 \ No newline at end of file
classesjs/.settings/org.eclipse.wst.jsdt.ui.superType.name 0 → 100644
@@ -0,0 +1 @@ @@ -0,0 +1 @@
  1 +Global
0 \ No newline at end of file 2 \ No newline at end of file
classesjs/.settings/org.eclipse.wst.validation.prefs 0 → 100644
@@ -0,0 +1,8 @@ @@ -0,0 +1,8 @@
  1 +DELEGATES_PREFERENCE=delegateValidatorList
  2 +USER_BUILD_PREFERENCE=enabledBuildValidatorList
  3 +USER_MANUAL_PREFERENCE=enabledManualValidatorList
  4 +USER_PREFERENCE=overrideGlobalPreferencesfalse
  5 +eclipse.preferences.version=1
  6 +override=false
  7 +suspend=true
  8 +vf.version=3
classesjs/classe_analise.js
@@ -69,7 +69,7 @@ i3GEO.analise = { @@ -69,7 +69,7 @@ i3GEO.analise = {
69 if(typeof(console) !== 'undefined'){console.info("i3GEO.analise.dialogo.linhaDoTempo()");} 69 if(typeof(console) !== 'undefined'){console.info("i3GEO.analise.dialogo.linhaDoTempo()");}
70 i3GEO.janela.cria("450px","300px",i3GEO.configura.locaplic+"/ferramentas/linhadotempo/index.php","","","Linha do tempo <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=3&idajuda=88' >&nbsp;&nbsp;&nbsp;</a>"); 70 i3GEO.janela.cria("450px","300px",i3GEO.configura.locaplic+"/ferramentas/linhadotempo/index.php","","","Linha do tempo <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=3&idajuda=88' >&nbsp;&nbsp;&nbsp;</a>");
71 atualizaLinhaDoTempo = function(){ 71 atualizaLinhaDoTempo = function(){
72 - var doc,temp; 72 + var doc = "";
73 try{ 73 try{
74 if (navn){ 74 if (navn){
75 if ($i("wdocai")) 75 if ($i("wdocai"))
@@ -79,7 +79,7 @@ i3GEO.analise = { @@ -79,7 +79,7 @@ i3GEO.analise = {
79 if(document.frames("wdocai")) 79 if(document.frames("wdocai"))
80 {doc = document.frames("wdocai").document;} 80 {doc = document.frames("wdocai").document;}
81 } 81 }
82 - temp = doc.getElementById("tl") ? window.parent.wdocai.carregaDados() : i3GEO.eventos.NAVEGAMAPA.remove("atualizaLinhaDoTempo()"); 82 + doc.getElementById("tl") ? window.parent.wdocai.carregaDados() : i3GEO.eventos.NAVEGAMAPA.remove("atualizaLinhaDoTempo()");
83 } 83 }
84 catch(e){ 84 catch(e){
85 i3GEO.eventos.NAVEGAMAPA.remove("atualizaLinhaDoTempo()"); 85 i3GEO.eventos.NAVEGAMAPA.remove("atualizaLinhaDoTempo()");
@@ -135,7 +135,7 @@ i3GEO.analise = { @@ -135,7 +135,7 @@ i3GEO.analise = {
135 Abre a janela de diálogo da ferramenta pontosdistri 135 Abre a janela de diálogo da ferramenta pontosdistri
136 */ 136 */
137 pontosdistri: function(){ 137 pontosdistri: function(){
138 - var temp = i3GEO.parametros.r === "nao" ? alert("Opção não disponível") : i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.pontosdistri()","pontosdistri","pontosDistri"); 138 + i3GEO.parametros.r === "nao" ? alert("Opção não disponível") : i3GEO.util.dialogoFerramenta("i3GEO.analise.dialogo.pontosdistri()","pontosdistri","pontosDistri");
139 }, 139 },
140 /* 140 /*
141 Function: pontoempoligono 141 Function: pontoempoligono
@@ -265,7 +265,7 @@ i3GEO.analise = { @@ -265,7 +265,7 @@ i3GEO.analise = {
265 Cria a janela para mostrar os resultados da medição 265 Cria a janela para mostrar os resultados da medição
266 */ 266 */
267 criaJanela: function(){ 267 criaJanela: function(){
268 - var novoel,ins,imagemxy,temp,janela; 268 + var novoel,ins,imagemxy,janela;
269 if (!$i("mostradistancia")){ 269 if (!$i("mostradistancia")){
270 novoel = document.createElement("div"); 270 novoel = document.createElement("div");
271 novoel.id = "mostradistancia"; 271 novoel.id = "mostradistancia";
@@ -306,7 +306,7 @@ i3GEO.analise = { @@ -306,7 +306,7 @@ i3GEO.analise = {
306 //botao que abre a ferramenta de cálculo de perfis. 306 //botao que abre a ferramenta de cálculo de perfis.
307 //pontosdistobj contém as coordenadas dos pontos 307 //pontosdistobj contém as coordenadas dos pontos
308 // 308 //
309 - temp = new YAHOO.widget.Button( 309 + new YAHOO.widget.Button(
310 "i3GEObotaoPerfil", 310 "i3GEObotaoPerfil",
311 {onclick:{fn: function(){ 311 {onclick:{fn: function(){
312 var js = i3GEO.configura.locaplic+"/ferramentas/perfil/index.js.php"; 312 var js = i3GEO.configura.locaplic+"/ferramentas/perfil/index.js.php";
classesjs/classe_arvoredecamadas.js
@@ -526,8 +526,9 @@ i3GEO.arvoreDeCamadas = { @@ -526,8 +526,9 @@ i3GEO.arvoreDeCamadas = {
526 i3GEO.arvoreDeCamadas.CAMADAS = ""; 526 i3GEO.arvoreDeCamadas.CAMADAS = "";
527 forca = false; 527 forca = false;
528 } 528 }
529 - var estilo,temp,currentIconMode,newVal,root,tempNode,titulo,d,c,ltema,temaNode,grupoNode,i,j,n,nk,k,noGrupo, 529 + var estilo,temp,newVal,root,tempNode,titulo,d,c,ltema,temaNode,i,j,n,nk,k,noGrupo,
530 incluidos=[], 530 incluidos=[],
  531 + grupoNode = "",
531 grupoLayers = i3GEO.configura.grupoLayers, 532 grupoLayers = i3GEO.configura.grupoLayers,
532 textoTema = ""; 533 textoTema = "";
533 // 534 //
@@ -553,6 +554,7 @@ i3GEO.arvoreDeCamadas = { @@ -553,6 +554,7 @@ i3GEO.arvoreDeCamadas = {
553 {i3GEO.arvoreDeCamadas.CAMADASINICIAIS = temas;} 554 {i3GEO.arvoreDeCamadas.CAMADASINICIAIS = temas;}
554 (function(){ 555 (function(){
555 function changeIconMode(){ 556 function changeIconMode(){
  557 + var currentIconMode = "";
556 newVal = parseInt(this.value,10); 558 newVal = parseInt(this.value,10);
557 if (newVal !== currentIconMode) 559 if (newVal !== currentIconMode)
558 {currentIconMode = newVal;} 560 {currentIconMode = newVal;}
@@ -756,21 +758,20 @@ i3GEO.arvoreDeCamadas = { @@ -756,21 +758,20 @@ i3GEO.arvoreDeCamadas = {
756 ativaDragDrop: function(){ 758 ativaDragDrop: function(){
757 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeCamadas.ativaDragDrop()");} 759 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeCamadas.ativaDragDrop()");}
758 var Dom = YAHOO.util.Dom, 760 var Dom = YAHOO.util.Dom,
759 - Event = YAHOO.util.Event,  
760 - DDM = YAHOO.util.DragDropMgr; 761 + Event = YAHOO.util.Event;
761 YAHOO.example.DDList = ""; 762 YAHOO.example.DDList = "";
762 YAHOO.example.DDApp = { 763 YAHOO.example.DDApp = {
763 init: function() 764 init: function()
764 { 765 {
765 - var ddtarget,i,ltema,ddlist; 766 + var i,ltema;
766 if($i("i3geo_lixeira") && i3GEO.arvoreDeCamadas.ARRASTARLIXEIRA === true) 767 if($i("i3geo_lixeira") && i3GEO.arvoreDeCamadas.ARRASTARLIXEIRA === true)
767 - {ddtarget = new YAHOO.util.DDTarget("i3geo_lixeira");} 768 + {new YAHOO.util.DDTarget("i3geo_lixeira");}
768 i = i3GEO.arvoreDeCamadas.CAMADAS.length-1; 769 i = i3GEO.arvoreDeCamadas.CAMADAS.length-1;
769 if (i3GEO.arvoreDeCamadas.CAMADAS.length-1 >= 0){ 770 if (i3GEO.arvoreDeCamadas.CAMADAS.length-1 >= 0){
770 do{ 771 do{
771 ltema = i3GEO.arvoreDeCamadas.CAMADAS[i]; 772 ltema = i3GEO.arvoreDeCamadas.CAMADAS[i];
772 if($i("arrastar_"+ltema.name)) 773 if($i("arrastar_"+ltema.name))
773 - {ddlist = new YAHOO.example.DDList("arrastar_"+ltema.name);} 774 + {new YAHOO.example.DDList("arrastar_"+ltema.name);}
774 } 775 }
775 while(i--); 776 while(i--);
776 } 777 }
@@ -827,7 +828,7 @@ i3GEO.arvoreDeCamadas = { @@ -827,7 +828,7 @@ i3GEO.arvoreDeCamadas = {
827 YAHOO.util.Dom.setStyle('i3geo_lixeira', 'border', '0px solid blue'); 828 YAHOO.util.Dom.setStyle('i3geo_lixeira', 'border', '0px solid blue');
828 }, 829 },
829 onDragDrop: function(e, id){ 830 onDragDrop: function(e, id){
830 - var pt,region,tema,destEl,els,lista,noid,temp, 831 + var pt,region,tema,destEl,els,lista,temp,
831 DDM = YAHOO.util.DragDropMgr, 832 DDM = YAHOO.util.DragDropMgr,
832 Dom = YAHOO.util.Dom; 833 Dom = YAHOO.util.Dom;
833 if (DDM.interactionInfo.drop.length === 1){ 834 if (DDM.interactionInfo.drop.length === 1){
@@ -847,11 +848,9 @@ i3GEO.arvoreDeCamadas = { @@ -847,11 +848,9 @@ i3GEO.arvoreDeCamadas = {
847 else{ 848 else{
848 if(i3GEO.arvoreDeCamadas.ARRASTARORDEM === true){ 849 if(i3GEO.arvoreDeCamadas.ARRASTARORDEM === true){
849 destEl = Dom.get(id); 850 destEl = Dom.get(id);
850 - noid = id.split("arrastar_")[1];  
851 destEl.appendChild(this.getEl()); 851 destEl.appendChild(this.getEl());
852 els = i3GEO.arvoreDeCamadas.listaLigadosDesligados(); 852 els = i3GEO.arvoreDeCamadas.listaLigadosDesligados();
853 lista = els[2].join(","); 853 lista = els[2].join(",");
854 - //i3GEO.contadorAtualiza++;  
855 temp = function(retorno){ 854 temp = function(retorno){
856 i3GEO.atualiza(retorno); 855 i3GEO.atualiza(retorno);
857 if(i3GEO.Interface.ATUAL === "openlayers") 856 if(i3GEO.Interface.ATUAL === "openlayers")
@@ -878,8 +877,7 @@ i3GEO.arvoreDeCamadas = { @@ -878,8 +877,7 @@ i3GEO.arvoreDeCamadas = {
878 } 877 }
879 }, 878 },
880 onDragOver: function(e, id){ 879 onDragOver: function(e, id){
881 - var srcEl,destEl;  
882 - srcEl = this.getEl(); 880 + var destEl;
883 destEl = YAHOO.util.Dom.get(id); 881 destEl = YAHOO.util.Dom.get(id);
884 // We are only concerned with list items, we ignore the dragover 882 // We are only concerned with list items, we ignore the dragover
885 // notifications for the list. 883 // notifications for the list.
@@ -907,7 +905,7 @@ i3GEO.arvoreDeCamadas = { @@ -907,7 +905,7 @@ i3GEO.arvoreDeCamadas = {
907 montaOpcoes: function(node){ 905 montaOpcoes: function(node){
908 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeCamadas.montaOpcoes()");} 906 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeCamadas.montaOpcoes()");}
909 //YAHOO.log("Montando as opções da árvore de camadas", "i3geo"); 907 //YAHOO.log("Montando as opções da árvore de camadas", "i3geo");
910 - var d,conteudo,opcoesNode,idtema,ltema,farol,mfarol,tnome = "",iconesNode, 908 + var opcoesNode,idtema,ltema,farol,mfarol,tnome = "",
911 imb = i3GEO.util.$im("branco.gif"), 909 imb = i3GEO.util.$im("branco.gif"),
912 funcoes = i3GEO.arvoreDeCamadas.FUNCOES; 910 funcoes = i3GEO.arvoreDeCamadas.FUNCOES;
913 idtema = node.data.id; 911 idtema = node.data.id;
@@ -943,7 +941,7 @@ i3GEO.arvoreDeCamadas = { @@ -943,7 +941,7 @@ i3GEO.arvoreDeCamadas = {
943 {tnome += "&nbsp;<img class='fonte' src='"+imb +"' title='"+$trad("a9")+"' onclick='i3GEO.tema.fonte(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("a9")+"','fonte')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />";} 941 {tnome += "&nbsp;<img class='fonte' src='"+imb +"' title='"+$trad("a9")+"' onclick='i3GEO.tema.fonte(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("a9")+"','fonte')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />";}
944 if( (ltema.zoomtema.toLowerCase() === "sim") && (funcoes.zoomtema === true)) 942 if( (ltema.zoomtema.toLowerCase() === "sim") && (funcoes.zoomtema === true))
945 {tnome += "&nbsp;<img class='extent' src='"+imb +"' title='"+$trad("t17")+"' onclick='i3GEO.tema.zoom(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t18")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />";} 943 {tnome += "&nbsp;<img class='extent' src='"+imb +"' title='"+$trad("t17")+"' onclick='i3GEO.tema.zoom(\""+ltema.name+"\")' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t18")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />";}
946 - iconesNode = new YAHOO.widget.HTMLNode({html:tnome,enableHighlight: false,isLeaf:true,expanded:false}, node); 944 + new YAHOO.widget.HTMLNode({html:tnome,enableHighlight: false,isLeaf:true,expanded:false}, node);
947 if(funcoes.compartilhar === true && ltema.permitecomentario.toLowerCase() !== "nao") 945 if(funcoes.compartilhar === true && ltema.permitecomentario.toLowerCase() !== "nao")
948 { 946 {
949 temp = i3GEO.configura.locaplic+"/ms_criamapa.php?layers="+ltema.name+"&amp;temasa="+ltema.name; 947 temp = i3GEO.configura.locaplic+"/ms_criamapa.php?layers="+ltema.name+"&amp;temasa="+ltema.name;
@@ -973,7 +971,7 @@ i3GEO.arvoreDeCamadas = { @@ -973,7 +971,7 @@ i3GEO.arvoreDeCamadas = {
973 mostraOpcoes: function(node){ 971 mostraOpcoes: function(node){
974 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeCamadas.mostraOpcoes()");} 972 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeCamadas.mostraOpcoes()");}
975 //YAHOO.log("Mostrando as opções da árvore de camadas", "i3geo"); 973 //YAHOO.log("Mostrando as opções da árvore de camadas", "i3geo");
976 - var tnome,d,n,temp, 974 + var tnome,
977 idtema = node.data.idopcoes, 975 idtema = node.data.idopcoes,
978 ltema = i3GEO.arvoreDeCamadas.pegaTema(idtema), 976 ltema = i3GEO.arvoreDeCamadas.pegaTema(idtema),
979 funcoes = i3GEO.arvoreDeCamadas.FUNCOES; 977 funcoes = i3GEO.arvoreDeCamadas.FUNCOES;
@@ -982,21 +980,21 @@ i3GEO.arvoreDeCamadas = { @@ -982,21 +980,21 @@ i3GEO.arvoreDeCamadas = {
982 {tnome = "<span onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t19")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" >"+$trad("t20")+"</span> <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=5&idajuda=42' >&nbsp;&nbsp;&nbsp;</a>"+$inputText("","","tr"+ltema.name,"","3",ltema.transparency)+"&nbsp;<a class='tic' onclick='i3GEO.tema.mudatransp(\""+ltema.name+"\")' href='#' /a>";} 980 {tnome = "<span onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t19")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" >"+$trad("t20")+"</span> <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=5&idajuda=42' >&nbsp;&nbsp;&nbsp;</a>"+$inputText("","","tr"+ltema.name,"","3",ltema.transparency)+"&nbsp;<a class='tic' onclick='i3GEO.tema.mudatransp(\""+ltema.name+"\")' href='#' /a>";}
983 else 981 else
984 {tnome = "<span onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t19")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" >"+$trad("t20")+"</span> <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=5&idajuda=42' >&nbsp;&nbsp;&nbsp;</a>"+$inputText("","","tr"+ltema.name,"","3",ltema.transparency)+"<img class='tic' style='position:relative;top:3px;' onclick='i3GEO.tema.mudatransp(\""+ltema.name+"\")' src='"+i3GEO.util.$im("branco.gif")+"' />";} 982 {tnome = "<span onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t19")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" >"+$trad("t20")+"</span> <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=5&idajuda=42' >&nbsp;&nbsp;&nbsp;</a>"+$inputText("","","tr"+ltema.name,"","3",ltema.transparency)+"<img class='tic' style='position:relative;top:3px;' onclick='i3GEO.tema.mudatransp(\""+ltema.name+"\")' src='"+i3GEO.util.$im("branco.gif")+"' />";}
985 - n = new YAHOO.widget.HTMLNode({expanded:false,enableHighlight:false,isLeaf:true,html:tnome}, node); 983 + new YAHOO.widget.HTMLNode({expanded:false,enableHighlight:false,isLeaf:true,html:tnome}, node);
986 } 984 }
987 if(funcoes.temporizador === true){ 985 if(funcoes.temporizador === true){
988 if(navm) 986 if(navm)
989 {tnome = "<span onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t47")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" >"+$trad("t48")+"</span> <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=5&idajuda=101' >&nbsp;&nbsp;&nbsp;</a>"+$inputText("","","temporizador"+ltema.name,"","3",ltema.temporizador)+"&nbsp;<a class='tic' onclick='i3GEO.tema.temporizador(\""+ltema.name+"\")' href='#' /a>";} 987 {tnome = "<span onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t47")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" >"+$trad("t48")+"</span> <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=5&idajuda=101' >&nbsp;&nbsp;&nbsp;</a>"+$inputText("","","temporizador"+ltema.name,"","3",ltema.temporizador)+"&nbsp;<a class='tic' onclick='i3GEO.tema.temporizador(\""+ltema.name+"\")' href='#' /a>";}
990 else 988 else
991 {tnome = "<span onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t47")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" >"+$trad("t48")+"</span> <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=5&idajuda=101' >&nbsp;&nbsp;&nbsp;</a>"+$inputText("","","temporizador"+ltema.name,"","3",ltema.temporizador)+"<img class='tic' style='position:relative;top:3px;' onclick='i3GEO.tema.temporizador(\""+ltema.name+"\")' src='"+i3GEO.util.$im("branco.gif")+"' />";} 989 {tnome = "<span onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t47")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" >"+$trad("t48")+"</span> <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=5&idajuda=101' >&nbsp;&nbsp;&nbsp;</a>"+$inputText("","","temporizador"+ltema.name,"","3",ltema.temporizador)+"<img class='tic' style='position:relative;top:3px;' onclick='i3GEO.tema.temporizador(\""+ltema.name+"\")' src='"+i3GEO.util.$im("branco.gif")+"' />";}
992 - n = new YAHOO.widget.HTMLNode({expanded:false,enableHighlight:false,isLeaf:true,html:tnome}, node); 990 + new YAHOO.widget.HTMLNode({expanded:false,enableHighlight:false,isLeaf:true,html:tnome}, node);
993 } 991 }
994 if(funcoes.mudanome === true){ 992 if(funcoes.mudanome === true){
995 if(navm) 993 if(navm)
996 {tnome = "<span onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t21a")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />"+$trad("t21")+" </span> <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=5&idajuda=43' >&nbsp;&nbsp;&nbsp;</a>"+$inputText("","","nn"+ltema.name,"","8","")+"&nbsp;<a class='tic' onclick='i3GEO.tema.mudanome(\""+ltema.name+"\")' href='#' />";} 994 {tnome = "<span onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t21a")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />"+$trad("t21")+" </span> <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=5&idajuda=43' >&nbsp;&nbsp;&nbsp;</a>"+$inputText("","","nn"+ltema.name,"","8","")+"&nbsp;<a class='tic' onclick='i3GEO.tema.mudanome(\""+ltema.name+"\")' href='#' />";}
997 else 995 else
998 {tnome = "<span onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t21a")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />"+$trad("t21")+" </span> <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=5&idajuda=43' >&nbsp;&nbsp;&nbsp;</a>"+$inputText("","","nn"+ltema.name,"","10","")+"<img class='tic' style='position:relative;top:3px;' onclick='i3GEO.tema.mudanome(\""+ltema.name+"\")' src='"+i3GEO.util.$im("branco.gif")+"' />";} 996 {tnome = "<span onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t21a")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" />"+$trad("t21")+" </span> <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=5&idajuda=43' >&nbsp;&nbsp;&nbsp;</a>"+$inputText("","","nn"+ltema.name,"","10","")+"<img class='tic' style='position:relative;top:3px;' onclick='i3GEO.tema.mudanome(\""+ltema.name+"\")' src='"+i3GEO.util.$im("branco.gif")+"' />";}
999 - n = new YAHOO.widget.HTMLNode({expanded:false,enableHighlight:false,isLeaf:true,html:tnome}, node); 997 + new YAHOO.widget.HTMLNode({expanded:false,enableHighlight:false,isLeaf:true,html:tnome}, node);
1000 } 998 }
1001 if ((ltema.type < 3) && (ltema.connectiontype !== 7)){ 999 if ((ltema.type < 3) && (ltema.connectiontype !== 7)){
1002 if(funcoes.procurar === true) 1000 if(funcoes.procurar === true)
@@ -1051,8 +1049,8 @@ i3GEO.arvoreDeCamadas = { @@ -1051,8 +1049,8 @@ i3GEO.arvoreDeCamadas = {
1051 node {String} - objeto node da árvore (YUI) que receberá o novo nó 1049 node {String} - objeto node da árvore (YUI) que receberá o novo nó
1052 */ 1050 */
1053 adicionaOpcaoTema:function(dica,titulo,onclick,node){ 1051 adicionaOpcaoTema:function(dica,titulo,onclick,node){
1054 - var tnome = "<a href='#' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+dica+"','');\" onclick="+onclick+">"+titulo+" </a>",  
1055 - temp = new YAHOO.widget.HTMLNode({html:tnome,enableHighlight:false,isLeaf:true,expanded:false}, node); 1052 + var tnome = "<a href='#' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+dica+"','');\" onclick="+onclick+">"+titulo+" </a>";
  1053 + new YAHOO.widget.HTMLNode({html:tnome,enableHighlight:false,isLeaf:true,expanded:false}, node);
1056 }, 1054 },
1057 /* 1055 /*
1058 Function: mostraLegenda 1056 Function: mostraLegenda
@@ -1066,10 +1064,10 @@ i3GEO.arvoreDeCamadas = { @@ -1066,10 +1064,10 @@ i3GEO.arvoreDeCamadas = {
1066 mostraLegenda: function(node){ 1064 mostraLegenda: function(node){
1067 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeCamadas.mostraLegenda()");} 1065 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeCamadas.mostraLegenda()");}
1068 var retorna, 1066 var retorna,
1069 - idtema = node.data.idlegenda,  
1070 - ltema = i3GEO.arvoreDeCamadas.pegaTema(idtema); 1067 + idtema = node.data.idlegenda;
1071 retorna = function(retorno){ 1068 retorna = function(retorno){
1072 - var original,i,re,tabela,linhas,linha,colunas,id,exp,incluir,d,nodeLeg,elementos,nelementos,inputs,desativar,nindices; 1069 + var original = {data:""},
  1070 + i,re,tabela,linhas,linha,colunas,incluir,elementos,nelementos,inputs,desativar,nindices;
1073 if(retorno.data.legenda){ 1071 if(retorno.data.legenda){
1074 original = retorno; 1072 original = retorno;
1075 retorno = retorno.data.legenda; 1073 retorno = retorno.data.legenda;
@@ -1092,9 +1090,7 @@ i3GEO.arvoreDeCamadas = { @@ -1092,9 +1090,7 @@ i3GEO.arvoreDeCamadas = {
1092 if(linha >= 0){ 1090 if(linha >= 0){
1093 do{ 1091 do{
1094 colunas = linhas[linha].split("#"); 1092 colunas = linhas[linha].split("#");
1095 - id = colunas[0]+"-"+colunas[1];  
1096 re = new RegExp("'", "g"); 1093 re = new RegExp("'", "g");
1097 - exp = colunas[3].replace(re,'"');  
1098 tabela += "<tr style='border-top:1px solid rgb(240,240,240);'><td><img src='"+colunas[4]+"' </td><td style='text-align:left'>"+colunas[2]+"</td></tr>"; 1094 tabela += "<tr style='border-top:1px solid rgb(240,240,240);'><td><img src='"+colunas[4]+"' </td><td style='text-align:left'>"+colunas[2]+"</td></tr>";
1099 } 1095 }
1100 while(linha--); 1096 while(linha--);
@@ -1106,7 +1102,7 @@ i3GEO.arvoreDeCamadas = { @@ -1106,7 +1102,7 @@ i3GEO.arvoreDeCamadas = {
1106 } 1102 }
1107 else {tabela = "<img src='"+retorno.data[0].imagem+"' />";} //o tema é um wms 1103 else {tabela = "<img src='"+retorno.data[0].imagem+"' />";} //o tema é um wms
1108 incluir = "<div style='text-align:left' id='"+idtema+"verdiv"+"'>"+tabela+"</div>"; 1104 incluir = "<div style='text-align:left' id='"+idtema+"verdiv"+"'>"+tabela+"</div>";
1109 - nodeLeg = new YAHOO.widget.HTMLNode({html:incluir,enableHighlight:false,expanded:false}, node); 1105 + new YAHOO.widget.HTMLNode({html:incluir,enableHighlight:false,expanded:false}, node);
1110 node.loadComplete(); 1106 node.loadComplete();
1111 // 1107 //
1112 //desliga os checkbox que foram desativados 1108 //desliga os checkbox que foram desativados
@@ -1235,7 +1231,7 @@ i3GEO.arvoreDeCamadas = { @@ -1235,7 +1231,7 @@ i3GEO.arvoreDeCamadas = {
1235 {String} - texto formatado 1231 {String} - texto formatado
1236 */ 1232 */
1237 montaTextoTema: function(tema){ 1233 montaTextoTema: function(tema){
1238 - var ck,html,display="none",estilo, 1234 + var ck,html,estilo,
1239 iu = i3GEO.util; 1235 iu = i3GEO.util;
1240 if(tema.status*1 === 2) 1236 if(tema.status*1 === 2)
1241 {ck = ' CHECKED ';} 1237 {ck = ' CHECKED ';}
@@ -1349,7 +1345,8 @@ i3GEO.arvoreDeCamadas = { @@ -1349,7 +1345,8 @@ i3GEO.arvoreDeCamadas = {
1349 if(arguments.length === 0) 1345 if(arguments.length === 0)
1350 {tipo = "normal";} 1346 {tipo = "normal";}
1351 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeCamadas.aplicaTemas()");} 1347 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeCamadas.aplicaTemas()");}
1352 - var t,temp,ligar,desligar; 1348 + var t = "",
  1349 + temp;
1353 if(tipo === "normal") 1350 if(tipo === "normal")
1354 {t = i3GEO.arvoreDeCamadas.listaLigadosDesligados("mantem");} 1351 {t = i3GEO.arvoreDeCamadas.listaLigadosDesligados("mantem");}
1355 if(tipo === "ligartodos"){ 1352 if(tipo === "ligartodos"){
@@ -1407,7 +1404,7 @@ i3GEO.arvoreDeCamadas = { @@ -1407,7 +1404,7 @@ i3GEO.arvoreDeCamadas = {
1407 if(arguments.length === 0) 1404 if(arguments.length === 0)
1408 {tipo = "manter";} 1405 {tipo = "manter";}
1409 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeCamadas.listaLigadosDesligados()");} 1406 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeCamadas.listaLigadosDesligados()");}
1410 - var no,cs,csn,j,c,temp, 1407 + var no,cs,csn,j,c,
1411 nos = i3GEO.arvoreDeCamadas.ARVORE.getNodesByProperty("tipo","tema"), 1408 nos = i3GEO.arvoreDeCamadas.ARVORE.getNodesByProperty("tipo","tema"),
1412 ligados = [], 1409 ligados = [],
1413 desligados = [], 1410 desligados = [],
@@ -1423,7 +1420,7 @@ i3GEO.arvoreDeCamadas = { @@ -1423,7 +1420,7 @@ i3GEO.arvoreDeCamadas = {
1423 for(j=0;j<csn;j += 1){ 1420 for(j=0;j<csn;j += 1){
1424 c = cs[j]; 1421 c = cs[j];
1425 if(c.name==="layer"){ 1422 if(c.name==="layer"){
1426 - temp = c.checked === true ? ligados.push(c.value) : desligados.push(c.value); 1423 + c.checked === true ? ligados.push(c.value) : desligados.push(c.value);
1427 todos.push(c.value); 1424 todos.push(c.value);
1428 if(tipo === "marca"){ 1425 if(tipo === "marca"){
1429 c.checked = true; 1426 c.checked = true;
@@ -1461,7 +1458,7 @@ i3GEO.arvoreDeCamadas = { @@ -1461,7 +1458,7 @@ i3GEO.arvoreDeCamadas = {
1461 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeCamadas.capturaCheckBox()");} 1458 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeCamadas.capturaCheckBox()");}
1462 if(!$i(i3GEO.arvoreDeCamadas.IDHTML)) 1459 if(!$i(i3GEO.arvoreDeCamadas.IDHTML))
1463 {return;} 1460 {return;}
1464 - var nos,ligados,desligados,todos,n,i,no,cs,csn,j,c; 1461 + var nos,n,i,no,cs,csn,j,c;
1465 nos = i3GEO.arvoreDeCamadas.ARVORE.getNodesByProperty("tipo","tema"); 1462 nos = i3GEO.arvoreDeCamadas.ARVORE.getNodesByProperty("tipo","tema");
1466 n = nos.length; 1463 n = nos.length;
1467 i=0; 1464 i=0;
@@ -1611,9 +1608,7 @@ i3GEO.arvoreDeCamadas = { @@ -1611,9 +1608,7 @@ i3GEO.arvoreDeCamadas = {
1611 */ 1608 */
1612 alteraPropCamadas: function(propriedade,valor,camada){ 1609 alteraPropCamadas: function(propriedade,valor,camada){
1613 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeCamadas.alteraPropCamadas()");} 1610 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeCamadas.alteraPropCamadas()");}
1614 - var resultado = [],  
1615 - i = 0,  
1616 - temp, 1611 + var i = 0,
1617 nelementos = i3GEO.arvoreDeCamadas.CAMADAS.length, 1612 nelementos = i3GEO.arvoreDeCamadas.CAMADAS.length,
1618 ltema; 1613 ltema;
1619 if (nelementos > 0){ 1614 if (nelementos > 0){
classesjs/classe_arvoredetemas.js
@@ -381,7 +381,7 @@ i3GEO.arvoreDeTemas = { @@ -381,7 +381,7 @@ i3GEO.arvoreDeTemas = {
381 //node = no; 381 //node = no;
382 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeTemas.listaLayersWMS()");} 382 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeTemas.listaLayersWMS()");}
383 var monta = function(retorno){ 383 var monta = function(retorno){
384 - var n,cor,i,cabeca,tempNode,ns,j,tempNodeS,temp; 384 + var n,cor,i,cabeca,tempNode,ns,j,temp;
385 n = 0; 385 n = 0;
386 try{n = retorno.data.length;} 386 try{n = retorno.data.length;}
387 catch(m){node.loadComplete();return;} 387 catch(m){node.loadComplete();return;}
@@ -408,7 +408,7 @@ i3GEO.arvoreDeTemas = { @@ -408,7 +408,7 @@ i3GEO.arvoreDeTemas = {
408 if(temp.estilos){ 408 if(temp.estilos){
409 ns = temp.estilos.length; 409 ns = temp.estilos.length;
410 for (j=0;j<ns; j += 1){ 410 for (j=0;j<ns; j += 1){
411 - tempNodeS = new YAHOO.widget.HTMLNode( 411 + new YAHOO.widget.HTMLNode(
412 { 412 {
413 html:i3GEO.arvoreDeTemas.montaTextoTemaWMS( 413 html:i3GEO.arvoreDeTemas.montaTextoTemaWMS(
414 node.data.url, 414 node.data.url,
@@ -657,12 +657,13 @@ i3GEO.arvoreDeTemas = { @@ -657,12 +657,13 @@ i3GEO.arvoreDeTemas = {
657 */ 657 */
658 listaEstrelas: function(node){ 658 listaEstrelas: function(node){
659 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeTemas.listaEstrelas()");} 659 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeTemas.listaEstrelas()");}
660 - var busca,root,montanos;  
661 - montanos = function(retorno)  
662 - {  
663 - var mostra,tempNode,d,ig, 660 + var montanos = function(retorno){
  661 + try{
  662 + var ig,
664 montaTexto = function(ngSgrupo){ 663 montaTexto = function(ngSgrupo){
665 - var tempn,ngTema,tempng,mostra,d,lk,tempNode,st,sg; 664 + var tempn,ngTema,tempng,mostra,d,
  665 + lk = "",
  666 + st,sg;
666 tempn = ngSgrupo.length; 667 tempn = ngSgrupo.length;
667 for(sg=0;sg<tempn;sg+=1){ 668 for(sg=0;sg<tempn;sg+=1){
668 ngTema = ngSgrupo[sg].temas; 669 ngTema = ngSgrupo[sg].temas;
@@ -710,6 +711,8 @@ i3GEO.arvoreDeTemas = { @@ -710,6 +711,8 @@ i3GEO.arvoreDeTemas = {
710 } 711 }
711 } 712 }
712 node.loadComplete(); 713 node.loadComplete();
  714 + }
  715 + catch(e){}
713 }; 716 };
714 i3GEO.php.procurartemasestrela(montanos,node.data.nivel,i3GEO.arvoreDeTemas.FATORESTRELA*1); 717 i3GEO.php.procurartemasestrela(montanos,node.data.nivel,i3GEO.arvoreDeTemas.FATORESTRELA*1);
715 }, 718 },
@@ -781,17 +784,13 @@ i3GEO.arvoreDeTemas = { @@ -781,17 +784,13 @@ i3GEO.arvoreDeTemas = {
781 */ 784 */
782 montaArvore: function() { 785 montaArvore: function() {
783 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeTemas.montaArvore()");} 786 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeTemas.montaArvore()");}
784 - var newVal,currentIconMode,d,tempNode,tempNode1,retorno,nomeSis,root,insp,outrasOpcoes,dados,c,i,j,conteudo,editor; 787 + var tempNode,tempNode1,retorno,root,insp,outrasOpcoes,dados,c,i,j,conteudo,editor;
785 (function(){ 788 (function(){
786 function changeIconMode(){ 789 function changeIconMode(){
787 - newVal = parseInt(this.value,10);  
788 - if (newVal !== currentIconMode)  
789 - {currentIconMode = newVal;}  
790 buildTree(); 790 buildTree();
791 } 791 }
792 function buildTree(){ 792 function buildTree(){
793 i3GEO.arvoreDeTemas.ARVORE = new YAHOO.widget.TreeView(i3GEO.arvoreDeTemas.IDHTML); 793 i3GEO.arvoreDeTemas.ARVORE = new YAHOO.widget.TreeView(i3GEO.arvoreDeTemas.IDHTML);
794 - tempNode = new YAHOO.widget.TextNode({html:'',expanded:false,isLeaf:false,enableHighlight:false},root);  
795 } 794 }
796 buildTree(); 795 buildTree();
797 })(); 796 })();
@@ -800,7 +799,7 @@ i3GEO.arvoreDeTemas = { @@ -800,7 +799,7 @@ i3GEO.arvoreDeTemas = {
800 if(i3GEO.arvoreDeTemas.OPCOESADICIONAIS.incluibusca === true){ 799 if(i3GEO.arvoreDeTemas.OPCOESADICIONAIS.incluibusca === true){
801 insp = "<br><br><table><tr>" + 800 insp = "<br><br><table><tr>" +
802 "<td><span style='font-size:12px'>&nbsp;"+$trad("a1")+" <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=4&idajuda=31' >&nbsp;&nbsp;&nbsp;</a></span></td>" + 801 "<td><span style='font-size:12px'>&nbsp;"+$trad("a1")+" <a class=ajuda_usuario target=_blank href='"+i3GEO.configura.locaplic+"/ajuda_usuario.php?idcategoria=4&idajuda=31' >&nbsp;&nbsp;&nbsp;</a></span></td>" +
803 - "<td><input onclick='javascript:i3GEO.arvoreDeTemas.select();' class='digitar' type='text' id='i3geo_buscatema' size='15' value='' /></td>" + 802 + "<td><input onclick='javascript:this.select();' class='digitar' type='text' id='i3geo_buscatema' size='15' value='' /></td>" +
804 "<td><img class='tic' "; 803 "<td><img class='tic' ";
805 if(navm){insp += "style='top:0px;'";} 804 if(navm){insp += "style='top:0px;'";}
806 else 805 else
@@ -919,13 +918,13 @@ i3GEO.arvoreDeTemas = { @@ -919,13 +918,13 @@ i3GEO.arvoreDeTemas = {
919 {html:conteudo,idmenu:dados[i].idmenu,enableHighlight:false,expanded:false}, 918 {html:conteudo,idmenu:dados[i].idmenu,enableHighlight:false,expanded:false},
920 root 919 root
921 ); 920 );
922 - tempNode.setDynamicLoad(i3GEO.arvoreDeTemas.montaGrupos, currentIconMode); 921 + tempNode.setDynamicLoad(i3GEO.arvoreDeTemas.montaGrupos, 1);
923 if(dados[i].status === "aberto") 922 if(dados[i].status === "aberto")
924 {tempNode.expand();} 923 {tempNode.expand();}
925 } 924 }
926 if(i3GEO.arvoreDeTemas.INCLUISISTEMAS){ 925 if(i3GEO.arvoreDeTemas.INCLUISISTEMAS){
927 retorno = function(){ 926 retorno = function(){
928 - var sis,iglt,tempNode,ig,nomeSis,sisNode,funcoes,tempf,ig2,abre,nomeFunc,funcNode; 927 + var sis,iglt,tempNode,ig,nomeSis,sisNode,funcoes,tempf,ig2,abre,nomeFunc;
929 try{ 928 try{
930 sis = i3GEO.arvoreDeTemas.SISTEMAS; 929 sis = i3GEO.arvoreDeTemas.SISTEMAS;
931 iglt = sis.length; 930 iglt = sis.length;
@@ -953,7 +952,7 @@ i3GEO.arvoreDeTemas = { @@ -953,7 +952,7 @@ i3GEO.arvoreDeTemas = {
953 for (ig2=0;ig2<tempf;ig2+=1){ 952 for (ig2=0;ig2<tempf;ig2+=1){
954 abre = "i3GEO.janela.cria('"+(funcoes[ig2].W)+"px','"+(funcoes[ig2].H)+"px','"+(funcoes[ig2].ABRIR)+"','','','Sistemas')"; 953 abre = "i3GEO.janela.cria('"+(funcoes[ig2].W)+"px','"+(funcoes[ig2].H)+"px','"+(funcoes[ig2].ABRIR)+"','','','Sistemas')";
955 nomeFunc = "<a href='#' onclick=\""+abre+"\">"+funcoes[ig2].NOME+"</a>"; 954 nomeFunc = "<a href='#' onclick=\""+abre+"\">"+funcoes[ig2].NOME+"</a>";
956 - funcNode = new YAHOO.widget.HTMLNode( 955 + new YAHOO.widget.HTMLNode(
957 {html:nomeFunc,expanded:false,enableHighlight:false,isLeaf:true}, 956 {html:nomeFunc,expanded:false,enableHighlight:false,isLeaf:true},
958 sisNode 957 sisNode
959 ); 958 );
@@ -1018,7 +1017,7 @@ i3GEO.arvoreDeTemas = { @@ -1018,7 +1017,7 @@ i3GEO.arvoreDeTemas = {
1018 montaGrupos: function(node){ 1017 montaGrupos: function(node){
1019 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeTemas.montaGrupos()");} 1018 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeTemas.montaGrupos()");}
1020 var temp=function(){ 1019 var temp=function(){
1021 - var grupos,c,raiz,nraiz,mostra,html,i,d,editor; 1020 + var grupos,c,raiz,nraiz,mostra,i,d,editor;
1022 grupos = i3GEO.arvoreDeTemas.GRUPOS.grupos; 1021 grupos = i3GEO.arvoreDeTemas.GRUPOS.grupos;
1023 c = grupos.length - 3; 1022 c = grupos.length - 3;
1024 raiz = grupos[c].temasraiz; 1023 raiz = grupos[c].temasraiz;
@@ -1079,7 +1078,7 @@ i3GEO.arvoreDeTemas = { @@ -1079,7 +1078,7 @@ i3GEO.arvoreDeTemas = {
1079 montaSubGrupos: function(node){ 1078 montaSubGrupos: function(node){
1080 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeTemas.montaSubGrupos()");} 1079 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeTemas.montaSubGrupos()");}
1081 var temp=function(){ 1080 var temp=function(){
1082 - var i,c,mostra,d,html,tempNode,nraiz,subgrupos,raiz; 1081 + var i,c,mostra,d,tempNode,nraiz,subgrupos,raiz;
1083 subgrupos = i3GEO.arvoreDeTemas.SUBGRUPOS.subgrupo; 1082 subgrupos = i3GEO.arvoreDeTemas.SUBGRUPOS.subgrupo;
1084 c = subgrupos.length; 1083 c = subgrupos.length;
1085 raiz = i3GEO.arvoreDeTemas.SUBGRUPOS.temasgrupo; 1084 raiz = i3GEO.arvoreDeTemas.SUBGRUPOS.temasgrupo;
@@ -1205,7 +1204,7 @@ i3GEO.arvoreDeTemas = { @@ -1205,7 +1204,7 @@ i3GEO.arvoreDeTemas = {
1205 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeTemas.montaDir()");} 1204 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeTemas.montaDir()");}
1206 var montaLista = function(retorno) 1205 var montaLista = function(retorno)
1207 { 1206 {
1208 - var ig,d,conteudo,dirs,tempNode,arquivos,nodeSHP; 1207 + var ig,conteudo,dirs,tempNode,arquivos;
1209 dirs = retorno.data.diretorios; 1208 dirs = retorno.data.diretorios;
1210 for (ig=0;ig<dirs.length;ig+=1) 1209 for (ig=0;ig<dirs.length;ig+=1)
1211 { 1210 {
@@ -1227,7 +1226,7 @@ i3GEO.arvoreDeTemas = { @@ -1227,7 +1226,7 @@ i3GEO.arvoreDeTemas = {
1227 if(conteudo.search(".img") > 1 || conteudo.search(".tif") > 1 || conteudo.search(".TIF") > 1 || conteudo.search(".shp") > 1 || conteudo.search(".SHP") > 1) 1226 if(conteudo.search(".img") > 1 || conteudo.search(".tif") > 1 || conteudo.search(".TIF") > 1 || conteudo.search(".shp") > 1 || conteudo.search(".SHP") > 1)
1228 { 1227 {
1229 conteudo = "<a href='#' title='"+$trad("g2")+"' onclick='i3GEO.util.adicionaSHP(\""+node.data.caminho+"/"+conteudo+"\")' >"+conteudo+"</a>"; 1228 conteudo = "<a href='#' title='"+$trad("g2")+"' onclick='i3GEO.util.adicionaSHP(\""+node.data.caminho+"/"+conteudo+"\")' >"+conteudo+"</a>";
1230 - nodeSHP = new YAHOO.widget.HTMLNode( 1229 + new YAHOO.widget.HTMLNode(
1231 {isLeaf:true,enableHighlight:false,expanded:false,html:conteudo,caminho:node.data.caminho+"/"+conteudo}, 1230 {isLeaf:true,enableHighlight:false,expanded:false,html:conteudo,caminho:node.data.caminho+"/"+conteudo},
1232 node 1231 node
1233 ); 1232 );
@@ -1292,7 +1291,7 @@ i3GEO.arvoreDeTemas = { @@ -1292,7 +1291,7 @@ i3GEO.arvoreDeTemas = {
1292 */ 1291 */
1293 propTemas: function(node){ 1292 propTemas: function(node){
1294 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeTemas.propTemas()");} 1293 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeTemas.propTemas()");}
1295 - var d,tempNode,html,lkmini,lkmini1,lkgrcode,lkgrcode1,n,ogc; 1294 + var html,lkmini,lkmini1,lkgrcode,lkgrcode1,n,ogc;
1296 if(node.data.fonte && node.data.fonte !== "" && node.data.fonte !== " "){ 1295 if(node.data.fonte && node.data.fonte !== "" && node.data.fonte !== " "){
1297 tempNode = new YAHOO.widget.HTMLNode( 1296 tempNode = new YAHOO.widget.HTMLNode(
1298 {isLeaf:true,enableHighlight:false,expanded:false,html:"<a title='' href='"+node.data.fonte+"' target='_blank' >Fonte</a>"}, 1297 {isLeaf:true,enableHighlight:false,expanded:false,html:"<a title='' href='"+node.data.fonte+"' target='_blank' >Fonte</a>"},
@@ -1302,7 +1301,7 @@ i3GEO.arvoreDeTemas = { @@ -1302,7 +1301,7 @@ i3GEO.arvoreDeTemas = {
1302 if(i3GEO.arvoreDeTemas.OPCOESADICIONAIS.mini === true){ 1301 if(i3GEO.arvoreDeTemas.OPCOESADICIONAIS.mini === true){
1303 lkmini = i3GEO.arvoreDeTemas.LOCAPLIC+"/testamapfile.php?map="+node.data.idtema+".map&tipo=mini"; 1302 lkmini = i3GEO.arvoreDeTemas.LOCAPLIC+"/testamapfile.php?map="+node.data.idtema+".map&tipo=mini";
1304 lkmini1 = i3GEO.arvoreDeTemas.LOCAPLIC+"/testamapfile.php?map="+node.data.idtema+".map&tipo=grande"; 1303 lkmini1 = i3GEO.arvoreDeTemas.LOCAPLIC+"/testamapfile.php?map="+node.data.idtema+".map&tipo=grande";
1305 - tempNode = new YAHOO.widget.HTMLNode( 1304 + new YAHOO.widget.HTMLNode(
1306 {isLeaf:true,enableHighlight:false,expanded:false,html:"<a title='' onmouseover='i3GEO.ajuda.mostraJanela(\"<img src="+lkmini+" />\")' href='"+lkmini1+"' target='blank' >Miniatura</a>"}, 1305 {isLeaf:true,enableHighlight:false,expanded:false,html:"<a title='' onmouseover='i3GEO.ajuda.mostraJanela(\"<img src="+lkmini+" />\")' href='"+lkmini1+"' target='blank' >Miniatura</a>"},
1307 node 1306 node
1308 ); 1307 );
@@ -1312,27 +1311,27 @@ i3GEO.arvoreDeTemas = { @@ -1312,27 +1311,27 @@ i3GEO.arvoreDeTemas = {
1312 html = "<a href='#' title='' onclick='i3GEO.tema.dialogo.abreKml(\""+node.data.idtema+"\",\"kml\")' >Kml</a>"; 1311 html = "<a href='#' title='' onclick='i3GEO.tema.dialogo.abreKml(\""+node.data.idtema+"\",\"kml\")' >Kml</a>";
1313 if (node.data.kmz.toLowerCase() === "sim") 1312 if (node.data.kmz.toLowerCase() === "sim")
1314 {html = "<a href='#' title='' onclick='i3GEO.tema.dialogo.abreKml(\""+node.data.idtema+"\",\"kmz\")' >Kml</a>";} 1313 {html = "<a href='#' title='' onclick='i3GEO.tema.dialogo.abreKml(\""+node.data.idtema+"\",\"kmz\")' >Kml</a>";}
1315 - tempNode = new YAHOO.widget.HTMLNode( 1314 + new YAHOO.widget.HTMLNode(
1316 {isLeaf:true,enableHighlight:false,expanded:false,html:html}, 1315 {isLeaf:true,enableHighlight:false,expanded:false,html:html},
1317 node 1316 node
1318 ); 1317 );
1319 } 1318 }
1320 ogc = i3GEO.arvoreDeTemas.LOCAPLIC+"/ogc.php?tema="+node.data.idtema+"&service=wms&request=getcapabilities"; 1319 ogc = i3GEO.arvoreDeTemas.LOCAPLIC+"/ogc.php?tema="+node.data.idtema+"&service=wms&request=getcapabilities";
1321 - tempNode = new YAHOO.widget.HTMLNode( 1320 + new YAHOO.widget.HTMLNode(
1322 {isLeaf:true,enableHighlight:false,expanded:false,html:"<a title='getcapabilities' href='"+ogc+"' target='blank' >WMS - OGC</a>"}, 1321 {isLeaf:true,enableHighlight:false,expanded:false,html:"<a title='getcapabilities' href='"+ogc+"' target='blank' >WMS - OGC</a>"},
1323 node 1322 node
1324 ); 1323 );
1325 } 1324 }
1326 if(node.data.download && node.data.download.toLowerCase() !== "nao" && i3GEO.arvoreDeTemas.TIPOBOTAO !== "download"){ 1325 if(node.data.download && node.data.download.toLowerCase() !== "nao" && i3GEO.arvoreDeTemas.TIPOBOTAO !== "download"){
1327 html = "<a href='"+i3GEO.configura.locaplic+"/datadownload.htm?"+node.data.idtema+"' target='_blank'>Download</a>"; 1326 html = "<a href='"+i3GEO.configura.locaplic+"/datadownload.htm?"+node.data.idtema+"' target='_blank'>Download</a>";
1328 - tempNode = new YAHOO.widget.HTMLNode( 1327 + new YAHOO.widget.HTMLNode(
1329 {isLeaf:true,enableHighlight:false,expanded:false,html:html}, 1328 {isLeaf:true,enableHighlight:false,expanded:false,html:html},
1330 node 1329 node
1331 ); 1330 );
1332 } 1331 }
1333 if (node.data.permitecomentario && node.data.permitecomentario !== "nao" && i3GEO.arvoreDeTemas.OPCOESADICIONAIS.comentarios === true){ 1332 if (node.data.permitecomentario && node.data.permitecomentario !== "nao" && i3GEO.arvoreDeTemas.OPCOESADICIONAIS.comentarios === true){
1334 html = "<a href='#' title='' onclick='i3GEO.tema.dialogo.comentario(\""+node.data.idtema+"\",\"comentario\")' >Comentário</a>"; 1333 html = "<a href='#' title='' onclick='i3GEO.tema.dialogo.comentario(\""+node.data.idtema+"\",\"comentario\")' >Comentário</a>";
1335 - tempNode = new YAHOO.widget.HTMLNode( 1334 + new YAHOO.widget.HTMLNode(
1336 {isLeaf:true,enableHighlight:false,expanded:false,html:html}, 1335 {isLeaf:true,enableHighlight:false,expanded:false,html:html},
1337 node 1336 node
1338 ); 1337 );
@@ -1340,7 +1339,7 @@ i3GEO.arvoreDeTemas = { @@ -1340,7 +1339,7 @@ i3GEO.arvoreDeTemas = {
1340 if(i3GEO.arvoreDeTemas.OPCOESADICIONAIS.qrcode === true){ 1339 if(i3GEO.arvoreDeTemas.OPCOESADICIONAIS.qrcode === true){
1341 lkgrcode = i3GEO.arvoreDeTemas.LOCAPLIC+"/pacotes/qrcode/php/qr_html.php?d="+i3GEO.arvoreDeTemas.LOCAPLIC+"/ms_criamapa.php?interface=openlayers_t.htm&temasa="+node.data.idtema+"&layers="+node.data.idtema; 1340 lkgrcode = i3GEO.arvoreDeTemas.LOCAPLIC+"/pacotes/qrcode/php/qr_html.php?d="+i3GEO.arvoreDeTemas.LOCAPLIC+"/ms_criamapa.php?interface=openlayers_t.htm&temasa="+node.data.idtema+"&layers="+node.data.idtema;
1342 lkgrcode1 = i3GEO.arvoreDeTemas.LOCAPLIC+"/pacotes/qrcode/php/qr_img.php?d="+i3GEO.arvoreDeTemas.LOCAPLIC+"/ms_criamapa.php?interface=openlayers_t.htm&temasa="+node.data.idtema+"&layers="+node.data.idtema; 1341 lkgrcode1 = i3GEO.arvoreDeTemas.LOCAPLIC+"/pacotes/qrcode/php/qr_img.php?d="+i3GEO.arvoreDeTemas.LOCAPLIC+"/ms_criamapa.php?interface=openlayers_t.htm&temasa="+node.data.idtema+"&layers="+node.data.idtema;
1343 - tempNode = new YAHOO.widget.HTMLNode( 1342 + new YAHOO.widget.HTMLNode(
1344 {isLeaf:true,enableHighlight:false,expanded:false,html:"<a title='' onmouseover='i3GEO.ajuda.mostraJanela(\"<img src="+lkgrcode1+" />\")' href='"+lkgrcode+"' target='blank' >Qrcode</a>"}, 1343 {isLeaf:true,enableHighlight:false,expanded:false,html:"<a title='' onmouseover='i3GEO.ajuda.mostraJanela(\"<img src="+lkgrcode1+" />\")' href='"+lkgrcode+"' target='blank' >Qrcode</a>"},
1345 node 1344 node
1346 ); 1345 );
@@ -1349,11 +1348,11 @@ i3GEO.arvoreDeTemas = { @@ -1349,11 +1348,11 @@ i3GEO.arvoreDeTemas = {
1349 n = parseInt(node.data.nacessos / (i3GEO.arvoreDeTemas.FATORESTRELA*1),10); 1348 n = parseInt(node.data.nacessos / (i3GEO.arvoreDeTemas.FATORESTRELA*1),10);
1350 if(n >= 5){n = 5;} 1349 if(n >= 5){n = 5;}
1351 html = (n > 0) ? "<img src='"+i3GEO.util.$im("e"+n+".png")+"'/>" : "<img src='"+i3GEO.util.$im("e0.png")+"'/>"; 1350 html = (n > 0) ? "<img src='"+i3GEO.util.$im("e"+n+".png")+"'/>" : "<img src='"+i3GEO.util.$im("e0.png")+"'/>";
1352 - tempNode = new YAHOO.widget.HTMLNode({isLeaf:true,enableHighlight:false,expanded:false,html:html}, node); 1351 + new YAHOO.widget.HTMLNode({isLeaf:true,enableHighlight:false,expanded:false,html:html}, node);
1353 } 1352 }
1354 if(i3GEO.arvoreDeTemas.OPCOESADICIONAIS.bookmark === true){ 1353 if(i3GEO.arvoreDeTemas.OPCOESADICIONAIS.bookmark === true){
1355 html = i3GEO.social.bookmark(i3GEO.configura.locaplic+"/ms_criamapa.php?layers="+node.data.idtema); 1354 html = i3GEO.social.bookmark(i3GEO.configura.locaplic+"/ms_criamapa.php?layers="+node.data.idtema);
1356 - tempNode = new YAHOO.widget.HTMLNode({isLeaf:true,enableHighlight:false,expanded:false,html:html}, node); 1355 + new YAHOO.widget.HTMLNode({isLeaf:true,enableHighlight:false,expanded:false,html:html}, node);
1357 } 1356 }
1358 node.loadComplete(); 1357 node.loadComplete();
1359 }, 1358 },
@@ -1495,10 +1494,10 @@ i3GEO.arvoreDeTemas = { @@ -1495,10 +1494,10 @@ i3GEO.arvoreDeTemas = {
1495 buscaTema: function(palavra){ 1494 buscaTema: function(palavra){
1496 if(palavra === ""){return;} 1495 if(palavra === ""){return;}
1497 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeTemas.buscaTema()");} 1496 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeTemas.buscaTema()");}
1498 - var busca,root,nodePalavra; 1497 + var busca,root,nodePalavra = "";
1499 resultadoProcurar = function(retorno) 1498 resultadoProcurar = function(retorno)
1500 { 1499 {
1501 - var mostra,tempNode,d,conta,ig,ngSgrupo,tempn,sg,ngTema,tempng,st,lk; 1500 + var mostra,tempNode,d,conta,ig,ngSgrupo,tempn,sg,ngTema,tempng,st,lk = "";
1502 if(!retorno.data) 1501 if(!retorno.data)
1503 {alert("Ocorreu um erro");} 1502 {alert("Ocorreu um erro");}
1504 else{ 1503 else{
@@ -1585,12 +1584,12 @@ i3GEO.arvoreDeTemas = { @@ -1585,12 +1584,12 @@ i3GEO.arvoreDeTemas = {
1585 buscaTema2: function(palavra){ 1584 buscaTema2: function(palavra){
1586 if(palavra === ""){return;} 1585 if(palavra === ""){return;}
1587 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeTemas.buscaTema()");} 1586 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeTemas.buscaTema()");}
1588 - var busca,root,nodePalavra; 1587 + var busca,root,nodePalavra = "";
1589 resultadoProcurar = function(retorno) 1588 resultadoProcurar = function(retorno)
1590 { 1589 {
1591 - var mostra,tempNode,d,ig, 1590 + var ig,
1592 montaTexto = function(ngSgrupo){ 1591 montaTexto = function(ngSgrupo){
1593 - var tempn,ngTema,tempng,mostra,d,lk,tempNode,st,sg; 1592 + var tempn,ngTema,tempng,mostra,d,lk = "",st,sg;
1594 tempn = ngSgrupo.length; 1593 tempn = ngSgrupo.length;
1595 for(sg=0;sg<tempn;sg+=1){ 1594 for(sg=0;sg<tempn;sg+=1){
1596 ngTema = ngSgrupo[sg].temas; 1595 ngTema = ngSgrupo[sg].temas;
@@ -1612,7 +1611,7 @@ i3GEO.arvoreDeTemas = { @@ -1612,7 +1611,7 @@ i3GEO.arvoreDeTemas = {
1612 {d += "<td style='text-allign:left'> ("+(ngSgrupo[sg].subgrupo)+") "+lk+"</td>";} 1611 {d += "<td style='text-allign:left'> ("+(ngSgrupo[sg].subgrupo)+") "+lk+"</td>";}
1613 else 1612 else
1614 {d += "<td style='text-allign:left'> ("+(ngSgrupo[sg].grupo)+")"+lk+"</td>";} 1613 {d += "<td style='text-allign:left'> ("+(ngSgrupo[sg].grupo)+")"+lk+"</td>";}
1615 - tempNode = new YAHOO.widget.HTMLNode({enableHighlight:false,isLeaf:true,html:d,expanded:false}, nodePalavra); 1614 + new YAHOO.widget.HTMLNode({enableHighlight:false,isLeaf:true,html:d,expanded:false}, nodePalavra);
1616 } 1615 }
1617 conta+=1; 1616 conta+=1;
1618 } 1617 }
@@ -1633,7 +1632,7 @@ i3GEO.arvoreDeTemas = { @@ -1633,7 +1632,7 @@ i3GEO.arvoreDeTemas = {
1633 while(ig--); 1632 while(ig--);
1634 } 1633 }
1635 else{ 1634 else{
1636 - tempNode = new YAHOO.widget.HTMLNode({enableHighlight:false,isLeaf:true,expanded:false,html:"<span style='color:red'>Nada encontrado<br><br></span>"}, nodePalavra); 1635 + new YAHOO.widget.HTMLNode({enableHighlight:false,isLeaf:true,expanded:false,html:"<span style='color:red'>Nada encontrado<br><br></span>"}, nodePalavra);
1637 } 1636 }
1638 } 1637 }
1639 } 1638 }
@@ -1876,7 +1875,7 @@ i3GEO.arvoreDeTemas = { @@ -1876,7 +1875,7 @@ i3GEO.arvoreDeTemas = {
1876 comboTemasMenu: function(locaplic,funcaoOnchange,idDestino,idCombo,idGrupo,idSubGrupo,largura,altura,id_menu,temas){ 1875 comboTemasMenu: function(locaplic,funcaoOnchange,idDestino,idCombo,idGrupo,idSubGrupo,largura,altura,id_menu,temas){
1877 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeTemas.comboTemasMenu()");} 1876 if(typeof(console) !== 'undefined'){console.info("i3GEO.arvoreDeTemas.comboTemasMenu()");}
1878 var combo = function(retorno){ 1877 var combo = function(retorno){
1879 - var ins,sg,ig,temas; 1878 + var ins,sg,ig;
1880 if(idSubGrupo != "") 1879 if(idSubGrupo != "")
1881 {ins = "<select id='"+idCombo+"' size="+altura+" style=width:"+largura+"px onchange='"+funcaoOnchange+"("+idGrupo+","+idSubGrupo+",this.value)' ><option value='' >Escolha um tema:</option>";} 1880 {ins = "<select id='"+idCombo+"' size="+altura+" style=width:"+largura+"px onchange='"+funcaoOnchange+"("+idGrupo+","+idSubGrupo+",this.value)' ><option value='' >Escolha um tema:</option>";}
1882 else 1881 else
@@ -1911,7 +1910,7 @@ i3GEO.arvoreDeTemas = { @@ -1911,7 +1910,7 @@ i3GEO.arvoreDeTemas = {
1911 Abre uma janela flutunate que permite abrir outras ferramentas para o upload de arquivos de determinados tipos 1910 Abre uma janela flutunate que permite abrir outras ferramentas para o upload de arquivos de determinados tipos
1912 */ 1911 */
1913 uploadarquivo: function(){ 1912 uploadarquivo: function(){
1914 - var janela,ins,temp,titulo,cabecalho,minimiza, 1913 + var janela,ins,titulo,cabecalho,minimiza,
1915 OPCOESADICIONAIS = i3GEO.arvoreDeTemas.OPCOESADICIONAIS; 1914 OPCOESADICIONAIS = i3GEO.arvoreDeTemas.OPCOESADICIONAIS;
1916 1915
1917 cabecalho = function(){}; 1916 cabecalho = function(){};
@@ -1968,7 +1967,7 @@ i3GEO.arvoreDeTemas = { @@ -1968,7 +1967,7 @@ i3GEO.arvoreDeTemas = {
1968 Abre uma janela flutunate que permite abrir outras ferramentas para conexão com serviços externos 1967 Abre uma janela flutunate que permite abrir outras ferramentas para conexão com serviços externos
1969 */ 1968 */
1970 conectaservico: function(){ 1969 conectaservico: function(){
1971 - var janela,ins,temp,titulo,cabecalho,minimiza, 1970 + var janela,ins,titulo,cabecalho,minimiza,
1972 OPCOESADICIONAIS = i3GEO.arvoreDeTemas.OPCOESADICIONAIS; 1971 OPCOESADICIONAIS = i3GEO.arvoreDeTemas.OPCOESADICIONAIS;
1973 1972
1974 cabecalho = function(){}; 1973 cabecalho = function(){};
classesjs/classe_barradebotoes.js
@@ -647,7 +647,7 @@ i3GEO.barraDeBotoes = { @@ -647,7 +647,7 @@ i3GEO.barraDeBotoes = {
647 */ 647 */
648 ativaBotoes:function(padrao){ 648 ativaBotoes:function(padrao){
649 if(typeof(console) !== 'undefined'){console.info("i3GEO.barraDeBotoes.ativaBotoes()");} 649 if(typeof(console) !== 'undefined'){console.info("i3GEO.barraDeBotoes.ativaBotoes()");}
650 - var l,b,d,temp; 650 + var l,b,temp;
651 if(arguments.length === 0) 651 if(arguments.length === 0)
652 {padrao = this.BOTAOPADRAO;} 652 {padrao = this.BOTAOPADRAO;}
653 this.BOTAOCLICADO = padrao; 653 this.BOTAOCLICADO = padrao;
@@ -695,7 +695,6 @@ i3GEO.barraDeBotoes = { @@ -695,7 +695,6 @@ i3GEO.barraDeBotoes = {
695 */ 695 */
696 execBotao: function(id,x,y,posX,posY){ 696 execBotao: function(id,x,y,posX,posY){
697 var temp, 697 var temp,
698 - n = 38,  
699 botao = i3GEO.barraDeBotoes.defBotao(id); 698 botao = i3GEO.barraDeBotoes.defBotao(id);
700 i3GEO.barraDeBotoes.BOTAOCLICADO = id; 699 i3GEO.barraDeBotoes.BOTAOCLICADO = id;
701 if(botao === false) 700 if(botao === false)
@@ -706,8 +705,8 @@ i3GEO.barraDeBotoes = { @@ -706,8 +705,8 @@ i3GEO.barraDeBotoes = {
706 temp = $i("i3geoMarcaIcone"); 705 temp = $i("i3geoMarcaIcone");
707 if(temp){ 706 if(temp){
708 temp.style.display = "block"; 707 temp.style.display = "block";
709 - temp.style.top = posY + 43 + "px";//(parseInt(y / n,10) * n) + 40;  
710 - temp.style.left = posX + 18 + "px";//(parseInt(x / n,10) * n) + 6; 708 + temp.style.top = posY + 43 + "px";
  709 + temp.style.left = posX + 18 + "px";
711 } 710 }
712 } 711 }
713 if(botao.funcaoonclick){ 712 if(botao.funcaoonclick){
@@ -728,9 +727,8 @@ i3GEO.barraDeBotoes = { @@ -728,9 +727,8 @@ i3GEO.barraDeBotoes = {
728 {objeto} - ver i3GEO.barraDeBotoes.LISTABOTOES 727 {objeto} - ver i3GEO.barraDeBotoes.LISTABOTOES
729 */ 728 */
730 defBotao: function(iddiv){ 729 defBotao: function(iddiv){
731 - var l,b,d,temp;  
732 - l = i3GEO.barraDeBotoes.LISTABOTOES;  
733 - b = l.length-1; 730 + var l = i3GEO.barraDeBotoes.LISTABOTOES,
  731 + b = l.length-1;
734 if (b >= 0){ 732 if (b >= 0){
735 do{ 733 do{
736 temp = l[b].iddiv; 734 temp = l[b].iddiv;
@@ -808,8 +806,7 @@ i3GEO.barraDeBotoes = { @@ -808,8 +806,7 @@ i3GEO.barraDeBotoes = {
808 i3GEO.ajuda.abreJanela(); 806 i3GEO.ajuda.abreJanela();
809 }; 807 };
810 $i(euEnv.euDockArray.euDock_0.bar.elementsArray.right.id).onclick = function(){ 808 $i(euEnv.euDockArray.euDock_0.bar.elementsArray.right.id).onclick = function(){
811 - var temp = "",  
812 - dica, 809 + var dica,
813 titulo, 810 titulo,
814 chaves = i3GEO.util.listaChaves(i3GEO.barraDeBotoes.INCLUIBOTAO), 811 chaves = i3GEO.util.listaChaves(i3GEO.barraDeBotoes.INCLUIBOTAO),
815 n = chaves.length, 812 n = chaves.length,
@@ -853,7 +850,7 @@ i3GEO.barraDeBotoes = { @@ -853,7 +850,7 @@ i3GEO.barraDeBotoes = {
853 }; 850 };
854 //div que mostra o título do botão 851 //div que mostra o título do botão
855 if(!$i("euDockMensagem")){ 852 if(!$i("euDockMensagem")){
856 - var temp = novoel = document.createElement("div"); 853 + temp = novoel = document.createElement("div");
857 temp.style.top = "38px"; 854 temp.style.top = "38px";
858 temp.style.color = "gray"; 855 temp.style.color = "gray";
859 temp.style.textAlign = "center"; 856 temp.style.textAlign = "center";
@@ -913,8 +910,8 @@ i3GEO.barraDeBotoes = { @@ -913,8 +910,8 @@ i3GEO.barraDeBotoes = {
913 {this.TEMPLATEBOTAO = "<div style='display:inline;background-color:rgb(250,250,250);'><img style='border:0px solid white;' src='"+i3GEO.configura.locaplic+"/imagens/branco.gif' id='$$'/></div>";} 910 {this.TEMPLATEBOTAO = "<div style='display:inline;background-color:rgb(250,250,250);'><img style='border:0px solid white;' src='"+i3GEO.configura.locaplic+"/imagens/branco.gif' id='$$'/></div>";}
914 if(this.TEMPLATEBOTAO === "" && i3GEO.Interface.TABLET === true) 911 if(this.TEMPLATEBOTAO === "" && i3GEO.Interface.TABLET === true)
915 {this.TEMPLATEBOTAO = "<div style='display:inline;background-color:rgb(250,250,250);'><img style='margin:4px;border:0px solid white;' src='"+i3GEO.configura.locaplic+"/imagens/branco.gif' id='$$'/></div>";} 912 {this.TEMPLATEBOTAO = "<div style='display:inline;background-color:rgb(250,250,250);'><img style='margin:4px;border:0px solid white;' src='"+i3GEO.configura.locaplic+"/imagens/branco.gif' id='$$'/></div>";}
916 -  
917 - var ticone,tipo,mostra,i,temp,elementos,e,wj,recuo,novoel,alturadisponivel,n,chaves,re,estilo, 913 + var ticone,tipo,mostra,i,temp,e,wj,recuo,novoel,alturadisponivel,n,chaves,
  914 + elementos = "",
918 numerobotoes = 0, 915 numerobotoes = 0,
919 nelementos = 0, 916 nelementos = 0,
920 Dom = YAHOO.util.Dom, 917 Dom = YAHOO.util.Dom,
@@ -951,9 +948,6 @@ i3GEO.barraDeBotoes = { @@ -951,9 +948,6 @@ i3GEO.barraDeBotoes = {
951 if(typeof(onde) === 'undefined'){ 948 if(typeof(onde) === 'undefined'){
952 novoel = document.createElement("div"); 949 novoel = document.createElement("div");
953 novoel.id = "barraDeBotoes2"; 950 novoel.id = "barraDeBotoes2";
954 - estilo = "font-size:2px;";  
955 - if(this.SOICONES === true)  
956 - {estilo = "font-size:0px;";}  
957 novoel.innerHTML = "<table style='width:100%'>"+ 951 novoel.innerHTML = "<table style='width:100%'>"+
958 "<tr><td style='background-color:rgb(250,250,250);'><img title='' alt='sobe' src='"+branco+"' id='sobeferramentas'/></td></tr>"+ 952 "<tr><td style='background-color:rgb(250,250,250);'><img title='' alt='sobe' src='"+branco+"' id='sobeferramentas'/></td></tr>"+
959 "</table>" +temp+ 953 "</table>" +temp+
@@ -1171,7 +1165,7 @@ i3GEO.barraDeBotoes = { @@ -1171,7 +1165,7 @@ i3GEO.barraDeBotoes = {
1171 */ 1165 */
1172 ativaMenuContexto: function(idbarra){ 1166 ativaMenuContexto: function(idbarra){
1173 if(typeof(console) !== 'undefined'){console.info("i3GEO.barraDeBotoes.ativaMenuContexto()");} 1167 if(typeof(console) !== 'undefined'){console.info("i3GEO.barraDeBotoes.ativaMenuContexto()");}
1174 - var oFieldContextMenuItemData,oFieldContextMenu,onFieldMenuRender,id; 1168 + var oFieldContextMenuItemData,oFieldContextMenu,onFieldMenuRender;
1175 function executar(a,b,c) 1169 function executar(a,b,c)
1176 {eval(c);} 1170 {eval(c);}
1177 oFieldContextMenuItemData = [ 1171 oFieldContextMenuItemData = [
@@ -1190,7 +1184,7 @@ i3GEO.barraDeBotoes = { @@ -1190,7 +1184,7 @@ i3GEO.barraDeBotoes = {
1190 } 1184 }
1191 ); 1185 );
1192 onFieldMenuRender = function(){ 1186 onFieldMenuRender = function(){
1193 - eval("var id = 'contexto_"+idbarra+"'"); 1187 + var id = "contexto_"+idbarra;
1194 $i(id).style.zIndex = 50000; 1188 $i(id).style.zIndex = 50000;
1195 }; 1189 };
1196 oFieldContextMenu.subscribe("render", onFieldMenuRender); 1190 oFieldContextMenu.subscribe("render", onFieldMenuRender);
@@ -1250,7 +1244,7 @@ i3GEO.barraDeBotoes = { @@ -1250,7 +1244,7 @@ i3GEO.barraDeBotoes = {
1250 {$i("i3geoMarcaIcone").style.display = "none";} 1244 {$i("i3geoMarcaIcone").style.display = "none";}
1251 return; 1245 return;
1252 } 1246 }
1253 - var n,temp,novoel,barraZoom,x,y, 1247 + var i,n,temp,novoel,barraZoom,x,y,
1254 BARRAS = i3GEO.barraDeBotoes.BARRAS, 1248 BARRAS = i3GEO.barraDeBotoes.BARRAS,
1255 iu = i3GEO.util; 1249 iu = i3GEO.util;
1256 i3GEO.barraDeBotoes.BARRAS = []; 1250 i3GEO.barraDeBotoes.BARRAS = [];
@@ -1296,7 +1290,8 @@ i3GEO.barraDeBotoes = { @@ -1296,7 +1290,8 @@ i3GEO.barraDeBotoes = {
1296 */ 1290 */
1297 fecha: function(id){ 1291 fecha: function(id){
1298 if(typeof(console) !== 'undefined'){console.info("i3GEO.barraDeBotoes.fecha()");} 1292 if(typeof(console) !== 'undefined'){console.info("i3GEO.barraDeBotoes.fecha()");}
1299 - var n = this.BARRAS.length; 1293 + var i,
  1294 + n = this.BARRAS.length;
1300 for(i=0;i<n;i+=1){ 1295 for(i=0;i<n;i+=1){
1301 if(this.BARRAS[i] && this.BARRAS[i].id === id){ 1296 if(this.BARRAS[i] && this.BARRAS[i].id === id){
1302 $i(id+"_c").style.visibility = "hidden"; 1297 $i(id+"_c").style.visibility = "hidden";
@@ -1418,7 +1413,7 @@ i3GEO.barraDeBotoes = { @@ -1418,7 +1413,7 @@ i3GEO.barraDeBotoes = {
1418 criaJanela: function(){ 1413 criaJanela: function(){
1419 if($i("i3GEOjanelaEditor")) 1414 if($i("i3GEOjanelaEditor"))
1420 {return "i3GEOjanelaEditor";} 1415 {return "i3GEOjanelaEditor";}
1421 - var janela,divid,temp,titulo,cabecalho,minimiza; 1416 + var janela,divid,titulo,cabecalho,minimiza;
1422 cabecalho = function(){}; 1417 cabecalho = function(){};
1423 minimiza = function(){ 1418 minimiza = function(){
1424 i3GEO.janela.minimiza("i3GEOjanelaEditor"); 1419 i3GEO.janela.minimiza("i3GEOjanelaEditor");
classesjs/classe_calculo.js
@@ -109,7 +109,7 @@ i3GEO.calculo = { @@ -109,7 +109,7 @@ i3GEO.calculo = {
109 */ 109 */
110 dd2tela: function (vx,vy,docmapa,ext,cellsize){ 110 dd2tela: function (vx,vy,docmapa,ext,cellsize){
111 try{ 111 try{
112 - var pos,latlng,xyn,dc,imgext,c,xy; 112 + var pos,xyn,dc,imgext,c,xy;
113 if(i3GEO.Interface.ATUAL === "googlemaps" && docmapa.id !== "mapaReferencia"){ 113 if(i3GEO.Interface.ATUAL === "googlemaps" && docmapa.id !== "mapaReferencia"){
114 pos = i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDCORPO)); 114 pos = i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDCORPO));
115 xyn = i3GeoMapOverlay.getProjection().fromLatLngToContainerPixel(new google.maps.LatLng(vy,vx)); 115 xyn = i3GeoMapOverlay.getProjection().fromLatLngToContainerPixel(new google.maps.LatLng(vy,vx));
@@ -156,7 +156,10 @@ i3GEO.calculo = { @@ -156,7 +156,10 @@ i3GEO.calculo = {
156 {Array} - Array com o valor de x [0] e y [1] no formato dd mm ss 156 {Array} - Array com o valor de x [0] e y [1] no formato dd mm ss
157 */ 157 */
158 dd2dms: function(x,y){ 158 dd2dms: function(x,y){
159 - var restod,mx,sx,mm,restos,my,sy,s,dx,dy; 159 + var restod = 0,
  160 + sx = "00.00",
  161 + sy = "00.00",
  162 + mx,mm,restos,my,s,dx,dy;
160 dx = parseInt(x,10); 163 dx = parseInt(x,10);
161 if (dx > 0) 164 if (dx > 0)
162 {restod = x - dx;} 165 {restod = x - dx;}
@@ -400,12 +403,12 @@ i3GEO.calculo = { @@ -400,12 +403,12 @@ i3GEO.calculo = {
400 iterLimit = 20, 403 iterLimit = 20,
401 sinLambda, 404 sinLambda,
402 cosLambda, 405 cosLambda,
403 - sinSigma,  
404 - cosSigma,  
405 - sigma, 406 + sinSigma = 0,
  407 + cosSigma = 0,
  408 + sigma = 0,
406 alpha, 409 alpha,
407 - cosSqAlpha,  
408 - cos2SigmaM, 410 + cosSqAlpha = 0,
  411 + cos2SigmaM = 0,
409 C, 412 C,
410 uSq, 413 uSq,
411 A, 414 A,
@@ -540,7 +543,7 @@ i3GEO.calculo = { @@ -540,7 +543,7 @@ i3GEO.calculo = {
540 */ 543 */
541 rect2ext: function(idrect,mapext,pixel){ 544 rect2ext: function(idrect,mapext,pixel){
542 if(typeof(console) !== 'undefined'){console.info("i3GEO.calculo.rect2ext()");} 545 if(typeof(console) !== 'undefined'){console.info("i3GEO.calculo.rect2ext()");}
543 - var bx,bxs,xfig,yfig,nx,ny,pix,piy,pos,amext,dx,dy,x1,y1,x2,y2, 546 + var bx,bxs,xfig,yfig,nx,ny,pos,amext,dy,x1,y1,x2,y2,
544 pix = parseInt(document.getElementById(idrect).style.left,10), 547 pix = parseInt(document.getElementById(idrect).style.left,10),
545 piy = parseInt(document.getElementById(idrect).style.top,10); 548 piy = parseInt(document.getElementById(idrect).style.top,10);
546 if($i(idrect)){ 549 if($i(idrect)){
@@ -553,7 +556,6 @@ i3GEO.calculo = { @@ -553,7 +556,6 @@ i3GEO.calculo = {
553 xfig = pix + (parseInt(bxs.width,10)) - pos[0]; 556 xfig = pix + (parseInt(bxs.width,10)) - pos[0];
554 yfig = piy + (parseInt(bxs.height,10)) - pos[1]; 557 yfig = piy + (parseInt(bxs.height,10)) - pos[1];
555 amext = mapext.split(" "); 558 amext = mapext.split(" ");
556 - dx = ((amext[0] * -1) - (amext[2] * -1)) / -1;  
557 dy = ((amext[1] * 1) - (amext[3] * 1)) / -1; 559 dy = ((amext[1] * 1) - (amext[3] * 1)) / -1;
558 if (dy < 0) 560 if (dy < 0)
559 {dy=dy * -1;} 561 {dy=dy * -1;}
@@ -594,9 +596,8 @@ i3GEO.calculo = { @@ -594,9 +596,8 @@ i3GEO.calculo = {
594 */ 596 */
595 ext2rect: function(idrect,mapext,boxext,pixel,documento){ 597 ext2rect: function(idrect,mapext,boxext,pixel,documento){
596 if(typeof(console) !== 'undefined'){console.info("i3GEO.calculo.ext2rect()");} 598 if(typeof(console) !== 'undefined'){console.info("i3GEO.calculo.ext2rect()");}
597 - var rectbox,rectmap,xyMin,xyMax,w,h,tl,pos,t,l,d,box; 599 + var rectbox,xyMin,xyMax,w,h,tl,pos,t,l,d,box;
598 rectbox = boxext.split(" "); 600 rectbox = boxext.split(" ");
599 - rectmap = mapext.split(" ");  
600 xyMin = i3GEO.calculo.dd2tela(rectbox[0],rectbox[1],documento,boxext,pixel); 601 xyMin = i3GEO.calculo.dd2tela(rectbox[0],rectbox[1],documento,boxext,pixel);
601 xyMax = i3GEO.calculo.dd2tela(rectbox[2],rectbox[3],documento,boxext,pixel); 602 xyMax = i3GEO.calculo.dd2tela(rectbox[2],rectbox[3],documento,boxext,pixel);
602 w = xyMax[0]-xyMin[0]; 603 w = xyMax[0]-xyMin[0];
classesjs/classe_configura.js
@@ -673,8 +673,8 @@ i3GEO.configura = { @@ -673,8 +673,8 @@ i3GEO.configura = {
673 "" 673 ""
674 ); 674 );
675 $i("janelaBuscaRapida_corpo").style.backgroundColor = "white"; 675 $i("janelaBuscaRapida_corpo").style.backgroundColor = "white";
  676 + i3GEO.gadgets.mostraBuscaRapida(janela[2].id);
676 } 677 }
677 - i3GEO.gadgets.mostraBuscaRapida(janela[2].id);  
678 } 678 }
679 }, 679 },
680 { 680 {
@@ -745,77 +745,6 @@ i3GEO.configura = { @@ -745,77 +745,6 @@ i3GEO.configura = {
745 {i3GEO.Interface.openlayers.OLpanel.activateControl(i3GEO.Interface.openlayers.OLpan);} 745 {i3GEO.Interface.openlayers.OLpanel.activateControl(i3GEO.Interface.openlayers.OLpan);}
746 return; 746 return;
747 } 747 }
748 - panMapaInicia = function(exy){  
749 - var k;  
750 - leftinicial = 0;  
751 - topinicial = 0;  
752 - if ($i("img") && (g_tipoacao === "pan")){  
753 - try{  
754 - if(arguments.length > 0){  
755 - if(navm)  
756 - {k = event.button;}  
757 - else  
758 - {k = exy.button;}  
759 - if(k === 2){return;}  
760 - }  
761 - }  
762 - catch(h){  
763 - if(typeof(console) !== 'undefined'){console.error(h);}  
764 - }  
765 - g_panM = "sim";  
766 - if($i(i3GEO.Interface.IDCORPO)){  
767 - leftinicial = parseInt($i(i3GEO.Interface.IDCORPO).style.left,10);  
768 - topinicial = parseInt($i(i3GEO.Interface.IDCORPO).style.top,10);  
769 - }  
770 - clicinicialx = objposicaocursor.imgx;  
771 - clicinicialy = objposicaocursor.imgy;  
772 - ddinicialx = objposicaocursor.ddx;  
773 - ddinicialy = objposicaocursor.ddy;  
774 - //  
775 - //faz os cálculos para o posicionamento do box sobre o mapa de referência  
776 - //  
777 - boxrefObj = $i("boxref");  
778 - if(boxrefObj){  
779 - proporcaoBox = i3GEO.parametros.w / parseInt(boxrefObj.style.width,10);  
780 - boxrefObjLeft = parseInt(boxrefObj.style.left,10);  
781 - boxrefObjTop = parseInt(boxrefObj.style.top,10);  
782 - }  
783 - }  
784 - };  
785 - panMapaDesloca = function(){  
786 - var nx,ny,l,t;  
787 - if (typeof(g_panM) !== 'undefined' && $i(i3GEO.Interface.IDMAPA) && (g_panM === "sim")){  
788 - nx = objposicaocursor.telax - leftinicial - clicinicialx;  
789 - ny = objposicaocursor.telay - topinicial - clicinicialy;  
790 - }  
791 - };  
792 - panMapaTermina = function(){  
793 - if (g_tipoacao === "pan"){  
794 - marcadorZoom = "";  
795 - g_panM = "nao";  
796 - //alert(ddinicialx+","+ddinicialy+","+objposicaocursor.ddx+","+objposicaocursor.ddy)  
797 - try{  
798 - var f = "i3GEO.navega.timerNavega = null;if("+  
799 - "i3GEO.navega.xy2xy('"+  
800 - i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"',"+ddinicialx+","+ddinicialy+","+objposicaocursor.ddx+","+objposicaocursor.ddy+",'"+i3GEO.parametros.mapexten+"','"+i3GEO.configura.tipoimagem+"'"+  
801 - ") == false"+  
802 - "){"+  
803 - "i3GEO.navega.zoompontoIMG('"+i3GEO.configura.locaplic+"','"+i3GEO.configura.sid+"',"+objposicaocursor.imgx+","+objposicaocursor.imgy+")"+  
804 - "}";  
805 - clearTimeout(i3GEO.navega.timerNavega);  
806 - i3GEO.navega.timerNavega = setTimeout(f,i3GEO.navega.TEMPONAVEGAR);  
807 - }  
808 - catch(e){  
809 - if(typeof(console) !== 'undefined'){console.error(e);}  
810 - }  
811 - }  
812 - };  
813 - if(i3GEO.eventos.MOUSEDOWN.toString().search("panMapaInicia()") < 0)  
814 - {i3GEO.eventos.MOUSEDOWN.push("panMapaInicia()");}  
815 - if(i3GEO.eventos.MOUSEMOVE.toString().search("panMapaDesloca()") < 0)  
816 - {i3GEO.eventos.MOUSEMOVE.push("panMapaDesloca()");}  
817 - if(i3GEO.eventos.MOUSEUP.toString().search("panMapaTermina()") < 0)  
818 - {i3GEO.eventos.MOUSEUP.push("panMapaTermina()");}  
819 } 748 }
820 }, 749 },
821 { 750 {
classesjs/classe_coordenadas.js
@@ -260,13 +260,12 @@ i3GEO.coordenadas = { @@ -260,13 +260,12 @@ i3GEO.coordenadas = {
260 if(objposicaocursor.imgx < 10 || objposicaocursor.imgy < 10) 260 if(objposicaocursor.imgx < 10 || objposicaocursor.imgy < 10)
261 {return;} 261 {return;}
262 if($i("wdoca")){return;} 262 if($i("wdoca")){return;}
263 - var tempUtm,s,n,i,t;  
264 // 263 //
265 //cancela se existir alguma ferramenta ativa 264 //cancela se existir alguma ferramenta ativa
266 // 265 //
267 if(i3GEO.util.verificaScriptTag("i3GEOF") === true) 266 if(i3GEO.util.verificaScriptTag("i3GEOF") === true)
268 {return;} 267 {return;}
269 - tempUtm = function(retorno){ 268 + var tempUtm = function(retorno){
270 var funcao,temp,texto; 269 var funcao,temp,texto;
271 funcao = "$i(i3GEO.coordenadas.PARAMETROS.mostraCoordenadasUTM.idhtml).style.display='none';"+ 270 funcao = "$i(i3GEO.coordenadas.PARAMETROS.mostraCoordenadasUTM.idhtml).style.display='none';"+
272 "if(i3GEO.coordenadas.PARAMETROS.mostraCoordenadasGEO.idhtml == i3GEO.coordenadas.PARAMETROS.mostraCoordenadasUTM.idhtml)"+ 271 "if(i3GEO.coordenadas.PARAMETROS.mostraCoordenadasGEO.idhtml == i3GEO.coordenadas.PARAMETROS.mostraCoordenadasUTM.idhtml)"+
@@ -303,7 +302,6 @@ i3GEO.coordenadas = { @@ -303,7 +302,6 @@ i3GEO.coordenadas = {
303 mostraCoordenadasGEO: function(id){ 302 mostraCoordenadasGEO: function(id){
304 if(typeof(console) !== 'undefined'){console.info("i3GEO.coordenadas.mostraCoordenadasGEO()");} 303 if(typeof(console) !== 'undefined'){console.info("i3GEO.coordenadas.mostraCoordenadasGEO()");}
305 try{ 304 try{
306 - var ins;  
307 if(arguments.length === 0 || id === "" || typeof(id) === 'undefined') 305 if(arguments.length === 0 || id === "" || typeof(id) === 'undefined')
308 {id = this.PARAMETROS.mostraCoordenadasGEO.idhtml;} 306 {id = this.PARAMETROS.mostraCoordenadasGEO.idhtml;}
309 else 307 else
@@ -445,7 +443,8 @@ i3GEO.coordenadas = { @@ -445,7 +443,8 @@ i3GEO.coordenadas = {
445 443
446 */ 444 */
447 atualizaProj4: function(onde,configProj,x,y){ 445 atualizaProj4: function(onde,configProj,x,y){
448 - var destino,zona,temp,p, 446 + var zona,temp,p,
  447 + destino = "",
449 iu = i3GEO.util; 448 iu = i3GEO.util;
450 try{ 449 try{
451 if(!$i(onde+configProj+"ZN")) 450 if(!$i(onde+configProj+"ZN"))
classesjs/classe_desenho.js
@@ -229,7 +229,7 @@ i3GEO.desenho = { @@ -229,7 +229,7 @@ i3GEO.desenho = {
229 texto {string} - texto que será inserido no tipo "insereTexto" 229 texto {string} - texto que será inserido no tipo "insereTexto"
230 */ 230 */
231 aplica: function(tipo,objeto,n,texto){ 231 aplica: function(tipo,objeto,n,texto){
232 - var pos,r,elemento,elementos,dy,dx,w,i,nindice,ix,iy,dm; 232 + var dy,dx,w;
233 if(i3GEO.desenho.richdraw && $i(i3GEO.Interface.IDCORPO)){ 233 if(i3GEO.desenho.richdraw && $i(i3GEO.Interface.IDCORPO)){
234 //pos = i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDCORPO)); 234 //pos = i3GEO.util.pegaPosicaoObjeto($i(i3GEO.Interface.IDCORPO));
235 // 235 //
@@ -242,33 +242,6 @@ i3GEO.desenho = { @@ -242,33 +242,6 @@ i3GEO.desenho = {
242 if(typeof(console) !== 'undefined'){console.error(erro);} 242 if(typeof(console) !== 'undefined'){console.error(erro);}
243 } 243 }
244 } 244 }
245 - /*  
246 - if((tipo==="resizeLinha") && navm){  
247 - r = $i(i3GEO.desenho.richdraw.container.id);  
248 - elementos = r.childNodes;  
249 - if(desenhoUltimaLinha !== "")  
250 - {r.removeChild(desenhoUltimaLinha);}  
251 - dy = objposicaocursor.imgy;  
252 - dx = objposicaocursor.imgx;// - (i3GEO.parametros.w/2);  
253 - i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode, i3GEO.desenho.richdraw.fillColor, i3GEO.desenho.richdraw.lineColor, i3GEO.desenho.richdraw.lineWidth, (pontosdistobj.ximg[n-1]),pontosdistobj.yimg[n-1],dx,dy);  
254 - desenhoUltimaLinha = r.childNodes[$i(i3GEO.desenho.richdraw.container.id).childNodes.length - 1];  
255 - }  
256 - if((tipo==="resizePoligono") && navm){  
257 - try{  
258 - r = $i(i3GEO.desenho.richdraw.container.id);  
259 - elementos = r.childNodes;  
260 - if(desenhoUltimaLinhaPol !== "")  
261 - {r.removeChild(desenhoUltimaLinhaPol);}  
262 - dy = objposicaocursor.imgy;  
263 - dx = objposicaocursor.imgx;// - (i3GEO.parametros.w/2);  
264 - i3GEO.desenho.richdraw.renderer.create(i3GEO.desenho.richdraw.mode, i3GEO.desenho.richdraw.fillColor, i3GEO.desenho.richdraw.lineColor, i3GEO.desenho.richdraw.lineWidth, (pontosdistobj.ximg[n-1]),pontosdistobj.yimg[n-1],dx,dy);  
265 - desenhoUltimaLinhaPol = r.childNodes[$i(i3GEO.desenho.richdraw.container.id).childNodes.length - 1];  
266 - }  
267 - catch(men){  
268 - if(typeof(console) !== 'undefined'){console.error(men);}  
269 - }  
270 - }  
271 - */  
272 if(tipo==="insereCirculo"){ 245 if(tipo==="insereCirculo"){
273 dx = Math.pow(((pontosdistobj.xtela[n])*1) - ((pontosdistobj.xtela[n-1])*1),2); 246 dx = Math.pow(((pontosdistobj.xtela[n])*1) - ((pontosdistobj.xtela[n-1])*1),2);
274 dy = Math.pow(((pontosdistobj.ytela[n])*1) - ((pontosdistobj.ytela[n-1])*1),2); 247 dy = Math.pow(((pontosdistobj.ytela[n])*1) - ((pontosdistobj.ytela[n-1])*1),2);
@@ -339,7 +312,7 @@ i3GEO.desenho = { @@ -339,7 +312,7 @@ i3GEO.desenho = {
339 sel = ""; 312 sel = "";
340 if(lista[i] === i3GEO.desenho.estiloPadrao) 313 if(lista[i] === i3GEO.desenho.estiloPadrao)
341 {sel = "select";} 314 {sel = "select";}
342 - caixa += "<option value='"+lista[i]+"' sel >"+lista[i]+"</option>"; 315 + caixa += "<option value='"+lista[i]+"'" + sel + ">"+lista[i]+"</option>";
343 } 316 }
344 caixa += "</select>"; 317 caixa += "</select>";
345 return caixa; 318 return caixa;
classesjs/classe_eventos.js
@@ -244,7 +244,7 @@ i3GEO.eventos = { @@ -244,7 +244,7 @@ i3GEO.eventos = {
244 eventos {array} - array com os nomes das funções 244 eventos {array} - array com os nomes das funções
245 */ 245 */
246 executaEventos: function(eventos){ 246 executaEventos: function(eventos){
247 - var f,temp; 247 + var f = 0;
248 try{ 248 try{
249 if (eventos.length > 0){ 249 if (eventos.length > 0){
250 f = eventos.length-1; 250 f = eventos.length-1;
@@ -303,7 +303,10 @@ i3GEO.eventos = { @@ -303,7 +303,10 @@ i3GEO.eventos = {
303 //Entretanto, nas ferramentas que usam o richdraw (distância e área) o posicionamento 303 //Entretanto, nas ferramentas que usam o richdraw (distância e área) o posicionamento
304 //deve ser controlado pelo i3geo 304 //deve ser controlado pelo i3geo
305 // 305 //
306 - var teladd,teladms,container,targ,pos,mousex,mousey,xfig,yfig,xreffig,yreffig,xtela,ytela,c,ex,r; 306 + var teladd,teladms,
  307 + container = "",
  308 + targ = "",
  309 + pos,mousex,mousey,xfig,yfig,xreffig,yreffig,xtela,ytela,c,ex,r;
307 if (!e){e = window.event;} 310 if (!e){e = window.event;}
308 try{ 311 try{
309 if (e.target) 312 if (e.target)
@@ -311,7 +314,8 @@ i3GEO.eventos = { @@ -311,7 +314,8 @@ i3GEO.eventos = {
311 else 314 else
312 if (e.srcElement) 315 if (e.srcElement)
313 {targ = e.srcElement;} 316 {targ = e.srcElement;}
314 - container = targ.parentNode.id; 317 + if(targ.parentNode)
  318 + {container = targ.parentNode.id;}
315 } 319 }
316 catch(erro){ 320 catch(erro){
317 if(typeof(console) !== 'undefined'){console.error(erro);} 321 if(typeof(console) !== 'undefined'){console.error(erro);}
@@ -495,7 +499,7 @@ i3GEO.eventos = { @@ -495,7 +499,7 @@ i3GEO.eventos = {
495 */ 499 */
496 cliqueCapturaPt: function(ixg,ixm,ixs,iyg,iym,iys){ 500 cliqueCapturaPt: function(ixg,ixm,ixs,iyg,iym,iys){
497 if(typeof(console) !== 'undefined'){console.info("i3GEO.eventos.cliqueCapturaPt()");} 501 if(typeof(console) !== 'undefined'){console.info("i3GEO.eventos.cliqueCapturaPt()");}
498 - var x,y,doc; 502 + var x,y,doc = document;
499 if(arguments.length === 0){ 503 if(arguments.length === 0){
500 ixg = "ixg"; 504 ixg = "ixg";
501 ixm = "ixm"; 505 ixm = "ixm";
@@ -506,9 +510,6 @@ i3GEO.eventos = { @@ -506,9 +510,6 @@ i3GEO.eventos = {
506 if($i("wdocai")) 510 if($i("wdocai"))
507 {doc = (navm) ? document.frames("wdocai").document : $i("wdocai").contentDocument;} 511 {doc = (navm) ? document.frames("wdocai").document : $i("wdocai").contentDocument;}
508 } 512 }
509 - else{  
510 - doc = document;  
511 - }  
512 // 513 //
513 //algumas operações de análise podem precisar das coordenadas 514 //algumas operações de análise podem precisar das coordenadas
514 //nesses casos, g_tipoacao é definida como "capturaponto" 515 //nesses casos, g_tipoacao é definida como "capturaponto"
classesjs/classe_gadgets.js
@@ -228,7 +228,7 @@ i3GEO.gadgets = { @@ -228,7 +228,7 @@ i3GEO.gadgets = {
228 */ 228 */
229 mostraEscalaNumerica: function(id){ 229 mostraEscalaNumerica: function(id){
230 if(typeof(console) !== 'undefined'){console.info("i3GEO.gadgets.mostraEscalaNumerica()");} 230 if(typeof(console) !== 'undefined'){console.info("i3GEO.gadgets.mostraEscalaNumerica()");}
231 - var i,ins,temp,onde,fsubmit; 231 + var i,ins,temp,onde;
232 if(arguments.length === 0) 232 if(arguments.length === 0)
233 {id = i3GEO.gadgets.PARAMETROS.mostraEscalaNumerica.idhtml;} 233 {id = i3GEO.gadgets.PARAMETROS.mostraEscalaNumerica.idhtml;}
234 onde = $i(id); 234 onde = $i(id);
@@ -551,7 +551,7 @@ i3GEO.gadgets = { @@ -551,7 +551,7 @@ i3GEO.gadgets = {
551 */ 551 */
552 mostraMenuSuspenso: function(id){ 552 mostraMenuSuspenso: function(id){
553 if(typeof(console) !== 'undefined'){console.info("i3GEO.gadgets.mostraMenuSuspenso()");} 553 if(typeof(console) !== 'undefined'){console.info("i3GEO.gadgets.mostraMenuSuspenso()");}
554 - var objid,sobe,n,i,estilo,t,onMenuBarBeforeRender,temp,ifr,i3GEOoMenuBarLocal, 554 + var objid,n,i,estilo,t,onMenuBarBeforeRender,temp,ifr,i3GEOoMenuBarLocal,
555 ms = i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso, 555 ms = i3GEO.gadgets.PARAMETROS.mostraMenuSuspenso,
556 confm = i3GEO.configura.oMenuData, 556 confm = i3GEO.configura.oMenuData,
557 ins = "", 557 ins = "",
@@ -597,8 +597,13 @@ i3GEO.gadgets = { @@ -597,8 +597,13 @@ i3GEO.gadgets = {
597 ins += '</ul>'; 597 ins += '</ul>';
598 ins += '</div>'; 598 ins += '</div>';
599 objid.innerHTML=ins; 599 objid.innerHTML=ins;
  600 + if(i3GEO.Interface.ATUAL === "googleearth")
  601 + {ifr = true;}
  602 + else
  603 + {ifr = false;}
  604 + i3GEOoMenuBarLocal = new YAHOO.widget.MenuBar(id,{iframe:ifr,autosubmenudisplay: true, showdelay: 100, hidedelay: 500, lazyload: false});
600 onMenuBarBeforeRender = function (p_sType, p_sArgs){ 605 onMenuBarBeforeRender = function (p_sType, p_sArgs){
601 - var conta,nomeMenu,nomeSub, 606 + var nomeMenu = "",nomeSub,
602 subs = i3GEO.configura.oMenuData.submenus, 607 subs = i3GEO.configura.oMenuData.submenus,
603 conta = 0; 608 conta = 0;
604 for(nomeMenu in subs){ 609 for(nomeMenu in subs){
@@ -617,11 +622,6 @@ i3GEO.gadgets = { @@ -617,11 +622,6 @@ i3GEO.gadgets = {
617 } 622 }
618 } 623 }
619 }; 624 };
620 - if(i3GEO.Interface.ATUAL === "googleearth")  
621 - {ifr = true;}  
622 - else  
623 - {ifr = false;}  
624 - i3GEOoMenuBarLocal = new YAHOO.widget.MenuBar(id,{iframe:ifr,autosubmenudisplay: true, showdelay: 100, hidedelay: 500, lazyload: false});  
625 i3GEOoMenuBar.addMenu(i3GEOoMenuBarLocal); 625 i3GEOoMenuBar.addMenu(i3GEOoMenuBarLocal);
626 i3GEOoMenuBarLocal.beforeRenderEvent.subscribe(onMenuBarBeforeRender); 626 i3GEOoMenuBarLocal.beforeRenderEvent.subscribe(onMenuBarBeforeRender);
627 i3GEOoMenuBarLocal.render(); 627 i3GEOoMenuBarLocal.render();
@@ -718,7 +718,8 @@ i3GEO.gadgets = { @@ -718,7 +718,8 @@ i3GEO.gadgets = {
718 i3GEO.gadgets.PARAMETROS 718 i3GEO.gadgets.PARAMETROS
719 */ 719 */
720 mostraMenuLista: function(id){ 720 mostraMenuLista: function(id){
721 - var objid,n,i,estilo,t,temp,nomeMenu,sub, 721 + var objid,n,i,sub,
  722 + nomeMenu = "",
722 ms = i3GEO.gadgets.PARAMETROS.mostraMenuLista, 723 ms = i3GEO.gadgets.PARAMETROS.mostraMenuLista,
723 confm = i3GEO.configura.oMenuData, 724 confm = i3GEO.configura.oMenuData,
724 ins = "", 725 ins = "",
@@ -727,7 +728,6 @@ i3GEO.gadgets = { @@ -727,7 +728,6 @@ i3GEO.gadgets = {
727 {id = ms.idhtml;} 728 {id = ms.idhtml;}
728 else 729 else
729 {ms.idhtml = id;} 730 {ms.idhtml = id;}
730 -  
731 objid = $i(id); 731 objid = $i(id);
732 if(objid){ 732 if(objid){
733 n = confm.menu.length; 733 n = confm.menu.length;
classesjs/classe_i3geo.js
@@ -250,7 +250,7 @@ i3GEO = { @@ -250,7 +250,7 @@ i3GEO = {
250 if(typeof(console) !== 'undefined'){console.info("i3GEO.cria()");} 250 if(typeof(console) !== 'undefined'){console.info("i3GEO.cria()");}
251 if(i3GEO.configura.ajustaDocType === true) 251 if(i3GEO.configura.ajustaDocType === true)
252 {i3GEO.util.ajustaDocType();} 252 {i3GEO.util.ajustaDocType();}
253 - var temp,i,tamanho; 253 + var temp,tamanho;
254 temp = window.location.href.split("?"); 254 temp = window.location.href.split("?");
255 if (temp[1]){ 255 if (temp[1]){
256 i3GEO.configura.sid = temp[1]; 256 i3GEO.configura.sid = temp[1];
@@ -303,7 +303,7 @@ i3GEO = { @@ -303,7 +303,7 @@ i3GEO = {
303 {i3GEOmantemCompatibilidade();} 303 {i3GEOmantemCompatibilidade();}
304 montaMapa = function(retorno){ 304 montaMapa = function(retorno){
305 try{ 305 try{
306 - var tempo,titulo,temp,abreJM; 306 + var temp,abreJM;
307 if(retorno === ""){ 307 if(retorno === ""){
308 alert("Ocorreu um erro no mapa - montaMapa"); 308 alert("Ocorreu um erro no mapa - montaMapa");
309 retorno = {data:{erro: "erro"}}; 309 retorno = {data:{erro: "erro"}};
classesjs/classe_php.js
@@ -107,7 +107,7 @@ i3GEO.php = { @@ -107,7 +107,7 @@ i3GEO.php = {
107 par = "funcao=insereSHPgrafico&tipo=pizza&tema="+tema+"&x="+x+"&y="+y+"&itens="+itens+"&shadow_height="+shadow_height+"&width="+width+"&inclinacao="+inclinacao+"&g_sid="+i3GEO.configura.sid, 107 par = "funcao=insereSHPgrafico&tipo=pizza&tema="+tema+"&x="+x+"&y="+y+"&itens="+itens+"&shadow_height="+shadow_height+"&width="+width+"&inclinacao="+inclinacao+"&g_sid="+i3GEO.configura.sid,
108 retorno = function(retorno){ 108 retorno = function(retorno){
109 i3GEO.janela.fechaAguarde("insereSHPgrafico"); 109 i3GEO.janela.fechaAguarde("insereSHPgrafico");
110 - funcao.call(retorno); 110 + funcao.call(funcao,retorno);
111 }; 111 };
112 i3GEO.janela.abreAguarde("insereSHPgrafico",$trad("o1")); 112 i3GEO.janela.abreAguarde("insereSHPgrafico",$trad("o1"));
113 cpJSON.call(p,"insereSHPgrafico",retorno,par); 113 cpJSON.call(p,"insereSHPgrafico",retorno,par);
@@ -123,7 +123,7 @@ i3GEO.php = { @@ -123,7 +123,7 @@ i3GEO.php = {
123 par = "funcao=insereSHP&item="+item+"&valor="+valoritem+"&tema="+tema+"&xy="+xy+"&projecao="+projecao+"&g_sid="+i3GEO.configura.sid, 123 par = "funcao=insereSHP&item="+item+"&valor="+valoritem+"&tema="+tema+"&xy="+xy+"&projecao="+projecao+"&g_sid="+i3GEO.configura.sid,
124 retorno = function(retorno){ 124 retorno = function(retorno){
125 i3GEO.janela.fechaAguarde("insereSHPgrafico"); 125 i3GEO.janela.fechaAguarde("insereSHPgrafico");
126 - funcao.call(retorno); 126 + funcao.call(funcao,retorno);
127 }; 127 };
128 cpJSON.call(p,"insereSHP",retorno,par); 128 cpJSON.call(p,"insereSHP",retorno,par);
129 }, 129 },
@@ -176,7 +176,7 @@ i3GEO.php = { @@ -176,7 +176,7 @@ i3GEO.php = {
176 i3GeoMap.getFeatures().removeChild(indice); 176 i3GeoMap.getFeatures().removeChild(indice);
177 } 177 }
178 } 178 }
179 - funcao.call(retorno); 179 + funcao.call(funcao,retorno);
180 }; 180 };
181 i3GEO.janela.abreAguarde("excluitema",$trad("o1")); 181 i3GEO.janela.abreAguarde("excluitema",$trad("o1"));
182 p = i3GEO.arvoreDeCamadas.LOCAPLIC+"/classesphp/mapa_controle.php"; 182 p = i3GEO.arvoreDeCamadas.LOCAPLIC+"/classesphp/mapa_controle.php";
@@ -194,7 +194,7 @@ i3GEO.php = { @@ -194,7 +194,7 @@ i3GEO.php = {
194 par = "funcao=reordenatemas&lista="+lista+"&g_sid="+i3GEO.arvoreDeCamadas.SID, 194 par = "funcao=reordenatemas&lista="+lista+"&g_sid="+i3GEO.arvoreDeCamadas.SID,
195 retorno = function(retorno){ 195 retorno = function(retorno){
196 i3GEO.janela.fechaAguarde("reordenatemas"); 196 i3GEO.janela.fechaAguarde("reordenatemas");
197 - funcao.call(retorno); 197 + funcao.call(funcao,retorno);
198 }; 198 };
199 i3GEO.janela.abreAguarde("reordenatemas",$trad("o1")); 199 i3GEO.janela.abreAguarde("reordenatemas",$trad("o1"));
200 cpJSON.call(p,"reordenatemas",retorno,par); 200 cpJSON.call(p,"reordenatemas",retorno,par);
@@ -227,7 +227,7 @@ i3GEO.php = { @@ -227,7 +227,7 @@ i3GEO.php = {
227 par = "funcao=inverteStatusClasse&g_sid="+i3GEO.arvoreDeCamadas.SID+"&tema="+tema+"&classe="+classe, 227 par = "funcao=inverteStatusClasse&g_sid="+i3GEO.arvoreDeCamadas.SID+"&tema="+tema+"&classe="+classe,
228 retorno = function(retorno){ 228 retorno = function(retorno){
229 i3GEO.janela.fechaAguarde("inverteStatusClasse"); 229 i3GEO.janela.fechaAguarde("inverteStatusClasse");
230 - funcao.call(retorno); 230 + funcao.call(funcao,retorno);
231 }; 231 };
232 i3GEO.janela.abreAguarde("inverteStatusClasse",$trad("o1")); 232 i3GEO.janela.abreAguarde("inverteStatusClasse",$trad("o1"));
233 cpJSON.call(p,"inverteStatusClasse",retorno,par); 233 cpJSON.call(p,"inverteStatusClasse",retorno,par);
@@ -245,7 +245,7 @@ i3GEO.php = { @@ -245,7 +245,7 @@ i3GEO.php = {
245 par = "funcao=ligatemas&desligar="+desligar+"&ligar="+ligar+"&adicionar="+adicionar+"&g_sid="+i3GEO.configura.sid, 245 par = "funcao=ligatemas&desligar="+desligar+"&ligar="+ligar+"&adicionar="+adicionar+"&g_sid="+i3GEO.configura.sid,
246 retorno = function(retorno){ 246 retorno = function(retorno){
247 //i3GEO.janela.fechaAguarde("ligatemas"); 247 //i3GEO.janela.fechaAguarde("ligatemas");
248 - funcao.call(retorno); 248 + funcao.call(funcao,retorno);
249 }; 249 };
250 //i3GEO.janela.abreAguarde("ligatemas",$trad("o1")); 250 //i3GEO.janela.abreAguarde("ligatemas",$trad("o1"));
251 cpJSON.call(p,"ligaDesligaTemas",retorno,par); 251 cpJSON.call(p,"ligaDesligaTemas",retorno,par);
@@ -430,7 +430,7 @@ i3GEO.php = { @@ -430,7 +430,7 @@ i3GEO.php = {
430 par = "funcao=mudatamanho&altura="+altura+"&largura="+largura+"&g_sid="+i3GEO.configura.sid, 430 par = "funcao=mudatamanho&altura="+altura+"&largura="+largura+"&g_sid="+i3GEO.configura.sid,
431 retorno = function(retorno){ 431 retorno = function(retorno){
432 i3GEO.janela.fechaAguarde("mudatamanho"); 432 i3GEO.janela.fechaAguarde("mudatamanho");
433 - funcao.call(retorno); 433 + funcao.call(funcao,retorno);
434 }; 434 };
435 i3GEO.janela.abreAguarde("mudatamanho",$trad("o1")); 435 i3GEO.janela.abreAguarde("mudatamanho",$trad("o1"));
436 cpJSON.call(p,"pegaSistemas",retorno,par); 436 cpJSON.call(p,"pegaSistemas",retorno,par);
@@ -446,7 +446,7 @@ i3GEO.php = { @@ -446,7 +446,7 @@ i3GEO.php = {
446 par = "funcao=ativalogo&g_sid="+i3GEO.configura.sid, 446 par = "funcao=ativalogo&g_sid="+i3GEO.configura.sid,
447 retorno = function(retorno){ 447 retorno = function(retorno){
448 i3GEO.janela.fechaAguarde("ativalogo"); 448 i3GEO.janela.fechaAguarde("ativalogo");
449 - funcao.call(retorno); 449 + funcao.call(funcao,retorno);
450 }; 450 };
451 i3GEO.janela.abreAguarde("ativalogo",$trad("o1")); 451 i3GEO.janela.abreAguarde("ativalogo",$trad("o1"));
452 cpJSON.call(p,"ativalogo",retorno,par); 452 cpJSON.call(p,"ativalogo",retorno,par);
@@ -462,7 +462,7 @@ i3GEO.php = { @@ -462,7 +462,7 @@ i3GEO.php = {
462 par = "funcao=inserefeature&pin="+pin+"&tipo=ANNOTATION&xy="+xy+"&texto="+texto+"&position="+position+"&partials="+partials+"&offsetx="+offsetx+"&offsety="+offsety+"&minfeaturesize="+minfeaturesize+"&mindistance="+mindistance+"&force="+force+"&shadowcolor="+shadowcolor+"&shadowsizex="+shadowsizex+"&shadowsizey="+shadowsizey+"&outlinecolor="+outlinecolor+"&cor="+cor+"&sombray="+sombray+"&sombrax="+sombrax+"&sombra="+sombra+"&fundo="+fundo+"&angulo="+angulo+"&tamanho="+tamanho+"&fonte="+fonte+"&g_sid="+i3GEO.configura.sid, 462 par = "funcao=inserefeature&pin="+pin+"&tipo=ANNOTATION&xy="+xy+"&texto="+texto+"&position="+position+"&partials="+partials+"&offsetx="+offsetx+"&offsety="+offsety+"&minfeaturesize="+minfeaturesize+"&mindistance="+mindistance+"&force="+force+"&shadowcolor="+shadowcolor+"&shadowsizex="+shadowsizex+"&shadowsizey="+shadowsizey+"&outlinecolor="+outlinecolor+"&cor="+cor+"&sombray="+sombray+"&sombrax="+sombrax+"&sombra="+sombra+"&fundo="+fundo+"&angulo="+angulo+"&tamanho="+tamanho+"&fonte="+fonte+"&g_sid="+i3GEO.configura.sid,
463 retorno = function(retorno){ 463 retorno = function(retorno){
464 i3GEO.janela.fechaAguarde("insereAnnotation"); 464 i3GEO.janela.fechaAguarde("insereAnnotation");
465 - funcao.call(retorno); 465 + funcao.call(funcao,retorno);
466 }; 466 };
467 i3GEO.janela.abreAguarde("insereAnnotation",$trad("o1")); 467 i3GEO.janela.abreAguarde("insereAnnotation",$trad("o1"));
468 cpJSON.call(p,"inserefeature",retorno,par); 468 cpJSON.call(p,"inserefeature",retorno,par);
@@ -489,7 +489,7 @@ i3GEO.php = { @@ -489,7 +489,7 @@ i3GEO.php = {
489 par = "funcao=recuperamapa&g_sid="+i3GEO.configura.sid, 489 par = "funcao=recuperamapa&g_sid="+i3GEO.configura.sid,
490 retorno = function(retorno){ 490 retorno = function(retorno){
491 i3GEO.janela.fechaAguarde("recuperamapa"); 491 i3GEO.janela.fechaAguarde("recuperamapa");
492 - funcao.call(retorno); 492 + funcao.call(funcao,retorno);
493 }; 493 };
494 i3GEO.janela.abreAguarde("recuperamapa",$trad("o1")); 494 i3GEO.janela.abreAguarde("recuperamapa",$trad("o1"));
495 cpJSON.call(p,"recuperamapa",retorno,par); 495 cpJSON.call(p,"recuperamapa",retorno,par);
@@ -583,7 +583,7 @@ i3GEO.php = { @@ -583,7 +583,7 @@ i3GEO.php = {
583 if(i3GEO.Interface.ATUAL === "googlemaps"){ 583 if(i3GEO.Interface.ATUAL === "googlemaps"){
584 i3GEO.Interface.googlemaps.pan2ponto(x,y); 584 i3GEO.Interface.googlemaps.pan2ponto(x,y);
585 } 585 }
586 - funcao.call(retorno); 586 + funcao.call(funcao,retorno);
587 }, 587 },
588 p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php", 588 p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php",
589 par = "funcao=zoomponto&pin=pin&xy="+x+" "+y+"&g_sid="+i3GEO.configura.sid+"&marca="+simbolo+"&tamanho="+tamanho+"&cor="+cor; 589 par = "funcao=zoomponto&pin=pin&xy="+x+" "+y+"&g_sid="+i3GEO.configura.sid+"&marca="+simbolo+"&tamanho="+tamanho+"&cor="+cor;
@@ -641,7 +641,7 @@ i3GEO.php = { @@ -641,7 +641,7 @@ i3GEO.php = {
641 break; 641 break;
642 } 642 }
643 try{ 643 try{
644 - funcao.call(retorno); 644 + funcao.call(funcao,retorno);
645 } 645 }
646 catch(e){} 646 catch(e){}
647 }; 647 };
@@ -660,7 +660,7 @@ i3GEO.php = { @@ -660,7 +660,7 @@ i3GEO.php = {
660 par = "funcao=mudaescala&escala="+escala+"&g_sid="+i3GEO.configura.sid+"&tipoimagem="+i3GEO.configura.tipoimagem, 660 par = "funcao=mudaescala&escala="+escala+"&g_sid="+i3GEO.configura.sid+"&tipoimagem="+i3GEO.configura.tipoimagem,
661 retorno = function(retorno){ 661 retorno = function(retorno){
662 i3GEO.janela.fechaAguarde("mudaescala"); 662 i3GEO.janela.fechaAguarde("mudaescala");
663 - funcao.call(retorno); 663 + funcao.call(funcao,retorno);
664 }; 664 };
665 i3GEO.janela.abreAguarde("mudaescala",$trad("o1")); 665 i3GEO.janela.abreAguarde("mudaescala",$trad("o1"));
666 cpJSON.call(p,"mudaescala",retorno,par); 666 cpJSON.call(p,"mudaescala",retorno,par);
@@ -687,7 +687,7 @@ i3GEO.php = { @@ -687,7 +687,7 @@ i3GEO.php = {
687 par = "funcao=geradestaque&tema="+tema+"&g_sid="+i3GEO.configura.sid+"&ext="+ext, 687 par = "funcao=geradestaque&tema="+tema+"&g_sid="+i3GEO.configura.sid+"&ext="+ext,
688 retorno = function(retorno){ 688 retorno = function(retorno){
689 i3GEO.janela.fechaAguarde("geradestaque"); 689 i3GEO.janela.fechaAguarde("geradestaque");
690 - funcao.call(retorno); 690 + funcao.call(funcao,retorno);
691 }; 691 };
692 i3GEO.janela.abreAguarde("geradestaque",$trad("o1")); 692 i3GEO.janela.abreAguarde("geradestaque",$trad("o1"));
693 cpJSON.call(p,"geradestaque",retorno,par); 693 cpJSON.call(p,"geradestaque",retorno,par);
@@ -758,7 +758,7 @@ i3GEO.php = { @@ -758,7 +758,7 @@ i3GEO.php = {
758 par = "funcao=sobetema&tema="+tema+"&g_sid="+i3GEO.configura.sid, 758 par = "funcao=sobetema&tema="+tema+"&g_sid="+i3GEO.configura.sid,
759 retorno = function(retorno){ 759 retorno = function(retorno){
760 i3GEO.janela.fechaAguarde("sobetema"); 760 i3GEO.janela.fechaAguarde("sobetema");
761 - funcao.call(retorno); 761 + funcao.call(funcao,retorno);
762 }; 762 };
763 i3GEO.janela.abreAguarde("sobetema",$trad("o1")); 763 i3GEO.janela.abreAguarde("sobetema",$trad("o1"));
764 cpJSON.call(p,"sobetema",retorno,par); 764 cpJSON.call(p,"sobetema",retorno,par);
@@ -774,7 +774,7 @@ i3GEO.php = { @@ -774,7 +774,7 @@ i3GEO.php = {
774 par = "funcao=descetema&tema="+tema+"&g_sid="+i3GEO.configura.sid, 774 par = "funcao=descetema&tema="+tema+"&g_sid="+i3GEO.configura.sid,
775 retorno = function(retorno){ 775 retorno = function(retorno){
776 i3GEO.janela.fechaAguarde("descetema"); 776 i3GEO.janela.fechaAguarde("descetema");
777 - funcao.call(retorno); 777 + funcao.call(funcao,retorno);
778 }; 778 };
779 i3GEO.janela.abreAguarde("descetema",$trad("o1")); 779 i3GEO.janela.abreAguarde("descetema",$trad("o1"));
780 cpJSON.call(p,"descetema",retorno,par); 780 cpJSON.call(p,"descetema",retorno,par);
@@ -790,7 +790,7 @@ i3GEO.php = { @@ -790,7 +790,7 @@ i3GEO.php = {
790 par = "funcao=fontetema&tema="+tema+"&g_sid="+i3GEO.configura.sid, 790 par = "funcao=fontetema&tema="+tema+"&g_sid="+i3GEO.configura.sid,
791 retorno = function(retorno){ 791 retorno = function(retorno){
792 i3GEO.janela.fechaAguarde("fontetema"); 792 i3GEO.janela.fechaAguarde("fontetema");
793 - funcao.call(retorno); 793 + funcao.call(funcao,retorno);
794 }; 794 };
795 i3GEO.janela.abreAguarde("fontetema",$trad("o1")); 795 i3GEO.janela.abreAguarde("fontetema",$trad("o1"));
796 cpJSON.call(p,"fontetema",retorno,par); 796 cpJSON.call(p,"fontetema",retorno,par);
@@ -872,7 +872,7 @@ i3GEO.php = { @@ -872,7 +872,7 @@ i3GEO.php = {
872 par = "funcao=limpasel&tema="+tema+"&g_sid="+i3GEO.configura.sid, 872 par = "funcao=limpasel&tema="+tema+"&g_sid="+i3GEO.configura.sid,
873 retorno = function(retorno){ 873 retorno = function(retorno){
874 i3GEO.janela.fechaAguarde("limpasel"); 874 i3GEO.janela.fechaAguarde("limpasel");
875 - funcao.call(retorno); 875 + funcao.call(funcao,retorno);
876 }; 876 };
877 i3GEO.janela.abreAguarde("limpasel",$trad("o1")); 877 i3GEO.janela.abreAguarde("limpasel",$trad("o1"));
878 cpJSON.call(p,"limpasel",retorno,par); 878 cpJSON.call(p,"limpasel",retorno,par);
@@ -888,7 +888,7 @@ i3GEO.php = { @@ -888,7 +888,7 @@ i3GEO.php = {
888 par = "funcao=invertestatuslegenda&tema="+tema+"&g_sid="+i3GEO.configura.sid, 888 par = "funcao=invertestatuslegenda&tema="+tema+"&g_sid="+i3GEO.configura.sid,
889 retorno = function(retorno){ 889 retorno = function(retorno){
890 i3GEO.janela.fechaAguarde("invertestatuslegenda"); 890 i3GEO.janela.fechaAguarde("invertestatuslegenda");
891 - funcao.call(retorno); 891 + funcao.call(funcao,retorno);
892 }; 892 };
893 i3GEO.janela.abreAguarde("invertestatuslegenda",$trad("o1")); 893 i3GEO.janela.abreAguarde("invertestatuslegenda",$trad("o1"));
894 cpJSON.call(p,"invertestatuslegenda",retorno,par); 894 cpJSON.call(p,"invertestatuslegenda",retorno,par);
@@ -904,7 +904,7 @@ i3GEO.php = { @@ -904,7 +904,7 @@ i3GEO.php = {
904 par = "funcao=alteraclasse&opcao=alteracor&tema="+idtema+"&idclasse="+idclasse+"&cor="+rgb+"&g_sid="+i3GEO.configura.sid, 904 par = "funcao=alteraclasse&opcao=alteracor&tema="+idtema+"&idclasse="+idclasse+"&cor="+rgb+"&g_sid="+i3GEO.configura.sid,
905 retorno = function(retorno){ 905 retorno = function(retorno){
906 i3GEO.janela.fechaAguarde("aplicaCorClasseTema"); 906 i3GEO.janela.fechaAguarde("aplicaCorClasseTema");
907 - funcao.call(retorno); 907 + funcao.call(funcao,retorno);
908 }; 908 };
909 i3GEO.janela.abreAguarde("aplicaCorClasseTema",$trad("o1")); 909 i3GEO.janela.abreAguarde("aplicaCorClasseTema",$trad("o1"));
910 cpJSON.call(p,"aplicaCorClasseTema",retorno,par); 910 cpJSON.call(p,"aplicaCorClasseTema",retorno,par);
@@ -920,7 +920,7 @@ i3GEO.php = { @@ -920,7 +920,7 @@ i3GEO.php = {
920 par = "funcao=mudatransp&tema="+tema+"&valor="+valor+"&g_sid="+i3GEO.configura.sid, 920 par = "funcao=mudatransp&tema="+tema+"&valor="+valor+"&g_sid="+i3GEO.configura.sid,
921 retorno = function(retorno){ 921 retorno = function(retorno){
922 i3GEO.janela.fechaAguarde("mudatransp"); 922 i3GEO.janela.fechaAguarde("mudatransp");
923 - funcao.call(retorno); 923 + funcao.call(funcao,retorno);
924 }; 924 };
925 i3GEO.janela.abreAguarde("mudatransp",$trad("o1")); 925 i3GEO.janela.abreAguarde("mudatransp",$trad("o1"));
926 cpJSON.call(p,"mudatransp",retorno,par); 926 cpJSON.call(p,"mudatransp",retorno,par);
@@ -936,7 +936,7 @@ i3GEO.php = { @@ -936,7 +936,7 @@ i3GEO.php = {
936 par = "funcao=mudanome&tema="+tema+"&valor="+valor+"&g_sid="+i3GEO.configura.sid, 936 par = "funcao=mudanome&tema="+tema+"&valor="+valor+"&g_sid="+i3GEO.configura.sid,
937 retorno = function(retorno){ 937 retorno = function(retorno){
938 i3GEO.janela.fechaAguarde("mudanome"); 938 i3GEO.janela.fechaAguarde("mudanome");
939 - funcao.call(retorno); 939 + funcao.call(funcao,retorno);
940 }; 940 };
941 i3GEO.janela.abreAguarde("mudanome",$trad("o1")); 941 i3GEO.janela.abreAguarde("mudanome",$trad("o1"));
942 cpJSON.call(p,"mudanome",retorno,par); 942 cpJSON.call(p,"mudanome",retorno,par);
@@ -967,7 +967,7 @@ i3GEO.php = { @@ -967,7 +967,7 @@ i3GEO.php = {
967 par = "g_sid="+i3GEO.configura.sid+"&funcao=adicionaTemaSHP&arq="+path, 967 par = "g_sid="+i3GEO.configura.sid+"&funcao=adicionaTemaSHP&arq="+path,
968 retorno = function(retorno){ 968 retorno = function(retorno){
969 i3GEO.janela.fechaAguarde("adicionaTemaSHP"); 969 i3GEO.janela.fechaAguarde("adicionaTemaSHP");
970 - funcao.call(retorno); 970 + funcao.call(funcao,retorno);
971 }; 971 };
972 i3GEO.janela.abreAguarde("adicionaTemaSHP",$trad("o1")); 972 i3GEO.janela.abreAguarde("adicionaTemaSHP",$trad("o1"));
973 cpJSON.call(p,"adicionaTemaSHP",retorno,par); 973 cpJSON.call(p,"adicionaTemaSHP",retorno,par);
@@ -983,7 +983,7 @@ i3GEO.php = { @@ -983,7 +983,7 @@ i3GEO.php = {
983 par = "g_sid="+i3GEO.configura.sid+"&funcao=adicionaTemaIMG&arq="+path, 983 par = "g_sid="+i3GEO.configura.sid+"&funcao=adicionaTemaIMG&arq="+path,
984 retorno = function(retorno){ 984 retorno = function(retorno){
985 i3GEO.janela.fechaAguarde("adicionaTemaIMG"); 985 i3GEO.janela.fechaAguarde("adicionaTemaIMG");
986 - funcao.call(retorno); 986 + funcao.call(funcao,retorno);
987 }; 987 };
988 i3GEO.janela.abreAguarde("adicionaTemaIMG",$trad("o1")); 988 i3GEO.janela.abreAguarde("adicionaTemaIMG",$trad("o1"));
989 cpJSON.call(p,"adicionaTemaIMG",retorno,par); 989 cpJSON.call(p,"adicionaTemaIMG",retorno,par);
@@ -1037,7 +1037,7 @@ i3GEO.php = { @@ -1037,7 +1037,7 @@ i3GEO.php = {
1037 par = "funcao=reiniciaMapa&g_sid="+i3GEO.configura.sid, 1037 par = "funcao=reiniciaMapa&g_sid="+i3GEO.configura.sid,
1038 retorno = function(retorno){ 1038 retorno = function(retorno){
1039 i3GEO.janela.fechaAguarde("reiniciaMapa"); 1039 i3GEO.janela.fechaAguarde("reiniciaMapa");
1040 - funcao.call(retorno); 1040 + funcao.call(funcao,retorno);
1041 }; 1041 };
1042 i3GEO.janela.abreAguarde("reiniciaMapa",$trad("o1")); 1042 i3GEO.janela.abreAguarde("reiniciaMapa",$trad("o1"));
1043 cpJSON.call(p,"reiniciaMapa",retorno,par); 1043 cpJSON.call(p,"reiniciaMapa",retorno,par);
@@ -1053,7 +1053,7 @@ i3GEO.php = { @@ -1053,7 +1053,7 @@ i3GEO.php = {
1053 par = "funcao=procurartemas&map_file=&procurar="+procurar+"&idioma="+i3GEO.idioma.ATUAL, 1053 par = "funcao=procurartemas&map_file=&procurar="+procurar+"&idioma="+i3GEO.idioma.ATUAL,
1054 retorno = function(retorno){ 1054 retorno = function(retorno){
1055 i3GEO.janela.fechaAguarde("procurartemas"); 1055 i3GEO.janela.fechaAguarde("procurartemas");
1056 - funcao.call(retorno); 1056 + funcao.call(funcao,retorno);
1057 }; 1057 };
1058 i3GEO.janela.abreAguarde("procurartemas",$trad("o1")); 1058 i3GEO.janela.abreAguarde("procurartemas",$trad("o1"));
1059 cpJSON.call(p,"procurartemas",retorno,par); 1059 cpJSON.call(p,"procurartemas",retorno,par);
@@ -1072,7 +1072,7 @@ i3GEO.php = { @@ -1072,7 +1072,7 @@ i3GEO.php = {
1072 par = "funcao=procurartemas2&map_file=&procurar="+procurar+"&idioma="+i3GEO.idioma.ATUAL, 1072 par = "funcao=procurartemas2&map_file=&procurar="+procurar+"&idioma="+i3GEO.idioma.ATUAL,
1073 retorno = function(retorno){ 1073 retorno = function(retorno){
1074 i3GEO.janela.fechaAguarde("procurartemas"); 1074 i3GEO.janela.fechaAguarde("procurartemas");
1075 - funcao.call(retorno); 1075 + funcao.call(funcao,retorno);
1076 }; 1076 };
1077 i3GEO.janela.abreAguarde("procurartemas",$trad("o1")); 1077 i3GEO.janela.abreAguarde("procurartemas",$trad("o1"));
1078 cpJSON.call(p,"procurartemas",retorno,par); 1078 cpJSON.call(p,"procurartemas",retorno,par);
@@ -1091,7 +1091,7 @@ i3GEO.php = { @@ -1091,7 +1091,7 @@ i3GEO.php = {
1091 par = "funcao=procurartemasestrela&map_file=&nivel="+nivel+"&fatorestrela="+fatorestrela+"&idioma="+i3GEO.idioma.ATUAL, 1091 par = "funcao=procurartemasestrela&map_file=&nivel="+nivel+"&fatorestrela="+fatorestrela+"&idioma="+i3GEO.idioma.ATUAL,
1092 retorno = function(retorno){ 1092 retorno = function(retorno){
1093 i3GEO.janela.fechaAguarde("procurartemasestrela"); 1093 i3GEO.janela.fechaAguarde("procurartemasestrela");
1094 - funcao.call(retorno); 1094 + funcao.call(funcao,retorno);
1095 }; 1095 };
1096 i3GEO.janela.abreAguarde("procurartemasestrela",$trad("o1")); 1096 i3GEO.janela.abreAguarde("procurartemasestrela",$trad("o1"));
1097 cpJSON.call(p,"foo",retorno,par); 1097 cpJSON.call(p,"foo",retorno,par);
@@ -1112,7 +1112,7 @@ i3GEO.php = { @@ -1112,7 +1112,7 @@ i3GEO.php = {
1112 par = "funcao=adtema&temas="+temas+"&g_sid="+sid, 1112 par = "funcao=adtema&temas="+temas+"&g_sid="+sid,
1113 retorno = function(retorno){ 1113 retorno = function(retorno){
1114 i3GEO.janela.fechaAguarde("adtema"); 1114 i3GEO.janela.fechaAguarde("adtema");
1115 - funcao.call(retorno); 1115 + funcao.call(funcao,retorno);
1116 }; 1116 };
1117 i3GEO.janela.abreAguarde("adtema",$trad("o1")); 1117 i3GEO.janela.abreAguarde("adtema",$trad("o1"));
1118 cpJSON.call(p,"adtema",retorno,par); 1118 cpJSON.call(p,"adtema",retorno,par);
@@ -1139,7 +1139,7 @@ i3GEO.php = { @@ -1139,7 +1139,7 @@ i3GEO.php = {
1139 par = "funcao=googlemaps&g_sid="+i3GEO.configura.sid, 1139 par = "funcao=googlemaps&g_sid="+i3GEO.configura.sid,
1140 retorno = function(retorno){ 1140 retorno = function(retorno){
1141 i3GEO.janela.fechaAguarde("googlemaps"); 1141 i3GEO.janela.fechaAguarde("googlemaps");
1142 - funcao.call(retorno); 1142 + funcao.call(funcao,retorno);
1143 }; 1143 };
1144 i3GEO.janela.abreAguarde("googlemaps",$trad("o1")); 1144 i3GEO.janela.abreAguarde("googlemaps",$trad("o1"));
1145 cpJSON.call(p,"googlemaps",retorno,par); 1145 cpJSON.call(p,"googlemaps",retorno,par);
@@ -1155,7 +1155,7 @@ i3GEO.php = { @@ -1155,7 +1155,7 @@ i3GEO.php = {
1155 par = "funcao=googleearth&g_sid="+i3GEO.configura.sid, 1155 par = "funcao=googleearth&g_sid="+i3GEO.configura.sid,
1156 retorno = function(retorno){ 1156 retorno = function(retorno){
1157 i3GEO.janela.fechaAguarde("googleearth"); 1157 i3GEO.janela.fechaAguarde("googleearth");
1158 - funcao.call(retorno); 1158 + funcao.call(funcao,retorno);
1159 }; 1159 };
1160 i3GEO.janela.abreAguarde("googleearth",$trad("o1")); 1160 i3GEO.janela.abreAguarde("googleearth",$trad("o1"));
1161 cpJSON.call(p,"googleearth",retorno,par); 1161 cpJSON.call(p,"googleearth",retorno,par);
@@ -1171,7 +1171,7 @@ i3GEO.php = { @@ -1171,7 +1171,7 @@ i3GEO.php = {
1171 par = "funcao=openlayers&g_sid="+i3GEO.configura.sid, 1171 par = "funcao=openlayers&g_sid="+i3GEO.configura.sid,
1172 retorno = function(retorno){ 1172 retorno = function(retorno){
1173 i3GEO.janela.fechaAguarde("openlayers"); 1173 i3GEO.janela.fechaAguarde("openlayers");
1174 - funcao.call(retorno); 1174 + funcao.call(funcao,retorno);
1175 }; 1175 };
1176 i3GEO.janela.abreAguarde("openlayers",$trad("o1")); 1176 i3GEO.janela.abreAguarde("openlayers",$trad("o1"));
1177 cpJSON.call(p,"openlayers",retorno,par); 1177 cpJSON.call(p,"openlayers",retorno,par);
@@ -1203,7 +1203,7 @@ i3GEO.php = { @@ -1203,7 +1203,7 @@ i3GEO.php = {
1203 par = "funcao=converte2googlemaps&g_sid="+i3GEO.configura.sid, 1203 par = "funcao=converte2googlemaps&g_sid="+i3GEO.configura.sid,
1204 retorno = function(retorno){ 1204 retorno = function(retorno){
1205 i3GEO.janela.fechaAguarde("converte2googlemaps"); 1205 i3GEO.janela.fechaAguarde("converte2googlemaps");
1206 - funcao.call(retorno); 1206 + funcao.call(funcao,retorno);
1207 }; 1207 };
1208 i3GEO.janela.abreAguarde("converte2googlemaps",$trad("o1")); 1208 i3GEO.janela.abreAguarde("converte2googlemaps",$trad("o1"));
1209 cpJSON.call(p,"converte2googlemaps",retorno,par); 1209 cpJSON.call(p,"converte2googlemaps",retorno,par);
@@ -1219,7 +1219,7 @@ i3GEO.php = { @@ -1219,7 +1219,7 @@ i3GEO.php = {
1219 par = "funcao=converte2openlayers&g_sid="+i3GEO.configura.sid, 1219 par = "funcao=converte2openlayers&g_sid="+i3GEO.configura.sid,
1220 retorno = function(retorno){ 1220 retorno = function(retorno){
1221 i3GEO.janela.fechaAguarde("converte2openlayers"); 1221 i3GEO.janela.fechaAguarde("converte2openlayers");
1222 - funcao.call(retorno); 1222 + funcao.call(funcao,retorno);
1223 }; 1223 };
1224 i3GEO.janela.abreAguarde("converte2openlayers",$trad("o1")); 1224 i3GEO.janela.abreAguarde("converte2openlayers",$trad("o1"));
1225 cpJSON.call(p,"converte2openlayers",retorno,par); 1225 cpJSON.call(p,"converte2openlayers",retorno,par);
@@ -1363,7 +1363,7 @@ i3GEO.php = { @@ -1363,7 +1363,7 @@ i3GEO.php = {
1363 par = "g_sid="+i3GEO.configura.sid+"&funcao=criatemasel&tema="+tema+"&nome=Novo tema "+tema, 1363 par = "g_sid="+i3GEO.configura.sid+"&funcao=criatemasel&tema="+tema+"&nome=Novo tema "+tema,
1364 retorno = function(retorno){ 1364 retorno = function(retorno){
1365 i3GEO.janela.fechaAguarde("criatemaSel"); 1365 i3GEO.janela.fechaAguarde("criatemaSel");
1366 - funcao.call(retorno); 1366 + funcao.call(funcao,retorno);
1367 }; 1367 };
1368 i3GEO.janela.abreAguarde("criatemaSel",$trad("o1")); 1368 i3GEO.janela.abreAguarde("criatemaSel",$trad("o1"));
1369 cpJSON.call(p,"chavegoogle",retorno,par); 1369 cpJSON.call(p,"chavegoogle",retorno,par);