Discussion:
getfeatureinfo wms qgisserver -OL3
(too old to reply)
Gabriele N.
2016-10-10 08:27:06 UTC
Permalink
Hi all,
I have the following code
/
var wmsSource = new ol.source.TileWMS({
url: 'servername',
params: {'LAYERS': 'eventi'},
serverType: 'qgis',
crossOrigin: 'anonymous'
});

var url = wmsSource.getGetFeatureInfoUrl(
evt.coordinate, viewResolution, 'EPSG:3857',
{'INFO_FORMAT': 'text/plain',
'propertyName': 'formal_en'});

My WMS server accepts as INFO_FORMAT only:
text/plain
text/html
text/xml/

And then before to print out response on my iframe I need to parse output
response in order
to understand if the point has details or not in my database.

I'm trying to use AJAX but the server do not support CORS.
Do you have any suggestions about issue resolution ?



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/getfeatureinfo-wms-qgisserver-OL3-tp5289991.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
Continue reading on narkive:
Loading...