[mapguide-users] Expand legend for themed layer

Alain Lebatard alain.lebatard at autodesk.com
Mon Nov 27 13:57:55 EST 2006


Tom,

This behavior is not configurable. But if you're sure you never want to
see it and you're willing to modify one line of JS code, open the file
legend.js, locate the function ScaleRangeItem() and modify the following
line:

  this.showlongtheme = false;

Set the value to 'true'. I believe that's all it takes. 

The reason why long themes appear by default in shortened form is that
the viewer has to make one request for each swatch in the theme, and
when there are dozens of them the loading time of the map can become
very long. 

Alain

-----Original Message-----
From: James Card [mailto:James.Card at calcad.com] 
Sent: Monday, November 27, 2006 10:12 AM
To: users at mapguide.osgeo.org
Subject: Re: [mapguide-users] Expand legend for themed layer

On Mon, 27 Nov 2006 08:38:42 -0800, Tom Chadwin
<tom.chadwin at nnpa.org.uk>  
wrote:

> I don't have this option. I have "Expand", but all that does is to
expand
> all the folders in the key. The thematic key remains curtailed. I
should
> have mentioned that I am using the AJAX viewer.

You must right-click on the line that displays the layer-name, not in
the  
theme descriptions themselves, and then there is a "Show Long Theme"  
option.

-- 
James Card
California CAD Solutions, Inc.
209 578-5580

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at mapguide.osgeo.org
For additional commands, e-mail: users-help at mapguide.osgeo.org






More information about the Mapguide_users mailing list