Always looking for different drawing implementations I took a look.  Notice that as you draw a line in Sanoodi you don&#39;t get a line from the last drawn vertice to your mouse pointer as it moves around (default OL control).  Also each of your vertices have a circle.  So a Sanoodi &#39;line&#39; actually looks like a combination of a line feature with point features and as you click an additional point it adds a new vertice to the line and redraws it on the screen.  It might even just be drawing multiple line segments.  Probably just using the map onclick event to trigger this.  In fact if you double click just slow enough (two fast single clicks effectively) you can get it to create a point without adding the next line segment.<br>
<br>-Tim<br><br><div class="gmail_quote">On Fri, Feb 26, 2010 at 6:19 PM, Richard Greenwood <span dir="ltr">&lt;<a href="mailto:richard.greenwood@gmail.com">richard.greenwood@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Steve,<br>
<br>
This is not exactly what you are looking for, but you could watch<br>
sketchmodified and when the mouse was within a few pixels of any edge<br>
of the current map, you would pan the map a few pixels in that<br>
direction. This would mimic the behavior of MapInfo&#39;s &quot;edge panning&quot;<br>
(and probably other software) and it would provide the opportunity for<br>
the user to pan beyond the current map extents to place a new vertex.<br>
And you don&#39;t have to detect a &#39;click&#39; or &#39;vertex added&#39; event, which<br>
apparently doesn&#39;t exist.<br>
<br>
Regards,<br>
Rich<br>
<div><div></div><div class="h5"><br>
On Fri, Feb 19, 2010 at 4:58 AM, smartini &lt;<a href="mailto:nabble@stevemartin.org.uk">nabble@stevemartin.org.uk</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt; Christopher Schmidt-2 wrote:<br>
&gt;&gt;<br>
&gt;&gt; On Tue, Feb 16, 2010 at 08:56:24AM -0800, smartini wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Christopher,<br>
&gt;&gt;&gt; sketchmodified appears to fire constantly while you are drawing and the<br>
&gt;&gt;&gt; mouse is moving. I hooked this in to setCenter() for a laugh as the map<br>
&gt;&gt;&gt; constantly recentered as I moved the mouse. This event appears to offer a<br>
&gt;&gt;&gt; little more than I require.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I console logged all the events just to see if there was anything<br>
&gt;&gt;&gt; suitable<br>
&gt;&gt;&gt; but alas, there was not, hence my cry for help.<br>
&gt;&gt;<br>
&gt;&gt; Makes sense. A quick look at the code doesn&#39;t show anything obvious that<br>
&gt;&gt; would be better.<br>
&gt;&gt;<br>
&gt;&gt; -- Chris<br>
&gt;&gt;<br>
&gt;<br>
&gt; So, would you or anybody else in the community have any suggestions as to<br>
&gt; how to go about handling such an event?<br>
&gt; I offer as an example a site which manages to accomplish this:<br>
&gt; <a href="http://www.sanoodi.com/routes/create/" target="_blank">http://www.sanoodi.com/routes/create/</a>   (after registering/logging in)<br>
&gt; though I have as yet been unable to reverse engineer the approach used here.<br>
&gt;<br>
&gt; Regards,<br>
&gt; Steve<br>
&gt;<br>
&gt; --<br>
&gt; View this message in context: <a href="http://n2.nabble.com/How-to-recenter-the-map-when-drawing-tp4581070p4597434.html" target="_blank">http://n2.nabble.com/How-to-recenter-the-map-when-drawing-tp4581070p4597434.html</a><br>

&gt; Sent from the OpenLayers Users mailing list archive at Nabble.com.<br>
&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
&gt; <a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
&gt;<br>
<br>
<br>
<br>
</div></div><font color="#888888">--<br>
Richard Greenwood<br>
<a href="mailto:richard.greenwood@gmail.com">richard.greenwood@gmail.com</a><br>
<a href="http://www.greenwoodmap.com" target="_blank">www.greenwoodmap.com</a><br>
</font><div><div></div><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br>