[mapserver-users] HTML Legend with Status Checking...

Mike Smith nospam at cnrit.tamu.edu
Mon Sep 30 15:05:42 PDT 2002


Hello,

    I've seen how you can make legends using PHP Mapscript that check to 
see whether a layer or class is in scale before displaying it in the 
legend, but no mention of how to do this if I'm not using Mapscript.  I 
have sub-classed many of my layers so that symbols show up in different 
sizes depending on how far zoomed in you are.  In other words, I'm using 
"MINSCALE" and "MAXSCALE" in my classes, but all of my classes show up 
in the legend and that's really annoying!  I want ONLY the in-scale 
symbol to show up in the legend as it does in the map...any tips on how 
to do this without Mapscript?  I see the "if" conditional statements in 
the HTML Legend How-to, but there's no status of "SCALE" to check with 
those statements... if I could put an if statement in my legend template 
that checked whether or not a class or layer was in scale, then I'd be 
in business...any way to do this?

Thanks!




More information about the MapServer-users mailing list