[Chameleon] Scale dependent layers in LegendTemplate
Dejan Gambin
dejan.gambin at pula.hr
Thu Mar 16 17:15:44 EST 2006
Hi Julien,
Since I was not successful in showing the scale dependent layers in my HTML
legend (setting opt_flag to 14), I supposed the problem was related to
Paul's notes I mentioned last time. But I forgot I was using JSAPI mode so
after zooming in to a scale that should turn off one layer and turn on the
other, the map was shown properly but the legend wasn't. I have realised
that zooming in didn't submit the form so the legend could not be updated.
Now my legend is properly "updated" but only when manually updating the page
through the UpdateMap widget. I suppose there is no way to do it
"automatically"? Or maybe I am concluding something wrong again?
Thanks
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