From a2b002e63acb06e5e9ffc3399bb5220713f4ddfb Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Mon, 5 Sep 2011 21:10:36 +0000 Subject: [PATCH] --- classesphp/classe_atributos.php | 3 --- mashups/openlayers.js.php | 13 +++++++++++-- temas/biomashp.map | 4 +++- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/classesphp/classe_atributos.php b/classesphp/classe_atributos.php index 0dd662c..30c34a9 100644 --- a/classesphp/classe_atributos.php +++ b/classesphp/classe_atributos.php @@ -1198,9 +1198,6 @@ $listaDeTemas - (opcional) Lista com os códigos dos temas que serão identificado $res2 = $layer->getWMSFeatureInfoURL($ptimg->x, $ptimg->y, 1,"MIME"); $res2 = str_replace("INFOFORMAT","INFO_FORMAT",$res2); - //echo $ptimg->x;exit; - - $resposta = file($res); $n = array(); if(strtoupper($formatoinfo) == "TEXT/HTML") diff --git a/mashups/openlayers.js.php b/mashups/openlayers.js.php index c717b49..542eb02 100644 --- a/mashups/openlayers.js.php +++ b/mashups/openlayers.js.php @@ -687,15 +687,24 @@ i3GEO.editorOL = { eventListeners: { getfeatureinfo: function(event) { var lonlat = i3GEO.editorOL.mapa.getLonLatFromPixel(event.xy), - lonlattexto = "
"; + lonlattexto = "
", + formata; if( botoes.linha === true || botoes.ponto === true || botoes.poligono === true || botoes.edita === true){ lonlattexto += "
captura
"; } + formata = function(texto){ + var textoN = texto.split(":"); + if(textoN.length > 0){ + textoN[0] = ""; + texto = textoN.join(""); + } + return texto; + }; i3GEO.editorOL.mapa.addPopup(new OpenLayers.Popup.FramedCloud( "chicken", i3GEO.editorOL.mapa.getLonLatFromPixel(event.xy), null, - lonlattexto+"
"+event.text+"
", + lonlattexto+"
"+formata(event.text)+"
", null, true )); diff --git a/temas/biomashp.map b/temas/biomashp.map index d168bc8..f391074 100644 --- a/temas/biomashp.map +++ b/temas/biomashp.map @@ -34,7 +34,9 @@ MAP END NAME "biomashp" STATUS OFF - TEMPLATE "none.htm" + TEMPLATE "teste.htm" + HEADER "teste.htm" + FOOTER "teste.htm" OPACITY 50 TYPE POLYGON UNITS METERS -- libgit2 0.21.2