<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-2">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>

<meta name=Generator content="Microsoft Word 12 (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]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
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 bgcolor=white lang=HR link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>You're the man!<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif";color:windowtext'>From:</span></b><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>
mapguide-users-bounces@lists.osgeo.org
[mailto:mapguide-users-bounces@lists.osgeo.org] <b>On Behalf Of </b>José Manuel
Cerrejón González<br>
<b>Sent:</b> Friday, March 30, 2007 1:36 PM<br>
<b>To:</b> mapguide-users@lists.osgeo.org<br>
<b>Subject:</b> [mapguide-users] patch for Mouse Wheel Zoom, set scale and
image on loading map in Ajax.<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<div>

<p class=MsoNormal>I've try to post the code in the internal list, but I don't
how to register. Anyway here the code. I've applied the changes on the 1.0.2,
but in the last version works fine.<br>
<br>
Somebody who know how to do it, please e-mail me.<br>
<br>
This patch use javascript to zoom with the wheel mouse, like in AutoCAD.<br>
<br>
Another patch is to input in the scale bar, a scale manually. <br>
<br>
You can see an icon in the toolbar when the map is loading.<br>
<br>
All these changes in action <a
href="http://wms.diphuelva.es/mapguide/phpviewersample/index.php">here</a>.
Click on the help icon to see more features.<o:p></o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><br>
E-mail me with any problem.<br>
<br>
Thank you.<o:p></o:p></p>

<div class=MsoNormal align=center style='text-align:center'>

<hr size=2 width="100%" align=center>

</div>

<p class=MsoNormal><br>
<b><span style='font-size:18.0pt'>[toolbar.templ]<br>
<br>
</span></b>In css: <o:p></o:p></p>

<div class=MsoNormal align=center style='text-align:center'>

<hr size=2 width="100%" align=center>

</div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span
style='font-size:10.0pt'>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; div.cssRefresh<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; position: absolute; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; right:10px;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
top:4px;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }</span></b><o:p></o:p></p>

<div class=MsoNormal align=center style='text-align:center'>

<hr size=2 width="100%" align=center>

</div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>The
body seems like this. Rotating_arrow.gif is the image. You can design it or use
the attached:<o:p></o:p></p>

<div class=MsoNormal align=center style='text-align:center'>

<hr size=2 width="100%" align=center>

</div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:10.0pt'>&lt;body class=&quot;Toolbar&quot;
onload=&quot;InitDocument()&quot; leftmargin=10 topmargin=0 rightmargin=0
bottommargin=0 marginwidth=0&gt;<br>
<b>&nbsp;&nbsp;&nbsp; &lt;div id=&quot;divRefresh&quot;
name=&quot;divRefresh&quot; class=&quot;cssRefresh&quot;&gt;&lt;img alt=&quot;loading&quot;
src=&quot;../phpviewersample/images/common/rotating_arrow.gif&quot;&gt;&lt;/div&gt;</b><br>
&nbsp;&nbsp;&nbsp; &lt;span
id=&quot;ToolbarContent&quot;&gt;&lt;td&gt;&lt;/td&gt;&lt;/span&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;div class=&quot;TextMetricsDiv&quot;
id=&quot;TextMetricsDiv&quot;&gt;&lt;span class=&quot;TextMetrics&quot;
id=&quot;Metrics&quot;&gt;&lt;/span&gt;&lt;/div&gt;<br>
&nbsp; &lt;/body&gt;</span><o:p></o:p></p>

<div class=MsoNormal align=center style='text-align:center'>

<hr size=2 width="100%" align=center>

</div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span
style='font-size:18.0pt'>[ajaxmappane.templ]<br>
<br>
</span></b>About line 1350:<o:p></o:p></p>

<div class=MsoNormal align=center style='text-align:center'>

<hr size=2 width="100%" align=center>

</div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:10.0pt'>&nbsp; if(requestObj.responseXML)<br>
&nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var resp =
ParseEnvelope(requestObj.responseXML.documentElement);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(resp == null)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RequestFailed(&quot;Invalid
XML response&quot;);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>
<b>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; var frmParent =
parent.frames [&quot;tbFrame&quot;];<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; var objDivRefresh =
frmParent.document.getElementById(&quot;divRefresh&quot;);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
if(objDivRefresh!=null){&nbsp; objDivRefresh.style.display='block'; }<br>
</b>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; panX1 =
extX1 = resp.lowerLeft.X;</span><br>
&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ...<o:p></o:p></p>

<div class=MsoNormal align=center style='text-align:center'>

<hr size=2 width="100%" align=center>

</div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Line
1463 after the changes:<o:p></o:p></p>

<div class=MsoNormal align=center style='text-align:center'>

<hr size=2 width="100%" align=center>

</div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:10.0pt'>&nbsp;&nbsp;&nbsp; if(safari)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; curimg = (curimg ==
&quot;mapImage1&quot;? &quot;mapImage2&quot;: &quot;mapImage1&quot;);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
<b>&nbsp;&nbsp;&nbsp; var frmParent = parent.frames [&quot;tbFrame&quot;];<br>
&nbsp;&nbsp;&nbsp; var objDivRefresh =
frmParent.document.getElementById(&quot;divRefresh&quot;);<br>
&nbsp;&nbsp;&nbsp; if(objDivRefresh!=null){&nbsp;&nbsp;&nbsp;
objDivRefresh.style.display='none'; }<br>
</b>&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; return false;<br>
}</span><o:p></o:p></p>

<div class=MsoNormal align=center style='text-align:center'>

<hr size=2 width="100%" align=center>

</div>

<p class=MsoNormal><b><span style='font-size:13.5pt'>Jose Manuel Cerrejon
Gonzalez<br>
<a href="mailto:jose.cerrejon@mapas-sll.com">jose.cerrejon@mapas-sll.com</a> | <a
href="mailto:gis@mapas-sll.com">gis@mapas-sll.com</a><i><br>
I+D<br>
<a href="http://mapas-sll.com">MAPAS SLL</a></i></span></b> <o:p></o:p></p>

</div>

</div>

</body>

</html>