[Cartoweb-users] Creating a filter plugin

Dirk Jesko ml.dje at geocontent.de
Wed Apr 25 05:09:54 EDT 2007


Hello Oliver,

resetting query results works. Thanks for the hint.
One last issue. I made the filter plugin Sessionable in order to store 
the information. Unfortunately, the information is still lost after 
logging out and logging in again. I already looked at the LayerReorder 
and Outline plugins, which are reset to their previous state after 
logging in again. But I can not find out, why my plugins data is reset. 
Is there any other interface that needs to be implemented to achieve this?

Regards,
Dirk


> the easiest way to clear the existing queries is to set via 
> filterPostRequest or filterGetRequest a query_clear parameter to 
> trigger the query plugin own clear action (which seems to simply clear 
> the session object of the plugin btw)
>
> otherwise you need to extend the query plugin to add some kind of 
> accessor function to change the values of the queryState object, 
> though i havent tried that myself before
>
> mapoverlay only offer some kind of easy tool to change some common 
> values or elements. So user dont have to bother with mapscript. Thats 
> why not everything was implemented.
> But you can do all you need with mapscript, it simply need a bit more 
> code
>
> regards
> Oliver
>
>


More information about the Cartoweb-users mailing list