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,9 +1198,6 @@ $listaDeTemas - (opcional) Lista com os códigos dos temas que serão identificado | ||
| 1198 | $res2 = $layer->getWMSFeatureInfoURL($ptimg->x, $ptimg->y, 1,"MIME"); | 1198 | $res2 = $layer->getWMSFeatureInfoURL($ptimg->x, $ptimg->y, 1,"MIME"); |
| 1199 | $res2 = str_replace("INFOFORMAT","INFO_FORMAT",$res2); | 1199 | $res2 = str_replace("INFOFORMAT","INFO_FORMAT",$res2); |
| 1200 | 1200 | ||
| 1201 | - //echo $ptimg->x;exit; | ||
| 1202 | - | ||
| 1203 | - | ||
| 1204 | $resposta = file($res); | 1201 | $resposta = file($res); |
| 1205 | $n = array(); | 1202 | $n = array(); |
| 1206 | if(strtoupper($formatoinfo) == "TEXT/HTML") | 1203 | if(strtoupper($formatoinfo) == "TEXT/HTML") |
mashups/openlayers.js.php
| @@ -687,15 +687,24 @@ i3GEO.editorOL = { | @@ -687,15 +687,24 @@ i3GEO.editorOL = { | ||
| 687 | eventListeners: { | 687 | eventListeners: { |
| 688 | getfeatureinfo: function(event) { | 688 | getfeatureinfo: function(event) { |
| 689 | var lonlat = i3GEO.editorOL.mapa.getLonLatFromPixel(event.xy), | 689 | var lonlat = i3GEO.editorOL.mapa.getLonLatFromPixel(event.xy), |
| 690 | - lonlattexto = "<hr>"; | 690 | + lonlattexto = "<hr>", |
| 691 | + formata; | ||
| 691 | if( botoes.linha === true || botoes.ponto === true || botoes.poligono === true || botoes.edita === true){ | 692 | if( botoes.linha === true || botoes.ponto === true || botoes.poligono === true || botoes.edita === true){ |
| 692 | lonlattexto += "<pre><span style=color:blue;cursor:pointer onclick='i3GEO.editorOL.captura(\""+lonlat.lon+","+lonlat.lat+"\")'>captura</span></pre>"; | 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 | i3GEO.editorOL.mapa.addPopup(new OpenLayers.Popup.FramedCloud( | 703 | i3GEO.editorOL.mapa.addPopup(new OpenLayers.Popup.FramedCloud( |
| 695 | "chicken", | 704 | "chicken", |
| 696 | i3GEO.editorOL.mapa.getLonLatFromPixel(event.xy), | 705 | i3GEO.editorOL.mapa.getLonLatFromPixel(event.xy), |
| 697 | null, | 706 | null, |
| 698 | - lonlattexto+"<pre>"+event.text+"</pre>", | 707 | + lonlattexto+"<pre>"+formata(event.text)+"</pre>", |
| 699 | null, | 708 | null, |
| 700 | true | 709 | true |
| 701 | )); | 710 | )); |
temas/biomashp.map
| @@ -34,7 +34,9 @@ MAP | @@ -34,7 +34,9 @@ MAP | ||
| 34 | END | 34 | END |
| 35 | NAME "biomashp" | 35 | NAME "biomashp" |
| 36 | STATUS OFF | 36 | STATUS OFF |
| 37 | - TEMPLATE "none.htm" | 37 | + TEMPLATE "teste.htm" |
| 38 | + HEADER "teste.htm" | ||
| 39 | + FOOTER "teste.htm" | ||
| 38 | OPACITY 50 | 40 | OPACITY 50 |
| 39 | TYPE POLYGON | 41 | TYPE POLYGON |
| 40 | UNITS METERS | 42 | UNITS METERS |