Thank you Jukka,
This is the solution I was looking for. Very simple and effective. It worked smoothly. Cheers. JJ. From: Rahkonen Jukka (MML) [mailto:jukka.rahko...@maanmittauslaitos.fi] Sent: Tuesday, November 17, 2015 1:47 AM To: Jair Santos <jsantos5...@gmail.com>; 'GeoServer Mailing List List' <geoserver-users@lists.sourceforge.net> Subject: Re: [Geoserver-users] Links from WMS Hi, We have saved links as well as some other formatting like line breaks into a text field of a database table as html-formatted strings. At least that works with Mapserver but why not with Geoserver as well. You will see a link if you click a red fishing restriction area in http://www.paikkatietoikkuna.fi/web/en/map-window?ver=1.17 <http://www.paikkatietoikkuna.fi/web/en/map-window?ver=1.17&zoomLevel=10&coo rd=413832.469_6948702.876&mapLayers=base_35+100+default,1373+100+default&&sh owMarker=true> &zoomLevel=10&coord=413832.469_6948702.876&mapLayers=base_35+100+default,137 3+100+default&&showMarker=true The link is saved into the database as <a href=http://www.ely-keskus.fi/pohjois-savo target=_blank>www.ely-keskus.fi/pohjois-savo <http://www.ely-keskus.fi/pohjois-savo%3c/a> </a> The referred site is under a DOS attack just now and the link does not show anything but normally it works. -Jukka Rahkonen- Jair Santos wrote: Hello all, I am requesting information from Geoserver in a popup overlay using WMS as source for a <iframe> http://192.168.1.111:8080/geoserver/wms?SERVICE=WMS <http://192.168.1.111:8080/geoserver/wms?SERVICE=WMS&VERSION=1.3.0&REQUEST=G etFeatureInfo&FORMAT=image%2Fpng&TRANSPARENT=true&QUERY_LAYERS=bmid_reserv&L AYERS=bmid_reserv&INFO_FORMAT=text%2Fhtml&I=228&J=206&WIDTH=256&HEIGHT=256&C RS=EPSG%3A3857&STYLES=&BBOX=-13284144.019737352%2C6430800.063688448%2C-13283 838.271624211%2C6431105.811801588> &VERSION=1.3.0&REQUEST=GetFeatureInfo&FORMAT=image%2Fpng&TRANSPARENT=true&QU ERY_LAYERS=bmid_reserv&LAYERS=bmid_reserv&INFO_FORMAT=text%2Fhtml&I=228&J=20 6&WIDTH=256&HEIGHT=256&CRS=EPSG%3A3857&STYLES=&BBOX=-13284144.019737352%2C64 30800.063688448%2C-13283838.271624211%2C6431105.811801588 Parts of the information are links to pdf documents, so the user can download them from the popup. The data is coming from Postgres that do not support links as datatypes and Geoserver sends the information as plain text. Is there a way that geoserver can provide them as links? info_reservoir = wms_bmid_reservoir.getGetFeatureInfoUrl( evt.coordinate, viewResolution, 'EPSG:3857', { 'INFO_FORMAT': 'text/html' }) content.innerHTML = '<iframe seamless src="' + info_reservoir + '"></iframe>'; overlay.setPosition(coordinate); Thanks in advance for any ideas. JJ.
------------------------------------------------------------------------------
_______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users