getfeatureinfo wms qgisserver -OL3

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

getfeatureinfo wms qgisserver -OL3

Gabriele N.
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:

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 ?