<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> </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> </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…<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> </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> </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(‘OpenLayers.Control.Navigation’);<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<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> </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> </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> </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> </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 <<a
href="mailto:pascal.darre@laposte.net">pascal.darre@laposte.net</a>><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> var movemap = new
OpenLayers.Control.Navigation({'zoomWheelEnabled':<br>
false});<br>
<br>
map.addControl(movemap);<br>
movemap.activate();<o:p></o:p></p>
</div>
<p class=MsoNormal> 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>
><br>
> Hi you can use :<br>
><br>
> navigationControl.disableZoomWheel();<br>
> navigationControl.enableZoomWheel();<br>
><br>
> Alexandre.<br>
><br>
> 2009/1/16 darrepac <<a href="mailto:pascal.darre@laposte.net">pascal.darre@laposte.net</a>><br>
><br>
>><br>
>> Hi,<br>
>><br>
>> I browse the user list to find how to disable the mouse wheel in the
map.<br>
>> I think I find the way to do it but it doesn't work, here is my code:<br>
>><br>
>> var movemap = new
OpenLayers.Control.Navigation({'zoomWheelEnabled':<br>
>> false});<br>
>><br>
>> map.addControl(movemap);<br>
>> movemap.activate();<br>
>><br>
>> thanks for the help<br>
>> --<br>
>> View this message in context:<br>
>> <a
href="http://n2.nabble.com/Disable-Zoom-wheel-tp2169123p2169123.html"
target="_blank">http://n2.nabble.com/Disable-Zoom-wheel-tp2169123p2169123.html</a><br>
>> 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><br>
>><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><br>
><br>
><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> </o:p></p>
</div>
</body>
</html>