Sorry for my delayed response, and as always thank you for the reply. I should have been more complete in describing what I'm up to, dynamic legends is too vague. Please forgive me if the following is too detailed:
I'm implementing user created layers in postgres/postgis, allowing the user to create certain combinations of existing layers (intersections), distance envelopes (buffers) around selected classes of selected layers, and even uploading some basic data to create new points/shapes. I've set up two tables for describing layers, a 'layers' table and a 'classes' table that are read after the map file is read. Then through php/mapscript I'm adding the layers to the map created by the map file. All this I'm making progress on, but getting the legend to show the new layers I've added via mapscript is really eluding me. For now, I'm reloading the entire map.phtml page after the user creates a new layer. This works but seems very 'heavy handed' and not very elegant. If there is a better way, I'd love to go that path instead. Please let me know if you have any suggestions or pointers, I've dug through the code base but haven't found a solution to my issue that behaves well... again, as always, many thanks Armin for a great baseline from which to build! -Keith On 12/1/06, Armin Burger <[EMAIL PROTECTED]> wrote: > what do you mean exactly with 'dynamic legends'? > > In the current implementation you have the possibility to combine both TOC > and legend, typically in a foldable tree structure. Then the legend icons are > never updated. Or you swap between TOC and legedn view, then the legend just > shows the icons of the visible layers. > > *Real* dynamic legends with displaying only the icons of visible classes on > the current map extent are something I would like to have but this would > require a base function available via Mapscript. > > armin ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users