[mapguide-users] Theme data not displaying properly in legend

LGS trobar at gissolutions.ca
Fri Aug 28 22:06:19 EDT 2009


Special thanks to Jonathon for assistance, need to share this for the
archives.

 

 

Here is what we have used to get around this:

 

If you go to C:\Program
Files\MapGuideOpenSource2.0\WebServerExtensions\www\viewerfiles and modified
the Legend.js file:

 

locate the function ScaleRangeItem() and modify the following line: 

 

this.showlongtheme = false; 

 

Set the value to 'true'.

 

You should be able to display the long theme in the legend with icon colors.
Previously you had to right click on the layer that you want to expand and
chose Show Long Theme, this will display the full list of themes without the
icon color.

 

Note that any time you upgrade MG you'll have to make this change.

 

Regards,

Jonathon

Jonathon McIntyre

Principal Technical Consultant
Pacific Alliance Technologies

TEL 604.676.6000 EXT 104  jm at pat.ca
<outbind://11-00000000451C53D6F794124CA27FE59F29451B620700F98B38BEBCA9784586
6C7027ABEE778D0000004238B40000F16BCB45108BB147A98A7A2FDADFA02B000003B4141900
00/es at pat.ca>    <http://www.pat.ca/> www.pat.ca

 

 

 

From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of LGS
Sent: August 27, 2009 8:12 PM
To: mapguide-users at lists.osgeo.org
Subject: [mapguide-users] Theme data not displaying properly in legend

 

Hi There,

 

In my Ajax viewer I have a layer with 14 theme rules/categories. In the
legend it only displays the first and last. I check the MG archives and it
says to right click to show long theme. When I do this I get none of the
theme colors displaying but their labels display. I know when I set 8 or
less rules it displays with no issues. Can anyone help me?

 

Thx

 

Trevor

LGS

Internal Virus Database is out of date.
Checked by AVG - www.avg.com
Version: 8.0.238 / Virus Database: 270.13.61/2314 - Release Date: 08/19/09
18:06:00

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-users/attachments/20090828/4cf14ba1/attachment.html


More information about the mapguide-users mailing list