Hi Rosco,<div><br></div><div>No, I hadn&#39;t thought of that. Any suggestions on how to update the position of the marker, maybe a loop with a new LonLat?<br><br><div class="gmail_quote">On Sat, Jun 11, 2011 at 5:00 AM, Rossko <span dir="ltr">&lt;<a href="mailto:rossko@culzean.clara.co.uk">rossko@culzean.clara.co.uk</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">&gt; The issue is that each time the user clicks, another marker is placed. This<br>
isn&#39;t really a problem, but for<br>
&gt; aesthetic purposes, I&#39;d like to destroy or remove the first marker if the<br>
&gt; clicks again<br>
<br>
</div>Have you considered a different approach to coding this, create one marker<br>
and move it around.<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/help-with-removing-replacing-a-marker-after-click-event-tp6463400p6464936.html" target="_blank">http://osgeo-org.1803224.n2.nabble.com/help-with-removing-replacing-a-marker-after-click-event-tp6463400p6464936.html</a><br>

Sent from the OpenLayers Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
</font></blockquote></div><br></div>