<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="&#1;" 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 all,<o:p></o:p></p>

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

<p class=MsoNormal>I was the patch provider for the right click mods however I
cannot for the life of me work out what I am doing wrong trying to use the single
rightclick event. Below is the Control.Click code I am using the trigger (left
click) function works fine but the righttrigger (right click) never fires. Can
someone please tell me what I am doing wrong?<o:p></o:p></p>

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

<p class=MsoNormal style='text-autospace:none'>I have registered the rightclick
functions in the navigation control using:<span style='font-size:10.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; <o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>Placemap.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><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Thus the context menu is disabled and double right click
event perform the zoom out function.<o:p></o:p></p>

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

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp; OpenLayers.Control.Click =
OpenLayers.Class(OpenLayers.Control,
{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
defaultHandlerOptions: {<span style='color:#A31515'>'single'</span>: <span
style='color:blue'>true</span>,<span style='color:#A31515'>'double'</span>: <span
style='color:blue'>false</span>,<span style='color:#A31515'>'pixelTolerance'</span>:
0,<span style='color:#A31515'>'stopSingle'</span>: <span style='color:blue'>false</span>,<span
style='color:#A31515'>'stopDouble'</span>: <span style='color:blue'>false</span>},<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
initialize: <span style='color:blue'>function</span>(options) {<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span style='color:blue'>this</span>.handlerOptions =
OpenLayers.Util.extend({}, <span style='color:blue'>this</span>.defaultHandlerOptions);<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
OpenLayers.Control.prototype.initialize.apply(<span style='color:blue'>this</span>,
arguments); <o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span style='color:blue'>this</span>.handler = <span style='color:blue'>new</span>
OpenLayers.Handler.Click(<span style='color:blue'>this</span>, {<span
style='color:#A31515'>'click'</span>: <span style='color:blue'>this</span>.trigger,
<span style='color:#A31515'>'rightclick'</span>: <span style='color:blue'>this</span>.righttrigger},
<span style='color:blue'>this</span>.handlerOptions);<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }, <o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; trigger: <span
style='color:blue'>function</span>(e) {<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
PopupClose(<span style='color:blue'>null</span>);<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span style='color:blue'>var</span> clickpos =
Placemap.getLonLatFromViewPortPx(e.xy).transform(MapProj, DispProj);<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span style='color:blue'>var</span> lstr=<span style='color:#A31515'>''</span>;
<span style='color:blue'>var</span> olays = Placemap.getLayersBy(<span
style='color:#A31515'>'isBaseLayer'</span>, <span style='color:blue'>false</span>);<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span style='color:blue'>for</span>(<span style='color:blue'>var</span> i=0;
i&lt;olays.length; i++) {<span style='color:blue'>if</span>
(olays[i].visibility &amp;&amp; olays[i].displayInLayerSwitcher) lstr +=
olays[i].name + <span style='color:#A31515'>'|'</span>;} <o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span style='color:blue'>if</span> (lstr.length &gt; 0) {
OpenLayers.Element.show(<span style='color:#A31515'>'Reload'</span>);<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span style='color:blue'>var</span> Zoom = Placemap.getZoom();<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span style='color:blue'>if</span> (Zoom &gt; 10) Zoom = 10;<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span style='color:blue'>var</span> dist = parseInt((10 - Zoom) * 10);<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span style='color:blue'>if</span> (dist == 0) dist=1;<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
url = <span style='color:#A31515'>'Places/OutputPlaceGEORSS.aspx?x='</span> +
clickpos.lon + <span style='color:#A31515'>'&amp;y='</span> + clickpos.lat + <span
style='color:#A31515'>'&amp;d='</span> + dist + <span style='color:#A31515'>'&amp;poistr='</span>
+ lstr.substring(0, lstr.length-1);<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span style='color:blue'>var</span> responseObj = <span style='color:blue'>new</span>
OpenLayers.Ajax.Request(url, { method:<span style='color:#A31515'>'get'</span>,
onComplete: <span style='color:blue'>function</span>(transport){<span
style='color:blue'>var</span> response = transport.responseText || <span
style='color:#A31515'>'no response text'</span>; deserialize(response)},
onFailure: <span style='color:blue'>function</span>(){ alert(<span
style='color:#A31515'>'Places get result failed...'</span>);
OpenLayers.Element.hide(<span style='color:#A31515'>'Reload'</span>); }
});&nbsp;&nbsp;&nbsp; <o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
}<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; },<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
righttrigger: <span style='color:blue'>function</span>(e) {<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<span style='color:green'>//&nbsp; var clickpos =
Placemap.getLonLatFromViewPortPx(e.xy).transform(MapProj, DispProj);<o:p></o:p></span></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
alert(<span style='color:#A31515'>'Right click'</span>);<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>&nbsp;&nbsp;&nbsp;
});</span><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>