Non-existant Legend Functionality?

Abe Gillespie abe.gillespie at GMAIL.COM
Thu Sep 1 17:29:48 EDT 2005


Yep, should be simple enough to keep a tab on the visible layers as they're 
drawn. Well, I'll just stick to querying each layer by hand for now. Where 
can I go to add a feature request?

Do we also want to put this into the MapScript API where each class can have 
something like:

$class->hasDataInCurrentMapExtents; // Or something more concise. :)

And layers have the equivalent where it's false if each of it's classes are 
false for the above attribute.

Thanks.
-Abe

On 9/1/05, Stephen Woodbridge <woodbri at swoodbridge.com> wrote:
> 
> Abe,
> 
> I think this would be a very valuable extension and it would not be that
> hard to implement. All that you would need is a bit array that is zeroed
> before a draw request where each bit represents a unique layer-class,
> then as objects are drawn you would OR 1 into the bit array for the
> layer-class index if/when an object is drawn. Then you would need to be
> able to query the bit array for a given layer-class index to see if it
> was drawn.
> 
> -Steve W.
> 
> Abe Gillespie wrote:
> > I build my legends by hand with PHP code because the native
> > functionality just isn't good enough for what I need. Unfortunately I
> > still can't get it perfect because of what I think is missing MapServer
> > functionality. Currently my legends are just too big for printing. Is
> > there a way to tell whether a certain class is visible w/i the current
> > view? Now I don't mean whether the class is within it's scale limits
> > (MIN or MAXSCALE). Rather can one tell if a layer / class has any data
> > w/i the current view. For instance, I may have a fire hydrant layer w/o
> > any scale dependencies. But I might be zoomed into a field way out in
> > the country side. So, yeah, technically the layer can be seen at that
> > scale, but no fire hydrants are actually in the view.
> >
> > If this doesn't exist, shall I issue a feature request?
> >
> > Thanks.
> > -Abe
> 
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20050901/263edadc/attachment.html


More information about the mapserver-users mailing list