dynamic layer filter, again

Stephen Davies sdc at SDC.COM.AU
Thu Nov 17 01:36:06 EST 2005


Yes, provided you include the map_ prefix.

That is, use:

...&map_layer1_filter=expr1&map_layer2_filter=expr2....

I am currently changing three filters with each URL and it works just fine -
as does just about everything else in Mapserver; I reckon it's great.

Cheers,
Stephen

On Wed, 16 Nov 2005 14:22:57 -0600, Adam Hill <adam.hill at GMAIL.COM> wrote:

>So my next queston is if I am requesting "LAYERS=layer1,layer2,layer3"
>will "&layer1_filter=expr1&layer2_filter=expr2&layer3_filter=expr3"
>work?
>
>adam...
>
>On 11/16/05, Stephen Davies <sdc at sdc.com.au> wrote:
>> I just today succeeded in getting layer filter changes via URL to work by
>> following the ideas in the CGI Reference. ie
>> ...&map_layername_filter=sql_expression...
>>
>> HTH,
>> Stephen
>>
>> On Tue, 15 Nov 2005 16:52:04 -0300, Mauricio Stange H. <mstangeh at GMAIL.COM>
>> wrote:
>>
>> >Hi, me again,
>> >    please, does somebody know, how to do this. I already have posted
>> >the question.
>> >    Since then I tried with every time recreating a mapfile, (reading
>> >from a map file without the filter and inserting it in the new file),
>> >but I have problems with it, sometimes I select another filter and the
>> >map does't change unless I use a map control.
>> >    I tried with mapscript too: got the map, got the layer, and have set
>> >the filter property, but how update the modified layer into the map???
>> >
>> >Please, if somebody have an idea....
>> >
>> >Thanks,
>> >    Mauricio Stange H.
>>



More information about the mapserver-users mailing list