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 > > > > >
