[Mapserver-users] unable to affect HTML legend via URL arguments to map file elements

Daniel Morissette dmorissette at dmsolutions.ca
Tue Jun 22 09:13:29 EDT 2004


Emilio Mayorga wrote:
> 
> I'm trying to impact the output of an HTML legend by using URL CGI 
> arguments. For example, if in my map file there is a layer with these 
> elements:
> NAME  "countries"
> GROUP "political"
> I want to change the group to "admin" on the fly using this URL CGI 
> snippet:
> &mode=legend&map_countries_group=admin
> 
> However, the HTML legend seems to be completely unresponsive to changes 
> passed via the map_<layer name>_<layer subelement> syntax (I've tried 
> various changes). Is that so, or am I doing something wrong?
> 

I had a quick look at the code and I see no reason why the HTML legend 
would react differently to those layer changes than the other modes. Are 
you able to change the group value when using browse mode? Which version 
of MapServer are you using? Maybe that's a bug from an older version?

-- 
------------------------------------------------------------
  Daniel Morissette               dmorissette at dmsolutions.ca
  DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------




More information about the mapserver-users mailing list