Commit 0e959e96630185452a9fd22e7aa415e4d3414176
1 parent
3fde1c76
Exists in
master
and in
7 other branches
#285
Showing
2 changed files
with
52 additions
and
0 deletions
Show diff stats
ferramentas/graficointerativo/index.js.php
| @@ -233,6 +233,16 @@ i3GEOF.graficointerativo = { | @@ -233,6 +233,16 @@ i3GEOF.graficointerativo = { | ||
| 233 | {i3GEOF.graficointerativo.inicia(divid);} | 233 | {i3GEOF.graficointerativo.inicia(divid);} |
| 234 | else | 234 | else |
| 235 | {i3GEOF.graficointerativo.inicia(divid,dados);} | 235 | {i3GEOF.graficointerativo.inicia(divid,dados);} |
| 236 | + temp = function(){ | ||
| 237 | + if(i3GEO.Interface.ATUAL === "padrao"){ | ||
| 238 | + i3GEO.eventos.NAVEGAMAPA.remove("i3GEOF.graficointerativo.obterDados()"); | ||
| 239 | + } | ||
| 240 | + if(i3GEO.Interface.ATUAL === "googlemaps"){ | ||
| 241 | + GEvent.removeListener(graficointerativoDragend); | ||
| 242 | + GEvent.removeListener(graficointerativoZoomend); | ||
| 243 | + } | ||
| 244 | + }; | ||
| 245 | + YAHOO.util.Event.addListener(janela[0].close, "click", temp); | ||
| 236 | }, | 246 | }, |
| 237 | /* | 247 | /* |
| 238 | Function: ativaFoco | 248 | Function: ativaFoco |
ferramentas/tabela/index.js.php
| @@ -206,6 +206,10 @@ i3GEOF.tabela = { | @@ -206,6 +206,10 @@ i3GEOF.tabela = { | ||
| 206 | ins += ' <td>Considerar na listagem a região mostrada no mapa (se essa opção for desmarcada, será considerada a extensão geográfica do mapa inicial)</td>'; | 206 | ins += ' <td>Considerar na listagem a região mostrada no mapa (se essa opção for desmarcada, será considerada a extensão geográfica do mapa inicial)</td>'; |
| 207 | ins += ' </tr>'; | 207 | ins += ' </tr>'; |
| 208 | ins += ' <tr>'; | 208 | ins += ' <tr>'; |
| 209 | + ins += ' <td><input style="cursor:pointer" type=checkbox onclick="i3GEOF.tabela.ativaAutoAtualiza(this)" /></td>'; | ||
| 210 | + ins += ' <td>Atualiza a tabela após navegar no mapa</td>'; | ||
| 211 | + ins += ' </tr>'; | ||
| 212 | + ins += ' <tr>'; | ||
| 209 | ins += ' <td><input style="cursor:pointer" onclick="i3GEOF.tabela.pegaRegistros()" type=checkbox id=i3GEOtabelatipolista /></td>'; | 213 | ins += ' <td><input style="cursor:pointer" onclick="i3GEOF.tabela.pegaRegistros()" type=checkbox id=i3GEOtabelatipolista /></td>'; |
| 210 | ins += ' <td>Mostrar na listagem apenas os selecionados</td>'; | 214 | ins += ' <td>Mostrar na listagem apenas os selecionados</td>'; |
| 211 | ins += ' </tr>'; | 215 | ins += ' </tr>'; |
| @@ -305,6 +309,16 @@ i3GEOF.tabela = { | @@ -305,6 +309,16 @@ i3GEOF.tabela = { | ||
| 305 | $i("i3GEOF.tabela_corpo").style.backgroundColor = "white"; | 309 | $i("i3GEOF.tabela_corpo").style.backgroundColor = "white"; |
| 306 | i3GEOF.tabela.aguarde = $i("i3GEOF.tabela_imagemCabecalho").style; | 310 | i3GEOF.tabela.aguarde = $i("i3GEOF.tabela_imagemCabecalho").style; |
| 307 | i3GEOF.tabela.inicia(divid); | 311 | i3GEOF.tabela.inicia(divid); |
| 312 | + temp = function(){ | ||
| 313 | + if(i3GEO.Interface.ATUAL === "padrao"){ | ||
| 314 | + i3GEO.eventos.NAVEGAMAPA.remove("i3GEOF.tabela.pegaRegistros()"); | ||
| 315 | + } | ||
| 316 | + if(i3GEO.Interface.ATUAL === "googlemaps"){ | ||
| 317 | + GEvent.removeListener(tabelaDragend); | ||
| 318 | + GEvent.removeListener(tabelaZoomend); | ||
| 319 | + } | ||
| 320 | + }; | ||
| 321 | + YAHOO.util.Event.addListener(janela[0].close, "click", temp); | ||
| 308 | }, | 322 | }, |
| 309 | /* | 323 | /* |
| 310 | Function: ativaFoco | 324 | Function: ativaFoco |
| @@ -319,6 +333,34 @@ i3GEOF.tabela = { | @@ -319,6 +333,34 @@ i3GEOF.tabela = { | ||
| 319 | i.zIndex = 10000 + i3GEO.janela.ULTIMOZINDEX; | 333 | i.zIndex = 10000 + i3GEO.janela.ULTIMOZINDEX; |
| 320 | }, | 334 | }, |
| 321 | /* | 335 | /* |
| 336 | + Function: ativaAutoAtualiza | ||
| 337 | + | ||
| 338 | + Ativa ou desativa a atualização automática da tabela quando o usuário navega no mapa | ||
| 339 | + */ | ||
| 340 | + ativaAutoAtualiza:function(obj){ | ||
| 341 | + if(obj.checked == true){ | ||
| 342 | + if(i3GEO.Interface.ATUAL === "padrao"){ | ||
| 343 | + i3GEO.eventos.NAVEGAMAPA.push("i3GEOF.tabela.pegaRegistros()"); | ||
| 344 | + } | ||
| 345 | + if(i3GEO.Interface.ATUAL === "googlemaps"){ | ||
| 346 | + tabelaDragend = GEvent.addListener(i3GeoMap, "dragend", function() {i3GEOF.tabela.pegaRegistros();}); | ||
| 347 | + tabelaZoomend = GEvent.addListener(i3GeoMap, "zoomend", function() {i3GEOF.tebela.pegaRegistros();}); | ||
| 348 | + } | ||
| 349 | + if(i3GEO.Interface.ATUAL === "openlayers"){ | ||
| 350 | + i3geoOL.events.register("moveend",i3geoOL,function(e){i3GEOF.tabela.pegaRegistros();}); | ||
| 351 | + } | ||
| 352 | + } | ||
| 353 | + else{ | ||
| 354 | + if(i3GEO.Interface.ATUAL === "padrao"){ | ||
| 355 | + i3GEO.eventos.NAVEGAMAPA.remove("i3GEOF.tabela.pegaRegistros()"); | ||
| 356 | + } | ||
| 357 | + if(i3GEO.Interface.ATUAL === "googlemaps"){ | ||
| 358 | + GEvent.removeListener(tabelaDragend); | ||
| 359 | + GEvent.removeListener(tabelaZoomend); | ||
| 360 | + } | ||
| 361 | + } | ||
| 362 | + }, | ||
| 363 | + /* | ||
| 322 | Function: pegaRegistros | 364 | Function: pegaRegistros |
| 323 | 365 | ||
| 324 | Pega os registros da tabela de atributos do tema | 366 | Pega os registros da tabela de atributos do tema |