<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v =
"urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word" xmlns:st1 =
"urn:schemas-microsoft-com:office:smarttags"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16441" name=GENERATOR><!--[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 name="City"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType
name="place"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType
name="PersonName"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><!--[if !mso]>
<STYLE>st1\:* {
        BEHAVIOR: url(#default#ieooui)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
        font-family: Tahoma;
}
@font-face {
        font-family: Palatino Linotype;
}
@font-face {
        font-family: Calibri;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.0in 1.0in 1.0in; }
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
}
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; COLOR: black; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; COLOR: black; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; COLOR: black; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
P {
        FONT-SIZE: 12pt; MARGIN-LEFT: 0in; COLOR: black; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman"; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto
}
PRE {
        FONT-SIZE: 10pt; MARGIN: 0in 0in 0pt; COLOR: black; FONT-FAMILY: "Courier New"
}
TT {
        FONT-FAMILY: "Courier New"
}
SPAN.EmailStyle20 {
        COLOR: #1f497d; FONT-FAMILY: Calibri; mso-style-type: personal
}
SPAN.EmailStyle21 {
        COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal
}
SPAN.EmailStyle22 {
        COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal
}
SPAN.EmailStyle23 {
        COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal
}
SPAN.EmailStyle24 {
        COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal
}
SPAN.EmailStyle25 {
        COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply
}
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 vLink=purple link=blue bgColor=white>
<DIV dir=ltr align=left><SPAN class=095305321-21052007><FONT face=Arial
color=#0000ff size=2>The JavaScript call should be <FONT
color=#000080>GetMapFrame().Refresh();</FONT></FONT></SPAN></DIV>
<DIV> </DIV><!-- Converted from text/rtf format -->
<P><SPAN lang=en-us><FONT face=Tahoma size=1>Andy </FONT></SPAN><BR></P>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> mapguide-users-bounces@lists.osgeo.org
[mailto:mapguide-users-bounces@lists.osgeo.org] <B>On Behalf Of </B>Berdel,
Brian<BR><B>Sent:</B> Monday, May 21, 2007 2:43 PM<BR><B>To:</B> MapGuide Users
Mail List<BR><B>Subject:</B> RE: [mapguide-users] Navigation Example
.NET<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Why do I keep
getting?<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Object doesn't support
this property or method when referring to
parent.GetMapFrame().Refresh;<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">I have this in an
onload function of the page in JavaScript. <o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<DIV>
<DIV>
<P class=MsoNormal><FONT face="Palatino Linotype" color=black 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 face="Palatino Linotype" color=black 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 face="Palatino Linotype" color=black 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 face="Palatino Linotype" color=black size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Palatino Linotype'">www.mcmtrans.com</SPAN></FONT><o:p></o:p></P></DIV></DIV>
<DIV>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT
face="Times New Roman" color=black size=3><SPAN
style="FONT-SIZE: 12pt; COLOR: windowtext">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal><B><FONT face=Tahoma color=black size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: windowtext; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT
face=Tahoma color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: windowtext; FONT-FAMILY: Tahoma">
mapguide-users-bounces@lists.osgeo.org
[mailto:mapguide-users-bounces@lists.osgeo.org] <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 face="Times New Roman" color=black size=3><SPAN
style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" color=black 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:City w:st="on"><st1:place w:st="on">AJAX</st1:place></st1:City> 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:City w:st="on"><st1:place
w:st="on">AJAX</st1:place></st1:City> 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:City
w:st="on"><st1:place w:st="on">ajax</st1:place></st1:City> 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><BR><o:p></o:p></P><PRE><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt">Regards, Kenneth, GEOGRAF A/S<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></PRE>
<P class=MsoNormal><FONT face="Times New Roman" color=black size=3><SPAN
style="FONT-SIZE: 12pt"><BR><BR>Berdel, Brian wrote:
<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><U1:SMARTTAGTYPE
name="City"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"><U1:SMARTTAGTYPE
name="place"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"><U1:SMARTTAGTYPE
name="PersonName" namespaceuri="urn:schemas-microsoft-com:office:smarttags"><!--[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 face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><U1:P> </U1:P></SPAN></FONT><o:p></o:p></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Thanks,
<U1:P></U1:P></SPAN></FONT><o:p></o:p></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><U1:P> </U1:P></SPAN></FONT><o:p></o:p></P>
<DIV>
<DIV>
<P class=MsoNormal><FONT face="Palatino Linotype" color=black 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 face="Palatino Linotype" color=black 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 face="Palatino Linotype" color=black 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 face="Palatino Linotype" color=black 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
face="Times New Roman" color=black size=3><SPAN
style="FONT-SIZE: 12pt; COLOR: windowtext">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal><B><FONT face=Tahoma color=black size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: windowtext; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT
face=Tahoma color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: windowtext; 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> Monday, May 21, 2007 9:58
AM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> <st1:PersonName
u4:st="on"><st1:PersonName 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><U1:P></U1:P>
<P class=MsoNormal><FONT face="Times New Roman" color=black size=3><SPAN
style="FONT-SIZE: 12pt"><U1:P> </U1:P><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" color=black 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><BR><o:p></o:p></SPAN></FONT></P><U1:P></U1:P><PRE><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt">Regards, Kenneth, GEOGRAF A/S<U1:P></U1:P><o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt"><U1:P> </U1:P><o:p></o:p></SPAN></FONT></PRE>
<P class=MsoNormal><FONT face="Times New Roman" color=black 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 face=Arial color=blue size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">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 face="Times New Roman" color=black size=3><SPAN
style="FONT-SIZE: 12pt"> <U1:P></U1:P><o:p></o:p></SPAN></FONT></P></DIV>
<P><FONT face=Tahoma color=black 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
face="Times New Roman" color=black size=3><SPAN style="FONT-SIZE: 12pt">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><B><FONT face=Tahoma color=black
size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">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:st="on"><st1:PersonName 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><U1:P></U1:P><o:p></o:p></P>
<P class=MsoNormal><FONT face="Times New Roman" color=black size=3><SPAN
style="FONT-SIZE: 12pt">If you modify the layer visibility, using serverside
code, it will not work correctly with the <st1:City u4:st="on"><st1:place
u4:st="on"><st1:City w:st="on"><st1:place
w:st="on">AJAX</st1:place></st1:City></st1:place></st1:City> viewer.<BR>The
problem is that the <st1:City u4:st="on"><st1:place u4:st="on"><st1:City
w:st="on"><st1:place
w:st="on">AJAX</st1:place></st1:City></st1:place></st1:City> 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><BR><o:p></o:p></SPAN></FONT></P><U1:P></U1:P><PRE><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt">Regards. Kenneth, GEOGRAF A/S<U1:P></U1:P><o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt"><U1:P> </U1:P><o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt"> <U1:P></U1:P><o:p></o:p></SPAN></FONT></PRE>
<P class=MsoNormal><FONT face="Times New Roman" color=black 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 face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><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><U1:P></U1:P><o:p></o:p></P>
<DIV>
<DIV>
<P class=MsoNormal><FONT face="Palatino Linotype" color=navy size=3><SPAN
style="FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: 'Palatino Linotype'"><O:P></O:P>Brian
Berdel</SPAN></FONT><U1:P></U1:P><o:p></o:p></P></DIV><O:P></O:P>
<DIV>
<P class=MsoNormal><FONT face="Palatino Linotype" color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Palatino Linotype'">McMahon
Associates, Inc.</SPAN></FONT><U1:P></U1:P><o:p></o:p></P></DIV><O:P></O:P>
<DIV>
<P class=MsoNormal><FONT face="Palatino Linotype" color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Palatino Linotype'">p:
215.283.9444</SPAN></FONT><U1:P></U1:P><o:p></o:p></P></DIV><O:P></O:P>
<DIV>
<P class=MsoNormal><FONT face="Palatino Linotype" color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Palatino Linotype'"><A
href="http://www.mcmtrans.com">www.mcmtrans.com</A></SPAN></FONT><O:P></O:P><U1:P></U1:P><o:p></o:p></P></DIV></DIV>
<DIV>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT
face="Times New Roman" color=black size=3><SPAN style="FONT-SIZE: 12pt">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal><B><FONT face=Tahoma color=black size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">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:st="on"><st1:PersonName
w:st="on">MapGuide Users Mail
List</st1:PersonName></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><U1:P></U1:P><o:p></o:p></P></DIV>
<P class=MsoNormal><FONT face=Arial color=blue size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial"><O:P></O: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.</SPAN></FONT><O:P></O:P><U1:P></U1:P><o:p></o:p></P>
<P><FONT face=Tahoma color=black size=1><SPAN
style="FONT-SIZE: 7.5pt; FONT-FAMILY: Tahoma"><!-- Converted from text/rtf format -->Andy
</SPAN></FONT><O:P></O:P><U1:P></U1:P><o:p></o:p></P>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT
face="Times New Roman" color=black size=3><SPAN style="FONT-SIZE: 12pt">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><B><FONT face=Tahoma color=black
size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">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:st="on"><st1:PersonName
w:st="on">MapGuide Users Mail
List</st1:PersonName></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><U1:P></U1:P><o:p></o:p></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">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><U1:P></U1:P><o:p></o:p></P>
<DIV>
<DIV>
<P class=MsoNormal><FONT face="Palatino Linotype" color=navy size=3><SPAN
style="FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: 'Palatino Linotype'"><O:P></O:P>Brian
Berdel</SPAN></FONT><U1:P></U1:P><o:p></o:p></P></DIV><O:P></O:P>
<DIV>
<P class=MsoNormal><FONT face="Palatino Linotype" color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Palatino Linotype'">McMahon
Associates, Inc.</SPAN></FONT><U1:P></U1:P><o:p></o:p></P></DIV><O:P></O:P>
<DIV>
<P class=MsoNormal><FONT face="Palatino Linotype" color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Palatino Linotype'">p:
215.283.9444</SPAN></FONT><U1:P></U1:P><o:p></o:p></P></DIV><O:P></O:P>
<DIV>
<P class=MsoNormal><FONT face="Palatino Linotype" color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Palatino Linotype'"><A
href="http://www.mcmtrans.com">www.mcmtrans.com</A></SPAN></FONT><O:P></O:P><U1:P></U1:P><o:p></o:p></P></DIV></DIV>
<DIV>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT
face="Times New Roman" color=black size=3><SPAN style="FONT-SIZE: 12pt">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal><B><FONT face=Tahoma color=black size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">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:st="on"><st1:PersonName
w:st="on">MapGuide Users Mail
List</st1:PersonName></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><U1:P></U1:P><o:p></o:p></P></DIV>
<P class=MsoNormal><FONT face=Arial color=blue size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial"><O:P></O: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.</SPAN></FONT><O:P></O:P><U1:P></U1:P><o:p></o:p></P>
<P><FONT face=Tahoma color=black size=1><SPAN
style="FONT-SIZE: 7.5pt; FONT-FAMILY: Tahoma"><O:P></O:P><!-- Converted from text/rtf format -->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>
<O:P></O:P><U1:P></U1:P><o:p></o:p></P>
<DIV>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT
face="Times New Roman" color=black size=3><SPAN style="FONT-SIZE: 12pt">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><B><FONT face=Tahoma color=black
size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">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:st="on"><st1:PersonName
w:st="on">MapGuide Users Mail
List</st1:PersonName></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><U1:P></U1:P><o:p></o:p></P></DIV>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">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><U1:P></U1:P><o:p></o:p></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><O:P></O:P>Thanks!<O:P></O:P></SPAN></FONT><U1:P></U1:P><o:p></o:p></P>
<DIV>
<DIV>
<P class=MsoNormal><FONT face="Palatino Linotype" color=navy size=3><SPAN
style="FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: 'Palatino Linotype'"><O:P></O:P>Brian
Berdel</SPAN></FONT><U1:P></U1:P><o:p></o:p></P></DIV><O:P></O:P>
<DIV>
<P class=MsoNormal><FONT face="Palatino Linotype" color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Palatino Linotype'">McMahon
Associates, Inc.</SPAN></FONT><U1:P></U1:P><o:p></o:p></P></DIV><O:P></O:P>
<DIV>
<P class=MsoNormal><FONT face="Palatino Linotype" color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Palatino Linotype'">p:
215.283.9444</SPAN></FONT><U1:P></U1:P><o:p></o:p></P></DIV><O:P></O:P>
<DIV>
<P class=MsoNormal><FONT face="Palatino Linotype" color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: 'Palatino Linotype'"><A
href="http://www.mcmtrans.com">www.mcmtrans.com</A></SPAN></FONT><O:P></O:P><U1:P></U1:P><o:p></o:p></P></DIV></DIV><PRE style="TEXT-ALIGN: center" wrap=""><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt"><O:P></O:P><o:p> </o:p></SPAN></FONT></PRE><PRE style="TEXT-ALIGN: center"><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></PRE><PRE style="TEXT-ALIGN: center"><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt">
<HR align=center width="90%" SIZE=4>
</SPAN></FONT></PRE><PRE style="TEXT-ALIGN: center"><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></PRE><PRE style="TEXT-ALIGN: center"><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt"><U1:P> </U1:P><o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt">_______________________________________________<U1:P></U1:P><o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt">mapguide-users mailing list<U1:P></U1:P><o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" color=black 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 face="Courier New" color=black 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 face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt"> <U1:P></U1:P><o:p></o:p></SPAN></FONT></PRE><PRE wrap=""><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt"><U1:P> </U1:P><o:p></o:p></SPAN></FONT></PRE><PRE style="TEXT-ALIGN: center"><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></PRE><PRE style="TEXT-ALIGN: center"><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></PRE><PRE style="TEXT-ALIGN: center"><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt">
<HR align=center width="90%" SIZE=4>
</SPAN></FONT></PRE><PRE style="TEXT-ALIGN: center"><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></PRE><PRE style="TEXT-ALIGN: center"><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt"><U1:P> </U1:P><o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt">_______________________________________________<U1:P></U1:P><o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt">mapguide-users mailing list<U1:P></U1:P><o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" color=black 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 face="Courier New" color=black 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 face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt"> <U1:P></U1:P><o:p></o:p></SPAN></FONT></PRE><PRE wrap=""><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></PRE><PRE style="TEXT-ALIGN: center"><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt">
<HR align=center width="90%" SIZE=4>
</SPAN></FONT></PRE><PRE><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt">_______________________________________________<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt">mapguide-users mailing list<o:p></o:p></SPAN></FONT></PRE><PRE><FONT face="Courier New" color=black 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 face="Courier New" color=black 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 face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt"> <o:p></o:p></SPAN></FONT></PRE></DIV></BODY></HTML>