<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16441" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV dir=ltr align=left><SPAN class=375492718-20052007><FONT face=Arial
color=#0000ff size=2>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?</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>Kenneth<BR><B>Sent:</B> Sunday, May 20, 2007 11:18 AM<BR><B>To:</B> MapGuide
Users Mail List<BR><B>Subject:</B> Re: [mapguide-users] Navigation Example
.NET<BR></FONT><BR></DIV>
<DIV></DIV>If you modify the layer visibility, using serverside code, it will
not work correctly with the AJAX viewer.<BR>The problem is that the AJAX 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><PRE class=moz-signature cols="72">Regards. Kenneth, GEOGRAF A/S
</PRE><BR><BR>Berdel, Brian wrote:
<BLOCKQUOTE
cite=midC1C7B6846221DF4A903A1433293BBD4314086C@fwex02.home.mcmtrans.com
type="cite">
<META content="Microsoft Word 11 (filtered medium)" 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="PersonName"
namespaceuri="urn:schemas-microsoft-com:office:smarttags"><!--[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; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; 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; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman"; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto
}
SPAN.EmailStyle18 {
        COLOR: #1f497d; FONT-FAMILY: Calibri; mso-style-type: personal
}
SPAN.EmailStyle19 {
        COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal
}
SPAN.EmailStyle20 {
        COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal
}
SPAN.EmailStyle21 {
        COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</O:SMARTTAGTYPE>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Cool, thanks! I’ll
give it a try. <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=navy size=3><SPAN
style="FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: 'Palatino Linotype'">Brian
Berdel</SPAN></FONT><FONT color=navy><SPAN
style="COLOR: navy"><O:P></O:P></SPAN></FONT></P></DIV>
<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><FONT color=navy><SPAN
style="COLOR: navy"><O:P></O:P></SPAN></FONT></P></DIV>
<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><FONT color=navy><SPAN
style="COLOR: navy"><O:P></O:P></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Palatino Linotype" color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; 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
face="Times New Roman" 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 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
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>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 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>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><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">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></P>
<P><FONT face=Tahoma size=1><SPAN
style="FONT-SIZE: 7.5pt; FONT-FAMILY: Tahoma"><!-- Converted from text/rtf format -->Andy
</SPAN></FONT><O:P></O:P></P>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT
face="Times New Roman" 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
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
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> Friday, May 18,
2007 9:28 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><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></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=navy size=3><SPAN
style="FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: 'Palatino Linotype'">Brian
Berdel</SPAN></FONT><FONT color=navy><SPAN
style="COLOR: navy"><O:P></O:P></SPAN></FONT></P></DIV>
<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><FONT color=navy><SPAN
style="COLOR: navy"><O:P></O:P></SPAN></FONT></P></DIV>
<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><FONT color=navy><SPAN
style="COLOR: navy"><O:P></O:P></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Palatino Linotype" color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; 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
face="Times New Roman" 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 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
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>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 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>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><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">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></P>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><O:P></O:P></SPAN></FONT></P></DIV>
<P><FONT face=Tahoma size=1><SPAN
style="FONT-SIZE: 7.5pt; FONT-FAMILY: Tahoma"><!-- 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></P>
<DIV>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT
face="Times New Roman" 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
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
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> Friday, May 18,
2007 8:00 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> [mapguide-users] Navigation
Example .NET</SPAN></FONT><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></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">Thanks!<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=navy size=3><SPAN
style="FONT-SIZE: 12pt; COLOR: navy; FONT-FAMILY: 'Palatino Linotype'">Brian
Berdel</SPAN></FONT><FONT color=navy><SPAN
style="COLOR: navy"><O:P></O:P></SPAN></FONT></P></DIV>
<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><FONT color=navy><SPAN
style="COLOR: navy"><O:P></O:P></SPAN></FONT></P></DIV>
<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><FONT color=navy><SPAN
style="COLOR: navy"><O:P></O:P></SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Palatino Linotype" color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; 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>
<P><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><O:P></O:P></SPAN></FONT></P></DIV><PRE wrap=""><HR width="90%" SIZE=4>
_______________________________________________
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>