[Chameleon] Layers not turned 'on' when coming into scale based view

Ken Sanderson ken at rockies.ca
Thu Sep 23 10:52:33 EDT 2004


Thanks Paul, I thought it might be something like that.

Ken

-----Original Message-----
From: Paul Spencer [mailto:pagameba at magma.ca] 
Sent: September 23, 2004 7:25 AM
To: Ken Sanderson
Cc: chameleon at lists.maptools.org
Subject: Re: [Chameleon] Layers not turned 'on' when coming into scale
based view


Ken,

I suspect this is a problem because of how the legend template controls 
layer visibility.  It is currently not possible to determine why a layer

is off (i.e. it should be on but isn't drawn due to scale restrictions) 
and the legend template widget is not very intelligent in this respect 
so it just turns the layer off.  There is a bugzilla request in 
MapServer to affect a change that will allow for this kind of processing

... http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=539

As noted in the bug, a related bug 
(http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=648) implemented some

additional keywords in the legend template processor that would allow 
for testing visibility ... this is only in the dev version (4.3) though.

  Using this, it should be possible to create an appropriately hidden 
input with the correct status for layers that are not visible but are 
still considered 'on' ... but I haven't tried this myself ... perhaps 
Bart could comment?

Cheers,

Paul



Ken Sanderson wrote:
> Hello all. Not sure if this is a mapserver question or a chameleon 
> question, but thought I would ask here first.
> 
> I have a layer that has a maxscale that is smaller then the initial 
> extent. Its status is set to 'on'. It shows up in the legend at the 
> appropriate scale when I zoom in, but its status is always 'off' when 
> it appears. Is there a way to have it retain its status of 'on' so 
> that when you zoom in it will automatically display that layer not 
> just make it available?
> 
> Thanks,
> 
> Ken
> 
> 
> 
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org 
> http://lists.maptools.org/mailman/listinfo/chameleon
> 

-- 
  -----------------------------------------------------------------
|Paul Spencer                           pspencer at dmsolutions.ca   |
|-----------------------------------------------------------------|
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
  -----------------------------------------------------------------





More information about the Chameleon mailing list