I think those shortcuts are one of the only ways we keep on going. As long as they work, right?<br><br>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:
<br>METADATA<br> "child_of" "Government_Land::National_Parks::National_Forests"<br>END<br>which would imply that the layer with this metadata tag would be grouped under Government Land -> National Parks -> National Forests.
<br><br>I still need to read through the kaLegend.js code to see how this might be implemented. <br><br>In my opinion this functionality would be a great improvement to ka-map. <br><br>Sam<br><br><br><div><span class="gmail_quote">
On 10/11/07, <b class="gmail_sendername"><a href="mailto:Daniel.Huber@ch2m.com">Daniel.Huber@ch2m.com</a></b> <<a href="mailto:Daniel.Huber@ch2m.com">Daniel.Huber@ch2m.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> -----Original Message-----<br>> From: <a href="mailto:ka-map-users-bounces@lists.maptools.org">ka-map-users-bounces@lists.maptools.org</a><br>> [mailto:<a href="mailto:ka-map-users-bounces@lists.maptools.org">ka-map-users-bounces@lists.maptools.org
</a>] On Behalf Of<br>> Anna Kostikova<br>> Sent: Tuesday, October 09, 2007 10:45 AM<br>> To: <a href="mailto:ka-Map-users@lists.maptools.org">ka-Map-users@lists.maptools.org</a><br>> Subject: [ka-Map-users] grouping layers
<br>><br>> Hi all!<br>><br>> is there any way to do grouping on multilevels?<br>> let's say for example I have category "Nature" and another<br>> category "Industry".<br>> There are three layers that go into Nature category and two
<br>> go into Indusry, and what I need is to turn off or on<br>> simultaneously either first category or second, but also turn<br>> off\on each layes separetly, and visualize them as a tree of layers.<br>> Is there any way to do this ?
<br>><br>> Anna<br>><br><br>I needed a similar capability for a demo site I developed -- where<br>different layers were grouped under certain headings. The way I<br>accomplished this was pretty painful, as it required that I modify the
<br>code in "kaLegend.js" to read the hardcoded name for each layer and<br>place it in the appropriate grouping. Definitely not the way to go.<br><br>You can see an example at: <a href="http://www.mapriders.com/mapserver/">
http://www.mapriders.com/mapserver/</a><br><br>If I had to do it all over again, I would have established a new<br>METADATA tag as Paul S. mentioned that would allow for nesting of the<br>layers like you described. As it was, I was in a hurry and took a
<br>shortcut.<br><br><br>Hope this helps,<br><br><br>Daniel Huber<br><br><br>_______________________________________________<br>ka-Map-users mailing list<br><a href="mailto:ka-Map-users@lists.maptools.org">ka-Map-users@lists.maptools.org
</a><br><a href="http://lists.maptools.org/mailman/listinfo/ka-map-users">http://lists.maptools.org/mailman/listinfo/ka-map-users</a><br></blockquote></div><br>