<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:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:D="DAV:" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<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:"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:"Lucida Handwriting";
        panose-1:3 1 1 1 1 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-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-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
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=EN-AU link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal>Hi,<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I have spent some time looking into this and have found a
problem. I am a little confused about the best solution but here is the bug
report:<o:p></o:p></p>
<p class=MsoNormal>When you have add a navigation control and disable the mouse
wheel using this (the rightclick handler makes no difference to the problem):<o:p></o:p></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>map.addControl(<span
style='color:blue'>new</span> OpenLayers.Control.Navigation({ <span
style='color:#A31515'>'zoomWheelEnabled'</span>: <span style='color:blue'>false</span>,
<span style='color:#A31515'>'handleRightClicks'</span>: <span style='color:
blue'>true</span> }));<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>Then
you load an EditingToolbar using:<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>map.addControl(<span style='color:blue'>new</span>
OpenLayers.Control.EditingToolbar(vectors));<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>The zoomWheel becomes enables again on the map. I
did some experiements and did not load the EditingToolbar (the wheel was
disabled as expected) and added a button on a test page to enable the
EditingToolbar and as soon as it is enabled to the zoomWheel becomes active on
the map.<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>I looked into the EditingToolbar.js file and found this
section which I think is causing the problem:<o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoNormal> initialize: function(layer, options) {<o:p></o:p></p>
<p class=MsoNormal>
OpenLayers.Control.Panel.prototype.initialize.apply(this, [options]);<o:p></o:p></p>
<p class=MsoNormal>
<o:p></o:p></p>
<p class=MsoNormal><span style='color:red'>
this.addControls(<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:red'>
[ new OpenLayers.Control.Navigation() ]<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:red'>
); <o:p></o:p></span></p>
<p class=MsoNormal> var controls = [<o:p></o:p></p>
<p class=MsoNormal> new
OpenLayers.Control.DrawFeature(layer, OpenLayers.Handler.Point,
{'displayClass': 'olControlDrawFeaturePoint'}),<o:p></o:p></p>
<p class=MsoNormal> new
OpenLayers.Control.DrawFeature(layer, OpenLayers.Handler.Path, {'displayClass':
'olControlDrawFeaturePath'}),<o:p></o:p></p>
<p class=MsoNormal> new
OpenLayers.Control.DrawFeature(layer, OpenLayers.Handler.Polygon,
{'displayClass': 'olControlDrawFeaturePolygon'})<o:p></o:p></p>
<p class=MsoNormal> ];<o:p></o:p></p>
<p class=MsoNormal> for (var i=0,
len=controls.length; i<len; i++) {<o:p></o:p></p>
<p class=MsoNormal>
controls[i].featureAdded = function(feature) { feature.state =
OpenLayers.State.INSERT; };<o:p></o:p></p>
<p class=MsoNormal> }<o:p></o:p></p>
<p class=MsoNormal>
this.addControls(controls);<o:p></o:p></p>
<p class=MsoNormal> },<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>It appears we are basically reloading the Navigation control
using default settings and thus enabling the zoomWheel. Interesting
enough the rightClick zoom out function still works so this has not been
overridden. I am unsure how to proceed with this bug and was thinking that the
best solution is to look into the controls array to see if Navigation is
already loaded and not load it again, however I wonder if the EditingToolbar.js
should even be loading the Navigation control.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>PS: It does not seem to matter which order you load the
controls as the nor does it matter if you turn off the vectors overlay the
zoomWheel just continues to work. <o:p></o:p></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'>Regards<br>
</span><span style='font-size:16.0pt;font-family:"Lucida Handwriting";
color:navy'>David Martin</span><span style='font-size:10.0pt;font-family:"Lucida Handwriting";
color:navy'><br>
</span><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Managing Director<br>
I.T. Beyond Pty Ltd</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 width=228
style='width:171.0pt'>
<tr>
<td width=48 valign=top style='width:36.0pt;padding:0cm 0cm 0cm 0cm'>
<p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
color:navy'>Postal:</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
</td>
<td width=180 style='width:135.0pt;padding:0cm 0cm 0cm 0cm'>
<p class=MsoNormal align=right style='mso-margin-top-alt:auto;margin-right:
9.0pt;mso-margin-bottom-alt:auto;text-align:right'><span style='font-size:
7.5pt;font-family:"Arial","sans-serif";color:navy'>PO BOX 967<br>
HILLARYS WA 6923</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width=48 style='width:36.0pt;padding:0cm 0cm 0cm 0cm'>
<p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
color:navy'>Ph:</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
</td>
<td width=180 style='width:135.0pt;padding:0cm 0cm 0cm 0cm'>
<p class=MsoNormal align=right style='mso-margin-top-alt:auto;margin-right:
9.0pt;mso-margin-bottom-alt:auto;text-align:right'><span style='font-size:
7.5pt;font-family:"Arial","sans-serif";color:navy'>(08) 9403 3737 </span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width=48 style='width:36.0pt;padding:0cm 0cm 0cm 0cm'>
<p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
color:navy'>Mobile:</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
</td>
<td width=180 style='width:135.0pt;padding:0cm 0cm 0cm 0cm'>
<p class=MsoNormal align=right style='mso-margin-top-alt:auto;margin-right:
9.0pt;mso-margin-bottom-alt:auto;text-align:right'><span style='font-size:
7.5pt;font-family:"Arial","sans-serif";color:navy'>0417 677 275 </span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width=48 style='width:36.0pt;padding:0cm 0cm 0cm 0cm'>
<p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
color:navy'>Fax:</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
</td>
<td width=180 style='width:135.0pt;padding:0cm 0cm 0cm 0cm'>
<p class=MsoNormal align=right style='mso-margin-top-alt:auto;margin-right:
9.0pt;mso-margin-bottom-alt:auto;text-align:right'><span style='font-size:
7.5pt;font-family:"Arial","sans-serif";color:navy'>(08) 9403 3738</span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width=48 style='width:36.0pt;padding:0cm 0cm 0cm 0cm'>
<p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
color:navy'>Skype:</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
</td>
<td width=180 style='width:135.0pt;padding:0cm 0cm 0cm 0cm'>
<p class=MsoNormal align=right style='mso-margin-top-alt:auto;margin-right:
9.0pt;mso-margin-bottom-alt:auto;text-align:right'><span style='font-size:
7.5pt;font-family:"Arial","sans-serif";color:navy'>itbeyond_david</span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
</td>
</tr>
</table>
<div class=MsoNormal align=center style='mso-margin-top-alt:4.5pt;margin-right:
0cm;margin-bottom:4.5pt;margin-left:0cm;text-align:center'><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'>
<hr size=2 width="80%" align=center>
</span></div>
<p class=MsoNormal align=center style='margin:4.5pt;text-align:center'><span
style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'>Check out
our websites: <a href="http://www.exploroz.com/"
title="http://www.exploroz.com/"><span style='color:blue;text-decoration:none'>www.ExplorOz.com</span></a>
and <a href="http://www.itbeyond.com.au/" title="http://www.itbeyond.com.au/"><span
style='color:blue;text-decoration:none'>www.itbeyond.com.au</span></a></span><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>
<div class=MsoNormal align=center style='text-align:center'><span
style='font-size:12.0pt;font-family:"Times New Roman","serif"'>
<hr size=2 width="100%" align=center>
</span></div>
</div>
</body>
</html>