diff --git a/admin/admin.db b/admin/admin.db index 077b5ed..e0d79e8 100644 Binary files a/admin/admin.db and b/admin/admin.db differ diff --git a/mashups/openlayers.js b/mashups/openlayers.js index 271222c..5da8a46 100755 --- a/mashups/openlayers.js +++ b/mashups/openlayers.js @@ -179,15 +179,17 @@ i3GEO.editorOL = { } if(i3GEO.editorOL.fundo != ""){ for(i=nfundo-1;i>=0;i--){ - try{ - eval("i3GEO.editorOL."+fundo[i]+".transitionEffect = 'resize';"); - eval("i3GEO.editorOL."+fundo[i]+".setVisibility(false);"); - eval("i3GEO.editorOL."+fundo[i]+".singleTile = single;"); - eval("alayers.push(i3GEO.editorOL."+fundo[i]+");"); - } - catch(e){ - if(alayers[0]) - {alayers[0].setVisibility(true);} + if(fundo[i] != ""){ + try{ + eval("i3GEO.editorOL."+fundo[i]+".transitionEffect = 'resize';"); + eval("i3GEO.editorOL."+fundo[i]+".setVisibility(false);"); + eval("i3GEO.editorOL."+fundo[i]+".singleTile = single;"); + eval("alayers.push(i3GEO.editorOL."+fundo[i]+");"); + } + catch(e){ + if(alayers[0]) + {alayers[0].setVisibility(true);} + } } } } diff --git a/mashups/openlayers.php b/mashups/openlayers.php index a6c2b15..1ed163e 100644 --- a/mashups/openlayers.php +++ b/mashups/openlayers.php @@ -115,13 +115,13 @@ if(isset($temas)){ if($temas != "") { $temas = str_replace(" ",",",$temas); - $temas = strtolower($temas); + //$temas = strtolower($temas); $temas = explode(",",$temas); if(!isset($visiveis)) {$visiveis = $temas;} else{ $visiveis = str_replace(" ",",",$visiveis); - $visiveis = strtolower($visiveis); + //$visiveis = strtolower($visiveis); $visiveis = explode(",",$visiveis); } $objOpenLayers = array(); @@ -207,6 +207,7 @@ Parâmetros: fundo - lista com os nomes, separados por ',' dos layers que serão usados como fundo para o mapa. Se não for definido, será usado o default. O primeiro da lista será o fundo ativo. Se na lista de temas de fundo estiver algum tema incluido com o parametro 'temas', esses serão incluídos como temas de fundo. + Quando for vazio, o ultimo layer sera considerado como o layer de fundo Os seguintes fundos podem usados nessa lista: e_oce - ESRI Ocean Basemap @@ -389,6 +390,11 @@ else } ?> i3GEO.editorOL.mapa = new OpenLayers.Map('i3geoMapa',{controls:[]}); + + i3GEO.editorOL.inicia(); -- libgit2 0.21.2