Thanks for your suggestions on JIRA.

So, I tried corrected code below
-----------------------------------------------------------------------------------------------------
        var     info = new OpenLayers.Control.WMSGetFeatureInfo(
                { 
                url: "http://192.168.0.38/geoserver/jkp_naissus/wms";, 
                title: 'Identifikuj', 
                layers: [vodovod, vodomeri], // fekalna, atmosferska, cesme 
                vendorParams: {propertyName:['(SIFRA,NAZIV,ULICA,KUCNI_BROJ)
ULICA,MATERIJAL,DN_MM,IZVOR_INFORMACIJE)']},    
-------------------------------------------------------------------------------------------
and it works, BUT only If both layers are ON.

<http://osgeo-org.1560.x6.nabble.com/file/n5155914/12-8-2014_10-34-13.jpg> 

When one of those two layers are not visible (and my users quite often don't
use both layers on screen), then I got 

*Mismatch between the property name set count 2 and the query layers count 1
*

<http://osgeo-org.1560.x6.nabble.com/file/n5155914/12-8-2014_10-34-44.jpg> 

I understand what this means but I now dont know how to create behaviour
like before - and that was to return only attributes which Ive put into
'propertyName' of choosen layers if they are found within a click.

Its obviously something changed in GeoServer and now I dont know how to do
the right thing.
Please could you instruct me more in detail how to do it, I am not an expert
? 

Thanks for your efforts !

p.s
I have to say that documented syntax was the same last year for GeoServer
2.3.4 and my old code work without a problem. I had a problem with figuring
out how to do it proper syntax for more than one layer so I asked question
here a year ago 
http://osgeo-org.1560.x6.nabble.com/WMS-vendor-quot-propertyName-quot-parameter-syntax-td5044926.html
<http://osgeo-org.1560.x6.nabble.com/WMS-vendor-quot-propertyName-quot-parameter-syntax-td5044926.html>
  



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/WMS-GetFeatureInfo-with-vendorParams-does-not-work-like-before-after-upgrade-to-2-5-x-tp5155715p5155914.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to