Commit 4fecfb4e7c6b2d242959a44e75c41e593f255ae7

Authored by Edmar Moretti
1 parent ecc96666

--no commit message

classesjs/classe_interface.js
... ... @@ -548,7 +548,9 @@ i3GEO.Interface =
548 548 /**
549 549 * Propriedade: TILES
550 550 *
551   - * Indica se será utilizado o modo de navegação em tiles
  551 + * Indica se será utilizado o modo de navegação em tiles em todas as camadas do mapa
  552 + *
  553 + * Ao bloquear o modo tile, o cache de imagens não poderá ser realizado
552 554 *
553 555 * Tipo:
554 556 *
... ... @@ -1344,10 +1346,13 @@ i3GEO.Interface =
1344 1346 camada.type === 3 ? opcoes.singleTile = false : opcoes.singleTile =
1345 1347 !(i3GEO.Interface.openlayers.TILES);
1346 1348 }
  1349 + if (camada.tiles === "nao") {
  1350 + opcoes.singleTile = true;
  1351 + }
1347 1352 // se for definido a expansao e corte da imagem,
1348   - //ou cache
  1353 + // ou cache
1349 1354 // e necessario usar tile
1350   - if (camada.cache === "sim" || (camada.cortepixels && camada.cortepixels > 0)) {
  1355 + if (camada.tiles === "sim" || camada.cache === "sim" || (camada.cortepixels && camada.cortepixels > 0)) {
1351 1356 opcoes.singleTile = false;
1352 1357 }
1353 1358 if (opcoes.singleTile === true && i3GEO.Interface.openlayers.googleLike === false) {
... ...
classesphp/classe_mapa.php
... ... @@ -405,7 +405,10 @@ class Mapa
405 405 $wmsurl = ($oLayer->connection);
406 406 }
407 407 }
408   - $tiles = "";
  408 + //
  409 + //indica se a camada sera inserida no mapa como singletile ou nao
  410 + //
  411 + $tiles = strtolower($oLayer->getmetadata("TILES"));
409 412 $plugini3geo = "";
410 413 if($oLayer->getmetadata("PLUGINI3GEO") != ""){
411 414 $plugini3geo = $oLayer->getmetadata("PLUGINI3GEO");
... ...
ms_configura.php
... ... @@ -427,7 +427,7 @@ Tipo:
427 427 */
428 428 //TODO verificar ao fechar versao
429 429 $postgis_mapa = array(
430   - "teste"=>"user=postgres password=postgres dbname=sigeo host=localhost port=5432",
  430 + "teste"=>"user=postgres password=postgres dbname=teste host=localhost port=5432",
431 431 "postgres"=>"user=postgres password=postgres dbname=postgres host=localhost port=5432",
432 432 "i3geosaude"=>"user=postgres password=postgres dbname=i3geosaude host=localhost port=5432 options='-c client_encoding=LATIN1'"
433 433 );
... ...