Commit a2b002e63acb06e5e9ffc3399bb5220713f4ddfb
1 parent
cb56cedc
Exists in
master
and in
7 other branches
--no commit message
Showing
3 changed files
with
14 additions
and
6 deletions
Show diff stats
classesphp/classe_atributos.php
| ... | ... | @@ -1198,9 +1198,6 @@ $listaDeTemas - (opcional) Lista com os códigos dos temas que serão identificado |
| 1198 | 1198 | $res2 = $layer->getWMSFeatureInfoURL($ptimg->x, $ptimg->y, 1,"MIME"); |
| 1199 | 1199 | $res2 = str_replace("INFOFORMAT","INFO_FORMAT",$res2); |
| 1200 | 1200 | |
| 1201 | - //echo $ptimg->x;exit; | |
| 1202 | - | |
| 1203 | - | |
| 1204 | 1201 | $resposta = file($res); |
| 1205 | 1202 | $n = array(); |
| 1206 | 1203 | if(strtoupper($formatoinfo) == "TEXT/HTML") | ... | ... |
mashups/openlayers.js.php
| ... | ... | @@ -687,15 +687,24 @@ i3GEO.editorOL = { |
| 687 | 687 | eventListeners: { |
| 688 | 688 | getfeatureinfo: function(event) { |
| 689 | 689 | var lonlat = i3GEO.editorOL.mapa.getLonLatFromPixel(event.xy), |
| 690 | - lonlattexto = "<hr>"; | |
| 690 | + lonlattexto = "<hr>", | |
| 691 | + formata; | |
| 691 | 692 | if( botoes.linha === true || botoes.ponto === true || botoes.poligono === true || botoes.edita === true){ |
| 692 | 693 | lonlattexto += "<pre><span style=color:blue;cursor:pointer onclick='i3GEO.editorOL.captura(\""+lonlat.lon+","+lonlat.lat+"\")'>captura</span></pre>"; |
| 693 | 694 | } |
| 695 | + formata = function(texto){ | |
| 696 | + var textoN = texto.split(":"); | |
| 697 | + if(textoN.length > 0){ | |
| 698 | + textoN[0] = ""; | |
| 699 | + texto = textoN.join(""); | |
| 700 | + } | |
| 701 | + return texto; | |
| 702 | + }; | |
| 694 | 703 | i3GEO.editorOL.mapa.addPopup(new OpenLayers.Popup.FramedCloud( |
| 695 | 704 | "chicken", |
| 696 | 705 | i3GEO.editorOL.mapa.getLonLatFromPixel(event.xy), |
| 697 | 706 | null, |
| 698 | - lonlattexto+"<pre>"+event.text+"</pre>", | |
| 707 | + lonlattexto+"<pre>"+formata(event.text)+"</pre>", | |
| 699 | 708 | null, |
| 700 | 709 | true |
| 701 | 710 | )); | ... | ... |