thank Armin, I have done something "satisfying" but not enough. Can you tell me, is it complicated to set some parameters in mapfile so I can choose exactly which groups, layers and classes to be shown in legend?
The thing that I need right now is to be able to place a layer without showing it in the legend tree (including its name) if possible....if not then I would like the user cannot activate/deactivate the layer (so the checkbox to be disabled) thanks dejan > -----Original Message----- > From: Armin Burger [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 17, 2005 3:26 PM > To: Gambin Dejan > Cc: [EMAIL PROTECTED] > Subject: RE: Legend displaying problem solved > > > yes, it's true that SKIP_LEGEND definitions were only tested > with the flat view. I probably then forgot to implement it > fully also in the tree view. I will see to put it into the > tree view, too. > > Armin > > > --- Urspr?ngliche Nachricht --- > > Von: "Gambin Dejan" <[EMAIL PROTECTED]> > > An: "Armin Burger" <[EMAIL PROTECTED]> > > Kopie: <[EMAIL PROTECTED]> > > Betreff: RE: Legend displaying problem solved > > Datum: Thu, 17 Nov 2005 11:48:42 +0100 > > > > Hi Armin, > > > > I would really like if you could check the SKIP_LEGEND > behaviour. As I > > can see SKIP_LEGEND=2 is evaluated only in function that writes the > > Flat Tree. I would particularily like that I can choose which > > groups/layers/classes to display in legend but I can see it > is pretty > > painful to implement. > > > > As I can see writeTocDTree is being called (not writeTocTree?) And > > this new function has some strange stuff...for example > ltype is being > > evaluated but never used, SKIP LEGEND=2 never evaluated... > > > > regards, dejan > > > > > -----Original Message----- > > > From: Armin Burger [mailto:[EMAIL PROTECTED] > > > Sent: Wednesday, November 16, 2005 6:46 PM > > > To: Gambin Dejan > > > Cc: [EMAIL PROTECTED] > > > Subject: Re: Legend displaying problem solved > > > > > > > > > I will have to check what the definition of SKIP_LEGEND > (1 or 2) was > > > actually meant for. It's some time ago that I implemented but > > > not used > > > it. I guess 1 is if no legend should be displayed at all, > and 2 is in > > > case the legend should just be suppressed for a second layer > > > of a group, > > > or so. > > > > > > All the groups and layers and legend things sometimes are > > > sort of a pain > > > to handle correctly. And an easy source of bugs, with all > possible > > > conceivable possibilities and different expectations what > groups and > > > leyers should be for. > > > > > > Armin > > > > > > Gambin Dejan wrote: > > > > Hi, > > > > > > > > After some investigation, I have realised that p.mapper now uses > > > > writeTocDTree function and I have modified the line: > > > > > > > > if (($legLayer->type < 3 && $skipLegend < 1) || > $numClasses > 1) { > > > > > > > > to > > > > > > > > if (($legLayer->type < 3 && $skipLegend < 1) || > ($numClasses > 1 > > > > && > > > > $skipLegend < 2)) { > > > > > > > > so now if the layer has more than one class but SKIP_LEGEND > > > is 2, then > > > > it doesn't display the legends > > > > > > > > I don't know if this is right change but it works for me for now > > > > > > > > regards, dejan > > > > > > > > > > > > > > > -- > Highspeed-Freiheit. Bei GMX superg?nstig, z.B. GMX > DSL_Cityflat, DSL-Flatrate f?r nur 4,99 Euro/Monat* > http://www.gmx.net/de/go/dsl >
