Non-existant Legend Functionality?
woodbri at SWOODBRIDGE.COM
Thu Sep 1 17:35:57 EDT 2005
I would just copy and paste the relevant parts of this thread into a new
bug and select it as a feature request.
Abe Gillespie wrote:
> 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.
> On 9/1/05, *Stephen Woodbridge* <woodbri at swoodbridge.com
> <mailto:woodbri at swoodbridge.com>> wrote:
> 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
> > 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
> > view? Now I don't mean whether the class is within it's scale
> > (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
> > scale, but no fire hydrants are actually in the view.
> > If this doesn't exist, shall I issue a feature request?
> > Thanks.
> > -Abe
More information about the mapserver-users