[ka-Map-users] grouping layers

Samuel Hiatt samhiatt at gmail.com
Thu Oct 11 17:18:16 EDT 2007


I think those shortcuts are one of the only ways we keep on going.  As long
as they work, right?

I am still interested in implementing these grouped layers with expandable
menus, etc... I've been thinking about it and I agree that inventing a new
METADATA tag is the way to go.  Specifically, the tag would specify where
the child layer falls into the tree in a format something like:
"Great-grandparent::Grandparent::Parent".  For example the metadata tag
could look like:
METADATA
  "child_of" "Government_Land::National_Parks::National_Forests"
END
which would imply that the layer with this metadata tag would be grouped
under Government Land -> National Parks -> National Forests.

I still need to read through the kaLegend.js code to see how this might be
implemented.

In my opinion this functionality would be a great improvement to ka-map.

Sam


On 10/11/07, Daniel.Huber at ch2m.com <Daniel.Huber at ch2m.com> wrote:
>
> > -----Original Message-----
> > From: ka-map-users-bounces at lists.maptools.org
> > [mailto:ka-map-users-bounces at lists.maptools.org] On Behalf Of
> > Anna Kostikova
> > Sent: Tuesday, October 09, 2007 10:45 AM
> > To: ka-Map-users at lists.maptools.org
> > Subject: [ka-Map-users] grouping layers
> >
> > Hi all!
> >
> > is there any way to do grouping on multilevels?
> > let's say for example I have category "Nature" and another
> > category "Industry".
> > There are three layers that go into Nature category and two
> > go into Indusry, and what I need is to turn off or on
> > simultaneously either first category or second, but also turn
> > off\on each layes separetly, and visualize them as a tree of layers.
> > Is there any way to do this ?
> >
> > Anna
> >
>
> I needed a similar capability for a demo site I developed -- where
> different layers were grouped under certain headings.  The way I
> accomplished this was pretty painful, as it required that I modify the
> code in "kaLegend.js" to read the hardcoded name for each layer and
> place it in the appropriate grouping.  Definitely not the way to go.
>
> You can see an example at:  http://www.mapriders.com/mapserver/
>
> If I had to do it all over again, I would have established a new
> METADATA tag as Paul S. mentioned that would allow for nesting of the
> layers like you described.  As it was, I was in a hurry and took a
> shortcut.
>
>
> Hope this helps,
>
>
> Daniel Huber
>
>
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ka-map-users/attachments/20071011/82624337/attachment.html


More information about the ka-Map-users mailing list