One other thing. When I use the GeoServer map preview I can not see the cal filter code in Firebug. The URL is only to show the current layer and when I click on any markers I only get the markers the apply to the filter, even if there are other markers in the same position that are not in the filter. What is the difference then between the map preview showing all my markers and my map where I also have sent a cal filter call to the layer? So when I click on my map I get all the markers "unfiltered". There is a click function also in the GeoServer map preview. I thought the map preview also uses OpenLayers? Still it behaves like I want it too and my map does not!
~asle benoni 2012/5/31 Asle Benoni <asle.ben...@gmail.com>: > Thanks. I have problems posting to the OL list. Must be some sort of > spam filter blocking me out. > Anyway, I have played with the CQL filter in the GeoServer preview > window. Works fine and filters out what I want. And the same filter > works when I redraw my map layers. But I understand that the wms call > when I click on the map does not use this filter automatically. I am > still learning! So when I do the search I get the correct CQL filter > to use when the map is redrawn. Since this then is stored in a js > variable (param), how do I put this in my function: > > info = new OpenLayers.Control.WMSGetFeatureInfo({..... > > I mean how would I exactly add that in code so the click also sends > the CQL filter (if there is one)? Any example would be nice. Even if I > am on the wrong list with this question :-) > > ~asle benoni > > 2012/5/30 Phil Scadden <p.scad...@gns.cri.nz>: >> I think this should be on the OL list. Use firebug or similar to see >> what is being sent to geoserver. Is it correct? If not, then there is >> issue with your OL code. >> You can hack what is being sent by hand to see that filters are working >> correctly or not in geoserver. If you think there is an error, put the >> POST data here. >> The Geoserver layer preview gives you a nice tool for playing with CQL >> filters (press the icon above the pan control). >> -- >> Phil Scadden, Senior Scientist GNS Science Ltd 764 Cumberland St, >> Private Bag 1930, Dunedin, New Zealand Ph +64 3 4799663, fax +64 3 477 5232 >> >> Notice: This email and any attachments are confidential. If received in >> error please destroy and immediately notify us. Do not copy or disclose the >> contents. >> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Geoserver-users mailing list >> Geoserver-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/geoserver-users ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users