<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> </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> </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'> div.cssRefresh<br>
{<br>
position: absolute; <br>
right:10px;<br>
top:4px; <br>
}</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'><body class="Toolbar"
onload="InitDocument()" leftmargin=10 topmargin=0 rightmargin=0
bottommargin=0 marginwidth=0><br>
<b> <div id="divRefresh"
name="divRefresh" class="cssRefresh"><img alt="loading"
src="../phpviewersample/images/common/rotating_arrow.gif"></div></b><br>
<span
id="ToolbarContent"><td></td></span><br>
<div class="TextMetricsDiv"
id="TextMetricsDiv"><span class="TextMetrics"
id="Metrics"></span></div><br>
</body></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'> if(requestObj.responseXML)<br>
{<br>
var resp =
ParseEnvelope(requestObj.responseXML.documentElement);<br>
if(resp == null)<br>
RequestFailed("Invalid
XML response");<br>
else<br>
{<br>
<b> var frmParent =
parent.frames ["tbFrame"];<br>
var objDivRefresh =
frmParent.document.getElementById("divRefresh");<br>
if(objDivRefresh!=null){ objDivRefresh.style.display='block'; }<br>
</b> <br>
panX1 =
extX1 = resp.lowerLeft.X;</span><br>
...<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'> if(safari)<br>
curimg = (curimg ==
"mapImage1"? "mapImage2": "mapImage1");<br>
<br>
<b> var frmParent = parent.frames ["tbFrame"];<br>
var objDivRefresh =
frmParent.document.getElementById("divRefresh");<br>
if(objDivRefresh!=null){
objDivRefresh.style.display='none'; }<br>
</b> <br>
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>