<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Trebuchet MS";
        panose-1:2 11 6 3 2 2 2 2 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='color:#1F497D'>Special thanks to Jonathon for
assistance, need to share this for the archives.<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Here is what we have used to get
around this:<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-CA style='color:#1F497D'>If you go to
C:\Program Files\MapGuideOpenSource2.0\WebServerExtensions\www\viewerfiles and
modified the Legend.js file:<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.5in'><span lang=EN-CA style='color:#1F497D'>&nbsp;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.5in'><span lang=EN-CA style='color:#1F497D'>locate
the function ScaleRangeItem() and modify the following line: <o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.5in'><span lang=EN-CA style='color:#1F497D'>&nbsp;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.5in;text-indent:.5in'><span lang=EN-CA
style='color:#1F497D'>this.showlongtheme = false; <o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.5in'><span lang=EN-CA style='color:#1F497D'>&nbsp;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:.5in'><span lang=EN-CA style='color:#1F497D'>Set
the value to 'true'.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-CA style='color:#1F497D'>&nbsp;<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-CA style='color:#1F497D'>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.<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Note that any time you upgrade
MG you&#8217;ll have to make this change.<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Regards,<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Jonathon<o:p></o:p></span></p>

<p class=MsoNormal><b><span style='font-family:"Trebuchet MS","sans-serif";
color:#2A5973'>Jonathon McIntyre<o:p></o:p></span></b></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";
color:#2A5973'>Principal Technical Consultant</span><span style='font-family:
"Trebuchet MS","sans-serif";color:#2A5973'><br>
</span><span style='font-size:13.5pt;font-family:"Trebuchet MS","sans-serif";
color:#2A5973'>Pacific Alliance Technologies</span><span style='font-size:12.0pt;
font-family:"Times New Roman","serif";color:navy'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:7.5pt;font-family:"Trebuchet MS","sans-serif";
color:#FF823D'>TEL </span><span style='font-size:7.5pt;font-family:"Trebuchet MS","sans-serif";
color:#2A5973'>604.676.6000 EXT 104&nbsp; <a
href="outbind://11-00000000451C53D6F794124CA27FE59F29451B620700F98B38BEBCA97845866C7027ABEE778D0000004238B40000F16BCB45108BB147A98A7A2FDADFA02B000003B414190000/es@pat.ca"
title="blocked::es@pat.ca">jm@pat.ca</a>&nbsp; </span><span style='font-size:
7.5pt;font-family:"Trebuchet MS","sans-serif";color:#FF6600'><a
href="http://www.pat.ca/" title="blocked::http://www.pat.ca/&#10;http://www.pat.ca/"><span
style='color:#FF6600'>www.pat.ca</span></a></span><span style='color:#1F497D'><o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
mapguide-users-bounces@lists.osgeo.org
[mailto:mapguide-users-bounces@lists.osgeo.org] <b>On Behalf Of </b>LGS<br>
<b>Sent:</b> August 27, 2009 8:12 PM<br>
<b>To:</b> mapguide-users@lists.osgeo.org<br>
<b>Subject:</b> [mapguide-users] Theme data not displaying properly in legend<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Hi There,<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>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?<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Thx<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Trevor<o:p></o:p></p>

<p class=MsoNormal>LGS<o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Internal
Virus Database is out of date.<br>
Checked by AVG - www.avg.com<br>
Version: 8.0.238 / Virus Database: 270.13.61/2314 - Release Date: 08/19/09
18:06:00</span><o:p></o:p></p>

</div>

</body>

</html>