<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body><BR>I have found this PATCH some how problematic, under the .NET environment, as for:<BR>
<OL>
<LI>
<DIV>after i change my 'viewer-files' not all the legend's symbols are shown, instead I get '?' marks.</DIV></LI>
<LI>
<DIV>when trying to add an ortophoto layer to the map, with MG Studio, layer is not shown on preview panel. when i change 'viewer-files' files back to the original, all works fine.<BR></DIV></LI></OL>
<BLOCKQUOTE>
<HR id=EC_stopSpelling>
Subject: RE: [mapguide-users] patch for Mouse WheelZoom, set scale and image on loading map in Ajax<BR>Date: Mon, 7 May 2007 10:35:52 +0200<BR>From: ivan.milicevic@supranet.hr<BR>To: mapguide-users@lists.osgeo.org<BR><BR>
<META content="Microsoft SafeHTML" name=Generator>
<STYLE>
.ExternalClass EC_p.MsoNormal, .ExternalClass EC_li.MsoNormal, .ExternalClass EC_div.MsoNormal
{margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass EC_a:link, .ExternalClass EC_span.MsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass EC_a:visited, .ExternalClass EC_span.MsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass p
{margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:'Times New Roman','serif';}
.ExternalClass EC_span.EmailStyle19
{font-family:'Calibri','sans-serif';color:#1F497D;}
.ExternalClass .EC_MsoChpDefault
{font-size:10.0pt;}
@page Section1
{size:612.0pt 792.0pt;}
.ExternalClass EC_div.Section1
{page:Section1;}
</STYLE>
<DIV class=EC_Section1>
<P class=EC_MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">This is very nice! Thanks a lot!</SPAN></P>
<P class=EC_MsoNormal><SPAN style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"> </SPAN></P>
<DIV>
<DIV style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<P class=EC_MsoNormal><B><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> mapguide-users-bounces@lists.osgeo.org [mailto:mapguide-users-bounces@lists.osgeo.org] <B>On Behalf Of </B>web<BR><B>Sent:</B> Monday, May 07, 2007 9:18 AM<BR><B>To:</B> MapGuide Users Mail List<BR><B>Subject:</B> [mapguide-users] patch for Mouse WheelZoom,set scale and image on loading map in Ajax</SPAN></P></DIV></DIV>
<P class=EC_MsoNormal> </P>
Hi all,<BR>just wanted to add somethig to the discussion of <EM>Mon Apr 2 17:49:22 EDT 2007.</EM><I><BR></I><BR>Reference: <A>http://lists.osgeo.org/pipermail/mapguide-internals/2007-April/001122.html</A><BR><BR>Display the rotating icon sounds good when the page is loading. I've added an effect which blurs the map (with a transparent div) when loading. With the rotating arrow, this is a nice effect.<BR><BR>All you have to do is opening the [ajaxmappane.templ]<BR><BR>About line 3047:<BR>
<div><BR> <div id="mapSpace"><BR> <div id="tilePlanes"><BR> </div><BR> <div id="img1" style="overflow: hidden;"><BR> <img class="mapImage" id="mapImage1" style="visibility: hidden;" ><BR> <img class="mapImage" id="mapImage2" style="visibility: hidden;" ><BR> </div><BR> <!-- Setting a transparent div to display when the page is loading, with the logo rotating --> <BR> <div id="maskTransp" style="display:none; background-color:#FFFFFF; position:absolute; width:100%%; top:0; left:0; height:100%%; filter:alpha(opacity=60); -moz-opacity:0.6; opacity: 0.6; z-index: 1;" ></div><BR> </div><BR> <div id="overlay" style="display:none; visibility: hidden; position: absolute; top: 0px; left: 0px;"></div><BR> </div><BR><BR><BR>then, about line 1360:<BR><BR>else<BR> { <BR> var frmParent = parent.frames ["tbFrame"];<BR> var objDivRefresh = frmParent.document.getElementById("divRefresh");<BR> var objDivTransparent = document.getElementById("maskTransp");<BR> <BR> if(objDivRefresh!=null){ objDivRefresh.style.display='block'; }<BR> if(objDivTransparent!=null){ objDivTransparent.style.display='block'; }<BR> panX1 = extX1 = resp.lowerLeft.X;<BR> panY1 = extY1 = resp.upperRight.Y;<BR> panX2 = extX2 = resp.upperRight.X;<BR><BR><BR>and about line<BR><BR>imgdiv.style.display = "block";<BR> if(safari)<BR> curimg = (curimg == "mapImage1"? "mapImage2": "mapImage1");<BR> var frmParent = parent.frames ["tbFrame"];<BR> var objDivRefresh = frmParent.document.getElementById("divRefresh");<BR> var objDivTransparent = document.getElementById("maskTransp");<BR> if(objDivRefresh!=null){ objDivRefresh.style.display='none'; }<BR> if(objDivTransparent!=null){ objDivTransparent.style.display='none'; }<BR> return false;<BR>}<BR>function OnAlternateImageLoaded() {<BR><BR><BR><BR><BR>For the rotating arrow, do not forget, if it is not done, to:<BR>Set the div in toolbar.templ<BR><BR>about line 232<BR><BR><body class="Toolbar" onload="InitDocument()" leftmargin=10 topmargin=0 rightmargin=0 bottommargin=0 marginwidth=0><BR> <div id="divRefresh" name="divRefresh" class="cssRefresh"><img src="../phpviewersample/images/spinner_notext.gif"><img src="../phpviewersample/images/text_spinner.gif"></div><BR> <span id="ToolbarContent"><td></td></span><BR> <div class="TextMetricsDiv" id="TextMetricsDiv"><span class="TextMetrics" id="Metrics"></span></div><BR><BR><BR>and in the css section:<BR>
div.cssRefresh<BR> {<BR> position: absolute; <BR> right:0px;<BR> top:0px; <BR> <BR> }<BR><BR><BR>Rémy<BR></DIV></BLOCKQUOTE><br /><hr />Explore the seven wonders of the world <a href='http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE' target='_new'>Learn more!</a></body>
</html>