<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:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" 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:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" 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:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" 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)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
h5
        {mso-style-priority:9;
        mso-style-link:"Heading 5 Char";
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:10.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;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.5pt;
        font-family:Consolas;}
span.Heading5Char
        {mso-style-name:"Heading 5 Char";
        mso-style-priority:9;
        mso-style-link:"Heading 5";
        font-family:"Times New Roman","serif";
        font-weight:bold;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:Consolas;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@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-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoPlainText><span style='font-family:"Calibri","sans-serif"'>Thanks
for the help Andreas</span>,<o:p></o:p></p>

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

<p class=MsoPlainText><span style='font-family:"Calibri","sans-serif"'>I tried
using setTimer , but this resulted in intermittent results (depending on the
timing of each line draw I believe) and a flickering circle in all broswers.<o:p></o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Calibri","sans-serif"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Calibri","sans-serif"'>A simplified
version of the code I am using is as below (I have omitted the map with a
toolbar). &nbsp;I hope it isn&#8217;t too convoluted!<o:p></o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Calibri","sans-serif"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Calibri","sans-serif"'>When
using IE and using a polyline tool to draw a line (a circle with a diameter of
10 will be drawn around the last point) a double click will not terminate the
line (single then wait then double is needed).<o:p></o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Calibri","sans-serif"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Calibri","sans-serif"'>Please
note I am using an array stored in </span>e.feature.geometry.attributes <span
style='font-family:"Calibri","sans-serif"'>to store the rangeCircle within the
Vector (as passed to the handler in e.feature).<o:p></o:p></span></p>

<p class=MsoPlainText><span style='font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoPlainText>waypointLayer.events.on({'sketchstarted':
sketchStarted});<o:p></o:p></p>

<p class=MsoPlainText>waypointLayer.events.on({'sketchmodified':
sketchModified});<o:p></o:p></p>

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

<p class=MsoPlainText>function sketchStarted(e)<o:p></o:p></p>

<p class=MsoPlainText>{<o:p></o:p></p>

<p class=MsoPlainText>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
e.feature.geometry.attributes = new Array();<o:p></o:p></p>

<p class=MsoPlainText>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
e.feature.geometry.attributes['circle'] = createCircle(e.feature.geometry.getVertices());<o:p></o:p></p>

<p class=MsoPlainText>}<o:p></o:p></p>

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

<p class=MsoPlainText>function sketchModified(e)<o:p></o:p></p>

<p class=MsoPlainText>{<o:p></o:p></p>

<p class=MsoPlainText>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
e.feature.geometry.attributes['circle'].destroy();<o:p></o:p></p>

<p class=MsoPlainText>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
e.feature.geometry.attributes['circle'] =
createCircle(e.feature.geometry.getVertices());<o:p></o:p></p>

<p class=MsoPlainText>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
waypointLayer.addFeatures(e.feature.geometry.attributes['circle']);<o:p></o:p></p>

<p class=MsoPlainText>}<o:p></o:p></p>

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

<p class=MsoPlainText>function createCircle(vert)<o:p></o:p></p>

<p class=MsoPlainText>{<o:p></o:p></p>

<p class=MsoPlainText>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return new
OpenLayers.Feature.Vector(<o:p></o:p></p>

<p class=MsoPlainText>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
OpenLayers.Geometry.Polygon.createRegularPolygon(vert[vert.length-1], 10, 50)<o:p></o:p></p>

<p class=MsoPlainText>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; );<o:p></o:p></p>

<p class=MsoPlainText>}<o:p></o:p></p>

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

<p class=MsoPlainText><span style='font-family:"Calibri","sans-serif"'>Any help
would be really appreciated!<o:p></o:p></span></p>

<h5 style='mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:12.0pt;
margin-left:0cm;background:white'><span style='font-size:11.0pt;font-family:
"Calibri","sans-serif";color:#1F497D;font-weight:normal'>Cheers,<o:p></o:p></span></h5>

<h5 style='margin:0cm;margin-bottom:.0001pt;background:white'><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;
font-weight:normal'>James Sewell<o:p></o:p></span></h5>

<h5 style='margin:0cm;margin-bottom:.0001pt;background:white'><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;
font-weight:normal'>LISAsoft Developer<o:p></o:p></span></h5>

<h5 style='margin:0cm;margin-bottom:.0001pt;background:white'><span
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;
font-weight:normal'>+61 (3) 8680 3200 / +61 414 688 892<o:p></o:p></span></h5>

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

<p class=MsoPlainText>-----Original Message-----<br>
From: andreas.hocevar@gmail.com [mailto:andreas.hocevar@gmail.com] On Behalf Of
Andreas Hocevar<br>
Sent: Friday, 30 April 2010 8:04 PM<br>
To: James.Sewell@lisasoft.com<br>
Cc: users@openlayers.org<br>
Subject: Re: [OpenLayers-Users] IE6 / OpenLayers / Path DrawFeature and
DoubleClicks<o:p></o:p></p>

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

<p class=MsoPlainText>Hi,<o:p></o:p></p>

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

<p class=MsoPlainText>On Fri, Apr 30, 2010 at 8:23 AM,
James.Sewell@lisasoft.com<o:p></o:p></p>

<p class=MsoPlainText>&lt;James.Sewell@lisasoft.com&gt; wrote:<o:p></o:p></p>

<p class=MsoPlainText>&gt; I am working with OpenLayers and IE6 (which is the
required SOE for the<o:p></o:p></p>

<p class=MsoPlainText>&gt; project) and have noticed that mouse doubleclicks
are not being captured<o:p></o:p></p>

