<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
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>
<pre class="moz-signature" cols="72">Regards, Kenneth, GEOGRAF A/S
</pre>
<br>
<br>
Andy Morsell wrote:
<blockquote cite="mid000c01c79b0c$c50fac40$96f1fea9@SPINAJM" type="cite">
<title></title>
<meta http-equiv="Content-Type" content="text/html; ">
<meta content="MSHTML 6.00.6000.16441" name="GENERATOR">
<div dir="ltr" align="left"><span class="375492718-20052007"><font
color="#0000ff" face="Arial" 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" dir="ltr" align="left" lang="en-us">
<hr tabindex="-1"><font face="Tahoma" size="2"><b>From:</b>
<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>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>
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 color="navy" face="Arial" 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 color="navy" face="Arial" 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 color="navy" face="Palatino Linotype"
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 color="navy" face="Palatino Linotype"
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 color="navy" face="Palatino Linotype"
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 color="navy" face="Palatino Linotype"
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" size="2" width="100%"> </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 color="blue" face="Arial" 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" size="2" width="100%"> </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 color="navy" face="Arial" 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 color="navy" face="Arial" 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 color="navy" face="Palatino Linotype"
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 color="navy" face="Palatino Linotype"
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 color="navy" face="Palatino Linotype"
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 color="navy" face="Palatino Linotype"
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" size="2" width="100%"> </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 color="blue" face="Arial" 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" size="2" width="100%"> </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 color="navy" face="Arial" 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 color="navy" face="Arial" size="2"><span
style="font-size: 10pt; color: navy; font-family: Arial;"><O:P></O:P></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; color: navy; font-family: Arial;">Thanks!<O:P></O:P></span></font></p>
<p class="MsoNormal"><font color="navy" face="Arial" 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 color="navy" face="Palatino Linotype"
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 color="navy" face="Palatino Linotype"
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 color="navy" face="Palatino Linotype"
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 color="navy" face="Palatino Linotype"
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 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>
<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>