[Chameleon] Scale dependent layers in LegendTemplate

Dejan Gambin dejan.gambin at pula.hr
Thu Mar 9 02:14:32 EST 2006


Hi,

Unfortunatelly this is not "enough" I think. I found Paul's notes on this
issue that says:

"There can be a problem with scale-dependent-layers ... essentially, 
Chameleon keeps track of which layers are currently 'visible' through 
the legend template mechanism in mapserver.  Layers that are 
out-of-scale are considered off and so the associated checkbox is not 
checked.  When the checkbox is off, Chameleon explicitly sets the layer 
status to off ... so when it does come into scale, the layer doesn't 
come on as it should"

...so something needs to be changed in Chameleon...

dejan

> -----Original Message-----
> From: Julien-Samuel Lacroix [mailto:jlacroix at mapgears.com]
> Sent: Wednesday, March 08, 2006 3:30 PM
> To: Gambin Dejan
> Cc: chameleon at lists.maptools.org
> Subject: Re: [Chameleon] Scale dependent layers in LegendTemplate
> 
> 
> Hi,
> You can control this with the opt_flag parameter in the HTML Legend
> template file. See: 
> http://mapserver.gis.umn.edu/docs/howto/html_legend/#layer-block
> 
> Julien
> 
> Gambin Dejan wrote:
> > Hi,
> > 
> > I have two layers that are part of the same group but are drawn
> > regarding MAXSCALE/MINSCALE parameter in the map file. How can I 
> > show/hide them accordingly in the HTML LegendTemplate? I have seen 
> > reopened bug#179 that seems to address this issue. Is it 
> possible to
> > solve this problem? I am willing to do it so any suggestion
> would be
> > appreciated.
> > 
> > thanks vrey much
> > 
> > regards, dejan
> > 
> > _______________________________________________
> > Chameleon mailing list
> > Chameleon at lists.maptools.org
> > http://lists.maptools.org/mailman/listinfo/chameleon
> 
> --
> Julien-Samuel Lacroix
> Mapgears
> http://www.mapgears.com/
> 



More information about the Chameleon mailing list