<p class=MsoPlainText>&gt; correctly when drawing a Path from an
OpenLayers.Control.DrawFeature &nbsp;if<o:p></o:p></p>

<p class=MsoPlainText>&gt; another element is drawn to any layer from a
sketchmodified event.<o:p></o:p></p>

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

<p class=MsoPlainText>I think the &quot;if&quot; part in the above sentence
screws your application.<o:p></o:p></p>

<p class=MsoPlainText>This sounds like an application issue. You could try to
draw the other<o:p></o:p></p>

<p class=MsoPlainText>element in the sketchmodified handler using setTimeout.
If that does<o:p></o:p></p>

<p class=MsoPlainText>not work, try to create a minimal example that shows the
issues, so it<o:p></o:p></p>

<p class=MsoPlainText>will be easier for others to help.<o:p></o:p></p>

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

<p class=MsoPlainText>Regards,<o:p></o:p></p>

<p class=MsoPlainText>Andreas.<o:p></o:p></p>

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

<p class=MsoPlainText>&gt;<o:p>&nbsp;</o:p></p>

<p class=MsoPlainText>&gt;<o:p>&nbsp;</o:p></p>

<p class=MsoPlainText>&gt;<o:p>&nbsp;</o:p></p>

<p class=MsoPlainText>&gt; From IE in the above situation the Path is drawn
(which has a circle<o:p></o:p></p>

<p class=MsoPlainText>&gt; dynamically drawn round it using the sketchmodified
event to call the<o:p></o:p></p>

<p class=MsoPlainText>&gt; OpenLayers.Layer.Vector.addFeatures method) but
requires a single click<o:p></o:p></p>

<p class=MsoPlainText>&gt; immediately followed by a double click to terminate
the Path.<o:p></o:p></p>

<p class=MsoPlainText>&gt;<o:p>&nbsp;</o:p></p>

<p class=MsoPlainText>&gt;<o:p>&nbsp;</o:p></p>

<p class=MsoPlainText>&gt;<o:p>&nbsp;</o:p></p>

<p class=MsoPlainText>&gt; If the addFeatures call is not made (the circle is
not drawn ) behavior is<o:p></o:p></p>

<p class=MsoPlainText>&gt; as normal. The code works as expected in Chrome.<o:p></o:p></p>

<p class=MsoPlainText>&gt;<o:p>&nbsp;</o:p></p>

<p class=MsoPlainText>&gt;<o:p>&nbsp;</o:p></p>

<p class=MsoPlainText>&gt;<o:p>&nbsp;</o:p></p>

<p class=MsoPlainText>&gt; Has anyone dealt with this behavior before? Any help
would really be<o:p></o:p></p>

<p class=MsoPlainText>&gt; appreciated.<o:p></o:p></p>

<p class=MsoPlainText>&gt;<o:p>&nbsp;</o:p></p>

<p class=MsoPlainText>&gt;<o:p>&nbsp;</o:p></p>

<p class=MsoPlainText>&gt;<o:p>&nbsp;</o:p></p>

<p class=MsoPlainText>&gt; Cheers,<o:p></o:p></p>

<p class=MsoPlainText>&gt;<o:p>&nbsp;</o:p></p>

<p class=MsoPlainText>&gt; James Sewell<o:p></o:p></p>

<p class=MsoPlainText>&gt;<o:p>&nbsp;</o:p></p>

<p class=MsoPlainText>&gt; LISAsoft Developer<o:p></o:p></p>

<p class=MsoPlainText>&gt;<o:p>&nbsp;</o:p></p>

<p class=MsoPlainText>&gt; +61 (3) 8680 3200 / +61 414 688 892<o:p></o:p></p>

<p class=MsoPlainText>&gt;<o:p>&nbsp;</o:p></p>

<p class=MsoPlainText>&gt;<o:p>&nbsp;</o:p></p>

<p class=MsoPlainText>&gt;<o:p>&nbsp;</o:p></p>

<p class=MsoPlainText>&gt;<o:p>&nbsp;</o:p></p>

<p class=MsoPlainText>&gt;<o:p>&nbsp;</o:p></p>

<p class=MsoPlainText>&gt;<o:p>&nbsp;</o:p></p>

<p class=MsoPlainText>&gt;<o:p>&nbsp;</o:p></p>

<p class=MsoPlainText>&gt;<o:p>&nbsp;</o:p></p>

<p class=MsoPlainText>&gt;<o:p>&nbsp;</o:p></p>

<p class=MsoPlainText>&gt; _______________________________________________<o:p></o:p></p>

<p class=MsoPlainText>&gt; Users mailing list<o:p></o:p></p>

<p class=MsoPlainText>&gt; Users@openlayers.org<o:p></o:p></p>

<p class=MsoPlainText>&gt; http://openlayers.org/mailman/listinfo/users<o:p></o:p></p>

<p class=MsoPlainText>&gt;<o:p>&nbsp;</o:p></p>

<p class=MsoPlainText>&gt;<o:p>&nbsp;</o:p></p>

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

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

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

<p class=MsoPlainText>-- <o:p></o:p></p>

<p class=MsoPlainText>Andreas Hocevar<o:p></o:p></p>

<p class=MsoPlainText>OpenGeo - http://opengeo.org/<o:p></o:p></p>

<p class=MsoPlainText>Expert service straight from the developers.<o:p></o:p></p>

</div>

</body>

</html>