<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
What version of the MapGuide server did you use?<br>
I cannot get it to update the legend correctly, when the "summary"
parameter is present.<br>
<br>
<pre class="moz-signature" cols="72">Regards, Kenneth, GEOGRAF A/S
</pre>
<br>
<br>
Berdel, Brian wrote:
<blockquote
cite="midC1C7B6846221DF4A903A1433293BBD43140882@fwex02.home.mcmtrans.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta name="Generator" content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="City">
<o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place"><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PersonName">
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
v\:* {
        BEHAVIOR: url(#default#VML)
}
o\:* {
        BEHAVIOR: url(#default#VML)
}
w\:* {
        BEHAVIOR: url(#default#VML)
}
.SHAPE
        {BEHAVIOR: url(#default#VML)
;}
a:link
        {mso-style-priority: 99
;}
span.MSOHYPERLINK
        {mso-style-priority: 99
;}
a:visited
        {mso-style-priority: 99
;}
span.MSOHYPERLINKFOLLOWED
        {mso-style-priority: 99
;}
p
        {mso-style-priority: 99
;}
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Palatino Linotype";
        panose-1:2 4 5 2 5 5 5 3 3 4;}
@font-face
        {font-family:Calibri;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";
        color:black;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {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";
        color:black;}
pre
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
tt
        {font-family:"Courier New";}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:Calibri;
        color:#1F497D;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle23
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle24
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle25
        {mso-style-type:personal;
        font-family:Arial;
        color:navy;}
span.EmailStyle26
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@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]-->
</o:SmartTagType></o:SmartTagType></o:SmartTagType>
<div class="Section1">
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;">I take that
back…I got it to
work. <o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;">It was
actually much simpler than all of
this. And Refresh does in fact Refresh the legend. <o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;">I simply had
to call GetMapFrame().Refresh();<o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;">Before
calling ZoomToView<o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;">All is well
and it works great. <o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;">Thanks again
for all of your help. <o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></p>
<div>
<div>
<p class="MsoNormal"><font color="black" face="Palatino Linotype"
size="3"><span
style="font-size: 12pt; font-family: "Palatino Linotype";">Brian Berdel</span></font><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><font color="black" face="Palatino Linotype"
size="2"><span
style="font-size: 10pt; font-family: "Palatino Linotype";">McMahon
Associates,
Inc.</span></font><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><font color="black" face="Palatino Linotype"
size="2"><span
style="font-size: 10pt; font-family: "Palatino Linotype";">p:
215.283.9444</span></font><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><font color="black" face="Palatino Linotype"
size="2"><span
style="font-size: 10pt; font-family: "Palatino Linotype";"><a class="moz-txt-link-abbreviated" href="http://www.mcmtrans.com">www.mcmtrans.com</a></span></font><o:p></o:p></p>
</div>
</div>
<div>
<div class="MsoNormal" style="text-align: center;" align="center"><font
color="black" face="Times New Roman" size="3"><span
style="font-size: 12pt; color: windowtext;">
<hr tabindex="-1" align="center" size="2" width="100%"></span></font></div>
<p class="MsoNormal"><b><font color="black" face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma; color: windowtext; font-weight: bold;">From:</span></font></b><font
color="black" face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma; color: windowtext;">
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users-bounces@lists.osgeo.org">mapguide-users-bounces@lists.osgeo.org</a>
[<a class="moz-txt-link-freetext" href="mailto:mapguide-users-bounces@lists.osgeo.org">mailto:mapguide-users-bounces@lists.osgeo.org</a>] <b><span
style="font-weight: bold;">On Behalf Of </span></b>Berdel, Brian<br>
<b><span style="font-weight: bold;">Sent:</span></b> Tuesday, May 22,
2007 9:50
AM<br>
<b><span style="font-weight: bold;">To:</span></b> <st1:PersonName
w:st="on">MapGuide Users Mail List</st1:PersonName><br>
<b><span style="font-weight: bold;">Subject:</span></b> RE:
[mapguide-users]
Navigation Example .NET</span></font><font color="black"><span
style="color: windowtext;"><o:p></o:p></span></font></p>
</div>
<p class="MsoNormal"><font color="black" face="Times New Roman"
size="3"><span style="font-size: 12pt;"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font color="black" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: windowtext;">I
cannot get it to work with your
workaround. (or with any I have tried </span></font><font color="black"
face="Wingdings" size="2"><span
style="font-size: 10pt; font-family: Wingdings; color: windowtext;">J</span></font><font
color="black" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: windowtext;">)<o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="black" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: windowtext;"> I
took out the summary
parameter and made the change to </span></font><tt><font color="black"
face="Courier New" size="2"><span
style="font-size: 10pt; color: windowtext;">ajaxmappane.templ</span></font></tt><tt><font
face="Courier New" size="2"><span style="font-size: 10pt;"><o:p></o:p></span></font></tt></p>
<p class="MsoNormal"><tt><font color="black" face="Courier New"
size="2"><span style="font-size: 10pt;">And the map will not display
at all. This seems
like a pretty basic piece of functionality that has gone without
working for a
long time. I found e-mails on this dated back to October. <o:p></o:p></span></font></tt></p>
<p class="MsoNormal"><tt><font color="black" face="Courier New"
size="2"><span style="font-size: 10pt;"><o:p> </o:p></span></font></tt></p>
<p class="MsoNormal"><tt><font color="black" face="Courier New"
size="2"><span style="font-size: 10pt;">Thanks, </span></font></tt><font
color="navy" face="Arial"><span
style="font-family: Arial; color: navy;"><o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></p>
<div>
<div>
<p class="MsoNormal"><font color="black" face="Palatino Linotype"
size="3"><span
style="font-size: 12pt; font-family: "Palatino Linotype";">Brian Berdel</span></font><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><font color="black" face="Palatino Linotype"
size="2"><span
style="font-size: 10pt; font-family: "Palatino Linotype";">McMahon
Associates,
Inc.</span></font><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><font color="black" face="Palatino Linotype"
size="2"><span
style="font-size: 10pt; font-family: "Palatino Linotype";">p:
215.283.9444</span></font><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><font color="black" face="Palatino Linotype"
size="2"><span
style="font-size: 10pt; font-family: "Palatino Linotype";"><a class="moz-txt-link-abbreviated" href="http://www.mcmtrans.com">www.mcmtrans.com</a></span></font><o:p></o:p></p>
</div>
</div>
<div>
<div class="MsoNormal" style="text-align: center;" align="center"><font
color="black" face="Times New Roman" size="3"><span
style="font-size: 12pt; color: windowtext;">
<hr tabindex="-1" align="center" size="2" width="100%"></span></font></div>
<p class="MsoNormal"><b><font color="black" face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma; color: windowtext; font-weight: bold;">From:</span></font></b><font
color="black" face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma; color: windowtext;">
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users-bounces@lists.osgeo.org">mapguide-users-bounces@lists.osgeo.org</a>
[<a class="moz-txt-link-freetext" href="mailto:mapguide-users-bounces@lists.osgeo.org">mailto:mapguide-users-bounces@lists.osgeo.org</a>] <b><span
style="font-weight: bold;">On Behalf Of </span></b>Kenneth<br>
<b><span style="font-weight: bold;">Sent:</span></b> Monday, May 21,
2007 2:33 PM<br>
<b><span style="font-weight: bold;">To:</span></b> <st1:PersonName
w:st="on">MapGuide Users Mail List</st1:PersonName><br>
<b><span style="font-weight: bold;">Subject:</span></b> Re:
[mapguide-users]
Navigation Example .NET</span></font><font color="black"><span
style="color: windowtext;"><o:p></o:p></span></font></p>
</div>
<p class="MsoNormal"><font color="black" face="Times New Roman"
size="3"><span style="font-size: 12pt;"><o:p> </o:p></span></font></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><font color="black"
face="Times New Roman" size="3"><span style="font-size: 12pt;">I can't
find it either
:D...<br>
<br>
Here is the text of my post:<br>
<snip><br>
</span></font><tt><font face="Courier New" size="2"><span
style="font-size: 10pt;">When
using the server API for altering layer visibility, a call to the </span></font></tt><font
face="Courier New" size="2"><span
style="font-size: 10pt; font-family: "Courier New";"><br>
<tt><font face="Courier New">GetMapFrame().Refresh() is not
sufficient to
refresh the legend. </font></tt><br>
<br>
<tt><font face="Courier New">Pseudocode: </font></tt><br>
<tt><font face="Courier New">$map.Open(...); </font></tt><br>
<tt><font face="Courier New">$map.Layers('layername').setVisibility(true);
</font></tt><br>
<tt><font face="Courier New">$map.Save(); </font></tt><br>
<br>
<tt><font face="Courier New">Calling the GetMapFrame().Refresh()
after this,
will update the map to </font></tt><br>
<tt><font face="Courier New">display the new layer. </font></tt><br>
<tt><font face="Courier New">However the Legend does not reflect this
change. </font></tt><br>
<br>
<tt><font face="Courier New">The problem can be solved with two
changes: </font></tt><br>
<tt><font face="Courier New">1. In ajaxmappane.templ, the Refresh()
function
should also call </font></tt><br>
<tt><font face="Courier New">ResetVisLayers() </font></tt><br>
<tt><font face="Courier New">2. In legendctrl.templ, the Refresh call
should be
changed, so it does </font></tt><br>
<tt><font face="Courier New">not call with the summary parameter </font></tt><br>
<br>
<tt><font face="Courier New">The problem only occurs in the <st1:place
w:st="on"><st1:City w:st="on">AJAX</st1:City></st1:place> viewer. </font></tt><br>
<tt><font face="Courier New">When retrieving the legend script, using
the
summary parameter, the </font></tt><br>
<tt><font face="Courier New">visibility does not change. </font></tt><br>
<tt><font face="Courier New">Removing the summary parameter is a bad
fix, as it
also disables the </font></tt><br>
<tt><font face="Courier New">optimizations that the summary parameter
gives. </font></tt><br>
<br>
<tt><font face="Courier New">If the above mentioned fix 1, is not
implemented,
a lot of features will </font></tt><br>
<tt><font face="Courier New">fail after modifying the map. </font></tt><br>
<tt><font face="Courier New">For instance tooltips for the layers
will not
work. </font></tt><br>
<br>
<tt><font face="Courier New">I think this is a problem with a design
flaw in
the way the viewer is </font></tt><br>
<tt><font face="Courier New">implemented. </font></tt><br>
<tt><font face="Courier New">Keeping state data solely on the client
is a very
bad idea. </font></tt><br>
<tt><font face="Courier New">This happens with layerstates and
current zoom in
the <st1:place w:st="on"><st1:City w:st="on">AJAX</st1:City></st1:place>
viewer, and </font></tt><br>
<tt><font face="Courier New">the Selection in the DWF viewer. </font></tt><br>
<br>
<tt><font face="Courier New">To allow modifications to the map from
the server
API, all data should </font></tt><br>
<tt><font face="Courier New">be written to the server. </font></tt><br>
<tt><font face="Courier New">To provide caching the client should
fetch a
change list, rather than </font></tt><br>
<tt><font face="Courier New">sporadically caching data. </font></tt><br>
<tt><font face="Courier New">Using a sequence number, the client can
skip
multiple update cycles, and </font></tt><br>
<tt><font face="Courier New">still be synced correctly. </font></tt><br>
<tt><font face="Courier New">Using a generic format would allow the
DWF and <st1:place w:st="on"><st1:City w:st="on">ajax</st1:City></st1:place>
viewer to work on </font></tt><br>
<tt><font face="Courier New">exactly the same data, thus reducing
duplicate
code. </font></tt></span></font><br>
<br>
</snip><br>
<br>
<o:p></o:p></p>
<pre><font color="black" face="Courier New" size="2"><span
style="font-size: 10pt;">Regards, Kenneth, GEOGRAF A/S<o:p></o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><span
style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<p class="MsoNormal"><font color="black" face="Times New Roman"
size="3"><span style="font-size: 12pt;"><br>
<br>
Berdel, Brian wrote: <o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;"><u1:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="City"><u1:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place"><u1:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PersonName"><!--[if gte mso 9]><xml>
<u1:shapedefaults u2:ext="edit" spidmax="1026"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
<u1:shapelayout u3:ext="edit">
<u1:idmap u3:ext="edit" data="1"/>
</u1:shapelayout>
</xml><![endif]--></u1:SmartTagType></u1:SmartTagType></u1:SmartTagType>Looks
like you are right…Thanks. I cannot seem to find your workaround,
can you send me a link or something?<u1:p></u1:p></span></font><o:p></o:p></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;"><u1:p> </u1:p></span></font><o:p></o:p></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;">Thanks, <u1:p></u1:p></span></font><o:p></o:p></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;"><u1:p> </u1:p></span></font><o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><font color="black" face="Palatino Linotype"
size="3"><span
style="font-size: 12pt; font-family: "Palatino Linotype";">Brian Berdel</span></font><u1:p></u1:p><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><font color="black" face="Palatino Linotype"
size="2"><span
style="font-size: 10pt; font-family: "Palatino Linotype";">McMahon
Associates,
Inc.</span></font><u1:p></u1:p><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><font color="black" face="Palatino Linotype"
size="2"><span
style="font-size: 10pt; font-family: "Palatino Linotype";">p:
215.283.9444</span></font><u1:p></u1:p><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><font color="black" face="Palatino Linotype"
size="2"><span
style="font-size: 10pt; font-family: "Palatino Linotype";"><a
href="http://www.mcmtrans.com">www.mcmtrans.com</a></span></font><u1:p></u1:p><o:p></o:p></p>
</div>
</div>
<div>
<div class="MsoNormal" style="text-align: center;" align="center"><font
color="black" face="Times New Roman" size="3"><span
style="font-size: 12pt; color: windowtext;">
<hr tabindex="-1" align="center" size="2" width="100%"></span></font></div>
<p class="MsoNormal"><b><font color="black" face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma; color: windowtext; font-weight: bold;">From:</span></font></b><font
color="black" face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma; color: windowtext;"> <a
href="mailto:mapguide-users-bounces@lists.osgeo.org">mapguide-users-bounces@lists.osgeo.org</a>
[<a href="mailto:mapguide-users-bounces@lists.osgeo.org">mailto:mapguide-users-bounces@lists.osgeo.org</a>]
<b><span style="font-weight: bold;">On Behalf Of </span></b>Kenneth<br>
<b><span style="font-weight: bold;">Sent:</span></b> Monday, May 21,
2007 9:58 AM<br>
<b><span style="font-weight: bold;">To:</span></b> <st1:PersonName
u4_x003a_st="on" w:st="on">MapGuide Users Mail List</st1:PersonName><br>
<b><span style="font-weight: bold;">Subject:</span></b> Re:
[mapguide-users]
Navigation Example .NET</span></font><o:p></o:p></p>
</div>
<u1:p></u1:p>
<p class="MsoNormal"><font color="black" face="Times New Roman"
size="3"><span style="font-size: 12pt;"><u1:p> </u1:p><o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><font color="black"
face="Times New Roman" size="3"><span style="font-size: 12pt;">The
zoom will invalidate
the map, and is the same as a refresh.<br>
I haven't tested it, but I don't think a scale change (eg. zoom) will
refresh
the visible layer cache, but it might.<br>
<br>
<br>
<o:p></o:p></span></font></p>
<pre><font color="black" face="Courier New" size="2"><span
style="font-size: 10pt;"><u1:p></u1:p>Regards, Kenneth, GEOGRAF A/S<u1:p></u1:p><o:p></o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><span
style="font-size: 10pt;"><u1:p> </u1:p><o:p></o:p></span></font></pre>
<p class="MsoNormal"><font color="black" face="Times New Roman"
size="3"><span style="font-size: 12pt;"><br>
<br>
Andy Morsell wrote: <u1:p></u1:p><o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="blue" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: blue;">But in the
example below, where the layer
is being set to visible right before a zoom, the zoom should take care
of the
map refresh and the layer should appear on the subsequent map. Or, is
this not the case?</span></font><u1:p></u1:p><o:p></o:p></p>
<div>
<p class="MsoNormal"><font color="black" face="Times New Roman"
size="3"><span style="font-size: 12pt;"> <u1:p></u1:p><o:p></o:p></span></font></p>
</div>
<p><font color="black" face="Tahoma" size="1"><span
style="font-size: 7.5pt; font-family: Tahoma;"><!-- Converted from text/rtf format -->Andy
</span></font><u1:p></u1:p><o:p></o:p></p>
<div class="MsoNormal" style="text-align: center;" align="center"><font
color="black" face="Times New Roman" size="3"><span
style="font-size: 12pt;">
<hr tabindex="-1" align="center" size="2" width="100%"></span></font></div>
<p class="MsoNormal" style="margin-bottom: 12pt;"><b><font
color="black" face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font
face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma;"> <a
href="mailto:mapguide-users-bounces@lists.osgeo.org">mapguide-users-bounces@lists.osgeo.org</a>
[<a href="mailto:mapguide-users-bounces@lists.osgeo.org">mailto:mapguide-users-bounces@lists.osgeo.org</a>]
<b><span style="font-weight: bold;">On Behalf Of </span></b>Kenneth<br>
<b><span style="font-weight: bold;">Sent:</span></b> Sunday, May 20,
2007 11:18
AM<br>
<b><span style="font-weight: bold;">To:</span></b> <st1:PersonName
u4_x003a_st="on" w:st="on">MapGuide Users Mail List</st1:PersonName><br>
<b><span style="font-weight: bold;">Subject:</span></b> Re:
[mapguide-users]
Navigation Example .NET</span></font><u1:p></u1:p><o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom: 12pt;"><font color="black"
face="Times New Roman" size="3"><span style="font-size: 12pt;">If you
modify the layer
visibility, using serverside code, it will not work correctly with the <st1:place
w:st="on"><st1:City u4_x003a_st="on" w:st="on">AJAX</st1:City></st1:place>
viewer.<br>
The problem is that the <st1:place w:st="on"><st1:City u4_x003a_st="on"
w:st="on">AJAX</st1:City></st1:place>
client has a small cache of visible layers, and calling map.refresh()
on the
client does not invalidate this cache.<br>
<br>
The symptoms will be that no tooltip is displayed for the layer, and
the layer
never shows up in the legend.<br>
I've posted this bug on the mapguide-internals list, and a workaround.<br>
<br>
<br>
<o:p></o:p></span></font></p>
<pre><font color="black" face="Courier New" size="2"><span
style="font-size: 10pt;"><u1:p></u1:p>Regards. Kenneth, GEOGRAF A/S<u1:p></u1:p><o:p></o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><span
style="font-size: 10pt;"><u1:p> </u1:p><o:p></o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><span
style="font-size: 10pt;"> <u1:p></u1:p><o:p></o:p></span></font></pre>
<p class="MsoNormal"><font color="black" face="Times New Roman"
size="3"><span style="font-size: 12pt;"><br>
<br>
Berdel, Brian wrote: <u1:p></u1:p><o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;"><O:SMARTTAGTYPE
name="PersonName"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></O:SMARTTAGTYPE>Cool,
thanks! I’ll give it a try. <o:p></o:p></span></font></p>
<div>
<div>
<p class="MsoNormal"><font color="navy" face="Palatino Linotype"
size="3"><span
style="font-size: 12pt; font-family: "Palatino Linotype"; color: navy;"><u1:p></u1:p>Brian
Berdel<o:p></o:p></span></font></p>
</div>
<p class="MsoNormal"><font color="black" face="Times New Roman"
size="3"><span style="font-size: 12pt; color: windowtext;"><o:p> </o:p></span></font><u1:p></u1:p></p>
<div>
<p class="MsoNormal"><font color="navy" face="Palatino Linotype"
size="2"><span
style="font-size: 10pt; font-family: "Palatino Linotype"; color: navy;">McMahon
Associates, Inc.</span></font><u1:p></u1:p><o:p></o:p></p>
</div>
<p class="MsoNormal"><font color="black" face="Times New Roman"
size="3"><span style="font-size: 12pt; color: windowtext;"><o:p> </o:p></span></font></p>
<div>
<p class="MsoNormal"><font color="navy" face="Palatino Linotype"
size="2"><span
style="font-size: 10pt; font-family: "Palatino Linotype"; color: navy;">p:
215.283.9444</span></font><u1:p></u1:p><o:p></o:p></p>
</div>
<p class="MsoNormal"><font color="black" face="Times New Roman"
size="3"><span style="font-size: 12pt; color: windowtext;"><o:p> </o:p></span></font></p>
<div>
<p class="MsoNormal"><font color="navy" face="Palatino Linotype"
size="2"><span
style="font-size: 10pt; font-family: "Palatino Linotype"; color: navy;"><a
href="http://www.mcmtrans.com">www.mcmtrans.com</a></span></font><o:p></o:p></p>
</div>
</div>
<div>
<div class="MsoNormal" style="text-align: center;" align="center"><font
color="black" face="Times New Roman" size="3"><span
style="font-size: 12pt;">
<hr><u1:p></u1:p> size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class="MsoNormal"><b><font color="black" face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font
face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma;"> <a
href="mailto:mapguide-users-bounces@lists.osgeo.org">mapguide-users-bounces@lists.osgeo.org</a>
[<a href="mailto:mapguide-users-bounces@lists.osgeo.org">mailto:mapguide-users-bounces@lists.osgeo.org</a>]
<b><span style="font-weight: bold;">On Behalf Of </span></b>Andy
Morsell<br>
<b><span style="font-weight: bold;">Sent:</span></b> Friday, May 18,
2007 12:39
PM<br>
<b><span style="font-weight: bold;">To:</span></b> '<ST1:PERSONNAME
u5:st="on"><st1:PersonName u4_x003a_st="on" w:st="on">MapGuide Users
Mail List</st1:PersonName></ST1:PERSONNAME>'<br>
<b><span style="font-weight: bold;">Subject:</span></b> RE:
[mapguide-users]
Navigation Example .NET</span></font><o:p></o:p></p>
</div>
<p class="MsoNormal"><font color="blue" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: blue;"><u1:p></u1:p>The
execution of the API
functions must happen server side in this instance. But, it looks like
you could put your .NET conditional code in the gotopoint.aspx page and
it
would work. The OnPageLoad() javascript function would fire afterwards
so
all should behave smoothly. And, you would not have to
programmatically
refresh the map since that will happen with the ZoomToView anyway.<o:p></o:p></span></font></p>
<p><font color="black" face="Tahoma" size="1"><span
style="font-size: 7.5pt; font-family: Tahoma;"><!-- Converted from text/rtf format --><u1:p></u1:p>Andy
</span></font><o:p></o:p></p>
<div class="MsoNormal" style="text-align: center;" align="center"><font
color="black" face="Times New Roman" size="3"><span
style="font-size: 12pt;">
<hr><u1:p></u1:p> size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class="MsoNormal" style="margin-bottom: 12pt;"><b><font
color="black" face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font
face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma;"> <a
href="mailto:mapguide-users-bounces@lists.osgeo.org">mapguide-users-bounces@lists.osgeo.org</a>
[<a href="mailto:mapguide-users-bounces@lists.osgeo.org">mailto:mapguide-users-bounces@lists.osgeo.org</a>]
<b><span style="font-weight: bold;">On Behalf Of </span></b>Berdel,
Brian<br>
<b><span style="font-weight: bold;">Sent:</span></b> Friday, May 18,
2007 9:28 AM<br>
<b><span style="font-weight: bold;">To:</span></b> <ST1:PERSONNAME
u5:st="on"><st1:PersonName u4_x003a_st="on" w:st="on">MapGuide Users
Mail List</st1:PersonName></ST1:PERSONNAME><br>
<b><span style="font-weight: bold;">Subject:</span></b> RE:
[mapguide-users]
Navigation Example .NET</span></font><o:p></o:p></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;"><u1:p></u1:p>Thanks
for the
response. I am looking for a way to achieve this on the client side. I
do
not want to check until after the user has clicked on link. (such as
putting it
in the gotopoint.aspx page). Will this work here?<o:p></o:p></span></font></p>
<div>
<div>
<p class="MsoNormal"><font color="navy" face="Palatino Linotype"
size="3"><span
style="font-size: 12pt; font-family: "Palatino Linotype"; color: navy;"><u1:p></u1:p>Brian
Berdel<o:p></o:p></span></font></p>
</div>
<p class="MsoNormal"><font color="black" face="Times New Roman"
size="3"><span style="font-size: 12pt; color: windowtext;"><o:p> </o:p></span></font><u1:p></u1:p></p>
<div>
<p class="MsoNormal"><font color="navy" face="Palatino Linotype"
size="2"><span
style="font-size: 10pt; font-family: "Palatino Linotype"; color: navy;">McMahon
Associates, Inc.</span></font><u1:p></u1:p><o:p></o:p></p>
</div>
<p class="MsoNormal"><font color="black" face="Times New Roman"
size="3"><span style="font-size: 12pt; color: windowtext;"><o:p> </o:p></span></font></p>
<div>
<p class="MsoNormal"><font color="navy" face="Palatino Linotype"
size="2"><span
style="font-size: 10pt; font-family: "Palatino Linotype"; color: navy;">p:
215.283.9444</span></font><u1:p></u1:p><o:p></o:p></p>
</div>
<p class="MsoNormal"><font color="black" face="Times New Roman"
size="3"><span style="font-size: 12pt; color: windowtext;"><o:p> </o:p></span></font></p>
<div>
<p class="MsoNormal"><font color="navy" face="Palatino Linotype"
size="2"><span
style="font-size: 10pt; font-family: "Palatino Linotype"; color: navy;"><a
href="http://www.mcmtrans.com">www.mcmtrans.com</a></span></font><o:p></o:p></p>
</div>
</div>
<div>
<div class="MsoNormal" style="text-align: center;" align="center"><font
color="black" face="Times New Roman" size="3"><span
style="font-size: 12pt;">
<hr><u1:p></u1:p> size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class="MsoNormal"><b><font color="black" face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font
face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma;"> <a
href="mailto:mapguide-users-bounces@lists.osgeo.org">mapguide-users-bounces@lists.osgeo.org</a>
[<a href="mailto:mapguide-users-bounces@lists.osgeo.org">mailto:mapguide-users-bounces@lists.osgeo.org</a>]
<b><span style="font-weight: bold;">On Behalf Of </span></b>Andy
Morsell<br>
<b><span style="font-weight: bold;">Sent:</span></b> Friday, May 18,
2007 11:40
AM<br>
<b><span style="font-weight: bold;">To:</span></b> '<ST1:PERSONNAME
u5:st="on"><st1:PersonName u4_x003a_st="on" w:st="on">MapGuide Users
Mail List</st1:PersonName></ST1:PERSONNAME>'<br>
<b><span style="font-weight: bold;">Subject:</span></b> RE:
[mapguide-users]
Navigation Example .NET</span></font><o:p></o:p></p>
</div>
<p class="MsoNormal"><font color="blue" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: blue;"><u1:p></u1:p>You
should be able to use the
MgLayer::IsVisible function to check the visibility and then SetVisible
to turn
it on. You will then have to refresh the map to reflect the change.<o:p></o:p></span></font></p>
<p><font color="black" face="Tahoma" size="1"><span
style="font-size: 7.5pt; font-family: Tahoma;"><u1:p></u1:p>Andy
Morsell, P.E.</span></font> <br>
<font face="Tahoma" size="1"><span
style="font-size: 7.5pt; font-family: Tahoma;">Spatial
Integrators, Inc.</span></font> <br>
<font face="Tahoma" size="1"><span
style="font-size: 7.5pt; font-family: Tahoma;"><a
href="http://www.SpatialGIS.com">http://www.SpatialGIS.com</a></span></font>
<font face="Tahoma" size="1"><span
style="font-size: 7.5pt; font-family: Tahoma;"><o:p></o:p></span></font></p>
<font color="black" face="Times New Roman" size="3"><span
style="font-size: 12pt; font-family: "Times New Roman"; color: black;"><!-- Converted from text/rtf format --></span></font>
<div>
<div class="MsoNormal" style="text-align: center;" align="center"><font
color="black" face="Times New Roman" size="3"><span
style="font-size: 12pt;">
<hr><u1:p></u1:p> size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class="MsoNormal" style="margin-bottom: 12pt;"><b><font
color="black" face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font
face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma;"> <a
href="mailto:mapguide-users-bounces@lists.osgeo.org">mapguide-users-bounces@lists.osgeo.org</a>
[<a href="mailto:mapguide-users-bounces@lists.osgeo.org">mailto:mapguide-users-bounces@lists.osgeo.org</a>]
<b><span style="font-weight: bold;">On Behalf Of </span></b>Berdel,
Brian<br>
<b><span style="font-weight: bold;">Sent:</span></b> Friday, May 18,
2007 8:00 AM<br>
<b><span style="font-weight: bold;">To:</span></b> <ST1:PERSONNAME
u5:st="on"><st1:PersonName u4_x003a_st="on" w:st="on">MapGuide Users
Mail List</st1:PersonName></ST1:PERSONNAME><br>
<b><span style="font-weight: bold;">Subject:</span></b>
[mapguide-users]
Navigation Example .NET</span></font><o:p></o:p></p>
</div>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;"><u1:p></u1:p>Anyone
know how I would go
about checking to see if a layer was on in the navigation example and
if it is
not turn it when clicking a link.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;"><u1:p></u1:p>Thanks!<o:p></o:p></span></font></p>
<div>
<div>
<p class="MsoNormal"><font color="navy" face="Palatino Linotype"
size="3"><span
style="font-size: 12pt; font-family: "Palatino Linotype"; color: navy;"><u1:p></u1:p>Brian
Berdel<o:p></o:p></span></font></p>
</div>
<p class="MsoNormal"><font color="black" face="Times New Roman"
size="3"><span style="font-size: 12pt; color: windowtext;"><o:p> </o:p></span></font><u1:p></u1:p></p>
<div>
<p class="MsoNormal"><font color="navy" face="Palatino Linotype"
size="2"><span
style="font-size: 10pt; font-family: "Palatino Linotype"; color: navy;">McMahon
Associates, Inc.</span></font><u1:p></u1:p><o:p></o:p></p>
</div>
<p class="MsoNormal"><font color="black" face="Times New Roman"
size="3"><span style="font-size: 12pt; color: windowtext;"><o:p> </o:p></span></font></p>
<div>
<p class="MsoNormal"><font color="navy" face="Palatino Linotype"
size="2"><span
style="font-size: 10pt; font-family: "Palatino Linotype"; color: navy;">p:
215.283.9444</span></font><u1:p></u1:p><o:p></o:p></p>
</div>
<p class="MsoNormal"><font color="black" face="Times New Roman"
size="3"><span style="font-size: 12pt; color: windowtext;"><o:p> </o:p></span></font></p>
<div>
<p class="MsoNormal"><font color="navy" face="Palatino Linotype"
size="2"><span
style="font-size: 10pt; font-family: "Palatino Linotype"; color: navy;"><a
href="http://www.mcmtrans.com">www.mcmtrans.com</a></span></font><o:p></o:p></p>
</div>
</div>
<pre style="text-align: center;" wrap=""><font color="black"
face="Courier New" size="2"><span style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<u1:p></u1:p>
<pre style="text-align: center;"><font color="black"
face="Courier New" size="2"><span style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre style="text-align: center;"><font color="black"
face="Courier New" size="2"><span style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre style="text-align: center;"><font color="black"
face="Courier New" size="2"><span style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre style="text-align: center;"><font color="black"
face="Courier New" size="2"><span style="font-size: 10pt;">
<hr align="center" size="4" width="90%">
</span></font></pre>
<pre style="text-align: center;"><font color="black"
face="Courier New" size="2"><span style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre style="text-align: center;"><font color="black"
face="Courier New" size="2"><span style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre style="text-align: center;"><font color="black"
face="Courier New" size="2"><span style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre style="text-align: center;"><font color="black"
face="Courier New" size="2"><span style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><span
style="font-size: 10pt;"><u1:p> </u1:p><o:p></o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><span
style="font-size: 10pt;">_______________________________________________<u1:p></u1:p><o:p></o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><span
style="font-size: 10pt;">mapguide-users mailing list<u1:p></u1:p><o:p></o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><span
style="font-size: 10pt;"><a
href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><u1:p></u1:p><o:p></o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><span
style="font-size: 10pt;"><a
href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><u1:p></u1:p><o:p></o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><span
style="font-size: 10pt;"> <u1:p></u1:p><o:p></o:p></span></font></pre>
<pre wrap=""><font color="black" face="Courier New" size="2"><span
style="font-size: 10pt;"><u1:p> </u1:p><o:p></o:p></span></font></pre>
<pre style="text-align: center;"><font color="black"
face="Courier New" size="2"><span style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre style="text-align: center;"><font color="black"
face="Courier New" size="2"><span style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre style="text-align: center;"><font color="black"
face="Courier New" size="2"><span style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre style="text-align: center;"><font color="black"
face="Courier New" size="2"><span style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre style="text-align: center;"><font color="black"
face="Courier New" size="2"><span style="font-size: 10pt;">
<hr align="center" size="4" width="90%">
</span></font></pre>
<pre style="text-align: center;"><font color="black"
face="Courier New" size="2"><span style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre style="text-align: center;"><font color="black"
face="Courier New" size="2"><span style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre style="text-align: center;"><font color="black"
face="Courier New" size="2"><span style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre style="text-align: center;"><font color="black"
face="Courier New" size="2"><span style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><span
style="font-size: 10pt;"><u1:p> </u1:p><o:p></o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><span
style="font-size: 10pt;">_______________________________________________<u1:p></u1:p><o:p></o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><span
style="font-size: 10pt;">mapguide-users mailing list<u1:p></u1:p><o:p></o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><span
style="font-size: 10pt;"><a
href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><u1:p></u1:p><o:p></o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><span
style="font-size: 10pt;"><a
href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><u1:p></u1:p><o:p></o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><span
style="font-size: 10pt;"> <u1:p></u1:p><o:p></o:p></span></font></pre>
<pre wrap=""><font color="black" face="Courier New" size="2"><span
style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre style="text-align: center;"><font color="black"
face="Courier New" size="2"><span style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre style="text-align: center;"><font color="black"
face="Courier New" size="2"><span style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre style="text-align: center;"><font color="black"
face="Courier New" size="2"><span style="font-size: 10pt;">
<hr align="center" size="4" width="90%">
</span></font></pre>
<pre style="text-align: center;"><font color="black"
face="Courier New" size="2"><span style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre style="text-align: center;"><font color="black"
face="Courier New" size="2"><span style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><span
style="font-size: 10pt;"><o:p> </o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><span
style="font-size: 10pt;">_______________________________________________<o:p></o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><span
style="font-size: 10pt;">mapguide-users mailing list<o:p></o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><span
style="font-size: 10pt;"><a
href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><o:p></o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><span
style="font-size: 10pt;"><a
href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a><o:p></o:p></span></font></pre>
<pre><font color="black" face="Courier New" size="2"><span
style="font-size: 10pt;"> <o:p></o:p></span></font></pre>
</div>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>
</pre>
</blockquote>
</body>
</html>