<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: OpenLayers disable mouse wheel on zoom</title>
	<atom:link href="http://www.stoimen.com/blog/2009/06/20/openlayers-disable-mouse-wheel-on-zoom/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stoimen.com/blog/2009/06/20/openlayers-disable-mouse-wheel-on-zoom/</link>
	<description>about web development</description>
	<lastBuildDate>Fri, 03 Feb 2012 22:35:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Shri</title>
		<link>http://www.stoimen.com/blog/2009/06/20/openlayers-disable-mouse-wheel-on-zoom/comment-page-1/#comment-13379</link>
		<dc:creator>Shri</dc:creator>
		<pubDate>Tue, 14 Sep 2010 15:56:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=603#comment-13379</guid>
		<description>Just to be clear to other users, who might not be programmers, let me add this:

Look at this line:
&lt;pre lang=&quot;javascript&quot;&gt;
  controls.disableZoomWheel();
&lt;/pre&gt;
It should be:
&lt;pre lang=&quot;javascript&quot;&gt;
  controls[i].disableZoomWheel();
&lt;/pre&gt;

PS: Also make sure your variable are all the same case.  ( for var i=0, ...)</description>
		<content:encoded><![CDATA[<p>Just to be clear to other users, who might not be programmers, let me add this:</p>
<p>Look at this line:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">  controls.<span style="color: #660066;">disableZoomWheel</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>It should be:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">  controls<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">disableZoomWheel</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>PS: Also make sure your variable are all the same case.  ( for var i=0, &#8230;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ch</title>
		<link>http://www.stoimen.com/blog/2009/06/20/openlayers-disable-mouse-wheel-on-zoom/comment-page-1/#comment-12984</link>
		<dc:creator>ch</dc:creator>
		<pubDate>Thu, 06 May 2010 15:35:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=603#comment-12984</guid>
		<description>I had to add the code for removing the zoomWheel at the end, after adding all other controls to the map. It seems that other controls are adding NavigationControl too.

var navCtrls = map.getControlsByClass(&#039;OpenLayers.Control.Navigation&#039;);
for (var i = 0; i &lt; navCtrls.length; i++) {
   navCtrls[i].disableZoomWheel();
}</description>
		<content:encoded><![CDATA[<p>I had to add the code for removing the zoomWheel at the end, after adding all other controls to the map. It seems that other controls are adding NavigationControl too.</p>
<p>var navCtrls = map.getControlsByClass(&#8216;OpenLayers.Control.Navigation&#8217;);<br />
for (var i = 0; i &lt; navCtrls.length; i++) {<br />
   navCtrls[i].disableZoomWheel();<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shaun</title>
		<link>http://www.stoimen.com/blog/2009/06/20/openlayers-disable-mouse-wheel-on-zoom/comment-page-1/#comment-12945</link>
		<dc:creator>shaun</dc:creator>
		<pubDate>Sat, 01 May 2010 05:08:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=603#comment-12945</guid>
		<description>I needed to disable all controls for an OpenLayers google map without much success, but the way to do it seems to be creating the map with an empty control array like so: 

map = new OpenLayers.Map(&quot;divMap&quot;, { controls: [] })

You could then add any specific controls required.</description>
		<content:encoded><![CDATA[<p>I needed to disable all controls for an OpenLayers google map without much success, but the way to do it seems to be creating the map with an empty control array like so: </p>
<p>map = new OpenLayers.Map(&#8220;divMap&#8221;, { controls: [] })</p>
<p>You could then add any specific controls required.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stoimen</title>
		<link>http://www.stoimen.com/blog/2009/06/20/openlayers-disable-mouse-wheel-on-zoom/comment-page-1/#comment-3830</link>
		<dc:creator>Stoimen</dc:creator>
		<pubDate>Tue, 21 Jul 2009 07:29:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=603#comment-3830</guid>
		<description>Strange enough but it doesn&#039;t work for me! I tried with that code before and it wasn&#039;t working again. After applying the code I mention in the code everything was just fine.

greetings</description>
		<content:encoded><![CDATA[<p>Strange enough but it doesn&#8217;t work for me! I tried with that code before and it wasn&#8217;t working again. After applying the code I mention in the code everything was just fine.</p>
<p>greetings</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lars Knickrehm</title>
		<link>http://www.stoimen.com/blog/2009/06/20/openlayers-disable-mouse-wheel-on-zoom/comment-page-1/#comment-3747</link>
		<dc:creator>Lars Knickrehm</dc:creator>
		<pubDate>Fri, 17 Jul 2009 17:15:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=603#comment-3747</guid>
		<description>You should use the following code to disable the mouse&#039;s scoll wheel:

var movemap = new OpenLayers.Control.Navigation({zoomWheelEnabled : false});

zoomWheelEnabled is not a JS sztring and it works like a charm ;) ...</description>
		<content:encoded><![CDATA[<p>You should use the following code to disable the mouse&#8217;s scoll wheel:</p>
<p>var movemap = new OpenLayers.Control.Navigation({zoomWheelEnabled : false});</p>
<p>zoomWheelEnabled is not a JS sztring and it works like a charm <img src='http://www.stoimen.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  &#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stoimen</title>
		<link>http://www.stoimen.com/blog/2009/06/20/openlayers-disable-mouse-wheel-on-zoom/comment-page-1/#comment-3330</link>
		<dc:creator>Stoimen</dc:creator>
		<pubDate>Mon, 06 Jul 2009 19:17:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=603#comment-3330</guid>
		<description>Yes I&#039;m sure it&#039;s working and I see it working on your site! I don&#039;t understand where the problem is!? If you have any doubt, please provide some source code and I&#039;ll be glad to help!

Greetings</description>
		<content:encoded><![CDATA[<p>Yes I&#8217;m sure it&#8217;s working and I see it working on your site! I don&#8217;t understand where the problem is!? If you have any doubt, please provide some source code and I&#8217;ll be glad to help!</p>
<p>Greetings</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frédéric</title>
		<link>http://www.stoimen.com/blog/2009/06/20/openlayers-disable-mouse-wheel-on-zoom/comment-page-1/#comment-3324</link>
		<dc:creator>Frédéric</dc:creator>
		<pubDate>Mon, 06 Jul 2009 15:13:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.stoimen.com/blog/?p=603#comment-3324</guid>
		<description>Are you sure that is correct?

I put your code in my map, and the zoom wheel is always enabled!

look: http://www.trouvetongull.info/carte/

what is wrong?

bye,
fred</description>
		<content:encoded><![CDATA[<p>Are you sure that is correct?</p>
<p>I put your code in my map, and the zoom wheel is always enabled!</p>
<p>look: <a href="http://www.trouvetongull.info/carte/" rel="nofollow">http://www.trouvetongull.info/carte/</a></p>
<p>what is wrong?</p>
<p>bye,<br />
fred</p>
]]></content:encoded>
	</item>
</channel>
</rss>

