<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<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)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@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";}
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;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
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 lang=PT link=blue vlink=purple>

<div class=Section1>

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

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

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Which controls do you have on your map?<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>How are you initializing the map?<o:p></o:p></span></p>

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

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>That could be happening because there are some controls that are
adding a new Navigation control to your map&#8230;<o:p></o:p></span></p>

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

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>If is it the only way you have to solve that problem is:<o:p></o:p></span></p>

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

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>controls = map.getControlsByClass(&#8216;OpenLayers.Control.Navigation&#8217;);<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>for(var I = 0; i&lt;controls.length; ++i)<o:p></o:p></span></p>

<p class=MsoNormal style='text-indent:35.4pt'><span lang=EN-US
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>controls.disableZoomWheel();<o:p></o:p></span></p>

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

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

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>André Matos<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><a href="http://maps.sapo.pt">http://maps.sapo.pt</a><o:p></o:p></span></p>

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

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

<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"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> users-bounces@openlayers.org
[mailto:users-bounces@openlayers.org] <b>On Behalf Of </b>Alexandre Ardhuin<br>
<b>Sent:</b> sexta-feira, 16 de Janeiro de 2009 16:53<br>
<b>To:</b> darrepac<br>
<b>Cc:</b> users@openlayers.org<br>
<b>Subject:</b> Re: [OpenLayers-Users] Disable Zoom wheel<o:p></o:p></span></p>

</div>

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

<p class=MsoNormal style='margin-bottom:12.0pt'>Hi,<br>
<br>
By changing movemap in navigationControl, this should be OK.<br>
<br>
Alexandre<br>
<br>
<o:p></o:p></p>

<div>

<p class=MsoNormal>2009/1/16 darrepac &lt;<a
href="mailto:pascal.darre@laposte.net">pascal.darre@laposte.net</a>&gt;<o:p></o:p></p>

<p class=MsoNormal><br>
Hi<br>
<br>
Thanks for your help<br>
<br>
I did this:<o:p></o:p></p>

<div>

<p class=MsoNormal>&nbsp; &nbsp; &nbsp;var movemap = new
OpenLayers.Control.Navigation({'zoomWheelEnabled':<br>
false});<br>
<br>
&nbsp; &nbsp; &nbsp;map.addControl(movemap);<br>
&nbsp; &nbsp; &nbsp;movemap.activate();<o:p></o:p></p>

</div>

<p class=MsoNormal>&nbsp; &nbsp;&nbsp; movemap.disableZoomWheel();<br>
<br>
and the wheel still work.... :(<o:p></o:p></p>

<div>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'><br>
<br>
<br>
<br>
<br>
Alexandre Ardhuin wrote:<br>
&gt;<br>
&gt; Hi you can use :<br>
&gt;<br>
&gt; navigationControl.disableZoomWheel();<br>
&gt; navigationControl.enableZoomWheel();<br>
&gt;<br>
&gt; Alexandre.<br>
&gt;<br>
&gt; 2009/1/16 darrepac &lt;<a href="mailto:pascal.darre@laposte.net">pascal.darre@laposte.net</a>&gt;<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; I browse the user list to find how to disable the mouse wheel in the
map.<br>
&gt;&gt; I think I find the way to do it but it doesn't work, here is my code:<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; &nbsp; &nbsp;var movemap = new
OpenLayers.Control.Navigation({'zoomWheelEnabled':<br>
&gt;&gt; false});<br>
&gt;&gt;<br>
&gt;&gt; &nbsp; &nbsp; &nbsp;map.addControl(movemap);<br>
&gt;&gt; &nbsp; &nbsp; &nbsp;movemap.activate();<br>
&gt;&gt;<br>
&gt;&gt; thanks for the help<br>
&gt;&gt; --<br>
&gt;&gt; View this message in context:<br>
&gt;&gt; <a
href="http://n2.nabble.com/Disable-Zoom-wheel-tp2169123p2169123.html"
target="_blank">http://n2.nabble.com/Disable-Zoom-wheel-tp2169123p2169123.html</a><br>
&gt;&gt; Sent from the OpenLayers Users mailing list archive at Nabble.com.<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Users mailing list<br>
&gt;&gt; <a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
&gt;&gt; <a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
&gt;&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
&gt; <a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
&gt;<br>
&gt;<o:p></o:p></p>

</div>

</div>

<p class=MsoNormal><span style='color:#888888'>--<br>
View this message in context: <a
href="http://n2.nabble.com/Disable-Zoom-wheel-tp2169123p2169239.html"
target="_blank">http://n2.nabble.com/Disable-Zoom-wheel-tp2169123p2169239.html</a></span><o:p></o:p></p>

<div>

<div>

<p class=MsoNormal>Sent from the OpenLayers Users mailing list archive at
Nabble.com.<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><o:p></o:p></p>

</div>

</div>

</div>

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

</div>

</body>

</html>