Turning on and off labels
Stuart Eve
stuarteve at LPARCHAEOLOGY.COM
Wed Jan 25 04:16:49 PST 2006
Thanks Norbert, thats certainly an option (which I hadn't thought of!)
and I may do that - I was just hoping that I would be able to find a way
to do with Mapscript (so I don't have to have such a huge mapfile!)
Stu
> Hi,
>
> I'm not sure if this is what you want but you can make a layer for the
> data and a separate one for the labels then you can turn them on or off.
>
> Regards,
>
> Norbert
Stuart Eve wrote:
> Hi all,
>
> I am trying to use Mapscript to turn off labels 'on-demand'. I have my
> label information set up in my mapfile - but this means that they are
> always drawn. I want to retain that information in the mapfile (rather
> than recreating the whole thing with Mapscript), so was wondering if
> there was a way to tell Mapserver if they should be drawn or not
> (without turning the whole layer off!). I have tried using a 'STATUS
> OFF' within the label tags, but that doesn't work (of course!).
>
> Any ideas?
>
> Stu
>
--
Stuart Eve
L - P : Archaeology
stuarteve at lparchaeology.com
More information about the MapServer-users
mailing list