From 87bd33412ee9f1aa032cbd1a4a14d444b6c95602 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Thu, 30 Jun 2011 19:26:18 +0000 Subject: [PATCH] --- classesphp/classe_legenda.php | 2 ++ ferramentas/legenda/index.js.php | 6 +++--- interface/openlayers.htm | 8 +++++++- symbols/simboloslin.sym | 1 + 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/classesphp/classe_legenda.php b/classesphp/classe_legenda.php index 2610961..5fa6521 100644 --- a/classesphp/classe_legenda.php +++ b/classesphp/classe_legenda.php @@ -482,6 +482,7 @@ String no formato HTML com as imagens dos símbolos {$dir = $dir_tmp;} else {$dir = $dir_tmp."/".$imgdir;} + if (!file_exists($dir."/simbolos".$tipo.".inc")) { $f = fopen($dir."/simbolos".$tipo.".inc","w"); @@ -568,6 +569,7 @@ function: aplicaParametro Aplica um parâmetro em um estilo de uma classe. parameters: + $classe - Índice da classe. $estilo - Índice do estilo que será alterado. diff --git a/ferramentas/legenda/index.js.php b/ferramentas/legenda/index.js.php index 9f26790..b17c71d 100644 --- a/ferramentas/legenda/index.js.php +++ b/ferramentas/legenda/index.js.php @@ -1123,9 +1123,9 @@ i3GEOF.legenda = { {valido = "sim";} } if(valido === "nao"){ - alert("Nome do simbolo nao encontrado"); - i3GEOF.legenda.aguarde.visibility = "hidden"; - return; + //alert("Nome do simbolo nao encontrado"); + //i3GEOF.legenda.aguarde.visibility = "hidden"; + //return; } p = i3GEO.configura.locaplic+"/classesphp/mapa_controle.php?g_sid="+i3GEO.configura.sid+"&funcao=editasimbolo&opcao=aplica&tema="+i3GEOF.legenda.tema+"&classe="+i3GEOF.legenda.classe+"&estilo="+i3GEOF.legenda.estilo+"&outlinecolor="+outlinecolor+"&backgroundcolor="+backgroundcolor+"&color="+color+"&symbolname="+symbolname+"&size="+size+"&opacidade="+opacidade; cp = new cpaint(); diff --git a/interface/openlayers.htm b/interface/openlayers.htm index 6c779f5..8a2be1a 100644 --- a/interface/openlayers.htm +++ b/interface/openlayers.htm @@ -251,6 +251,12 @@ OpenLayers.ImgPath = "../pacotes/openlayers/img/"; //adiciona camadas que podem ser ativadas como fundo do mapa // (function(){ + var oce = new OpenLayers.Layer.ArcGIS93Rest( + "ESRI Ocean Basemap", + "http://server.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer/export", + {format:"jpg"}, + {isBaseLayer:true,visibility:false} + ); var ims = new OpenLayers.Layer.ArcGIS93Rest( "ESRI Imagery World 2D", "http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer/export", @@ -276,7 +282,7 @@ OpenLayers.ImgPath = "../pacotes/openlayers/img/"; {isBaseLayer:true,visibility:false} ); - i3GEO.Interface.openlayers.LAYERSADICIONAIS = [ims,wsm,bra,osm]; + i3GEO.Interface.openlayers.LAYERSADICIONAIS = [oce,ims,wsm,bra,osm]; })(); // //substitui a janela de alerta normal do navegador por uma janela estilizada. Pode ser comentado sem problemas. No Safari apresentou problemas. diff --git a/symbols/simboloslin.sym b/symbols/simboloslin.sym index 67a1d04..28311bf 100644 --- a/symbols/simboloslin.sym +++ b/symbols/simboloslin.sym @@ -1,3 +1,4 @@ +SYMBOLSET Symbol Name 'ferrovia-line1' Type ELLIPSE -- libgit2 0.21.2