[OpenLayers-Users] getfeatureinfo wms qgisserver -OL3

Gabriele N. gis.gn at libero.it
Mon Oct 10 01:27:06 PDT 2016


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.


More information about the Users mailing list