<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><div>Refer this <a href="http://openlayers.org/pipermail/users/2009-June/012274.html">http://openlayers.org/pipermail/users/2009-June/012274.html</a></div>
<div><br></div><div>My example code:</div><div><br></div><div><div><div>function setLonLat(marker, lonlat) {</div><div>    var newPx = map.getLayerPxFromLonLat(newLonLat);</div><div>    marker.moveTo(newPx);</div><div>}</div>
<div><br></div><div>var marker = new OpenLayers.Marker(new OpenLayers.LonLat(102.2168, 3.09185), new OpenLayers.Icon());                                                          </div><div>var markers = new OpenLayers.Layer.Markers( &quot;Markers&quot; );</div>
<div>markers.addMarker(marker);</div><div>map.addLayer(markers);</div><div><br></div><div>// To move the marker</div><div>var newLonLat = new OpenLayers.LonLat(102.1399, 5.72857);</div><div>setLonLat(marker, newLonLat);</div>
</div></div><div><br></div>&gt;&gt; I mean I wanted to build an apoplication that uploads my current position like every 5 mins or so, is this the best way to do it?</span><br><br><div class="gmail_quote">On Fri, Oct 30, 2009 at 5:39 AM, Hany Harraz <span dir="ltr">&lt;<a href="mailto:h.harraz@gmail.com">h.harraz@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div dir="ltr">Hi All,<br>I&#39;m thinking of building a website that has openstreetmaps integrated to it, I need to show my position on the map each time I send my coordinates from my mobile, is there a way to show this without refreshing the page? like adding a layer that shows a pointer to some coordinates and can be refreshed without refreshing the whole page or map?<br clear="all">

<br>-- <br>With best Regards<br>Hany Harraz<br>
</div>
<br>_______________________________________________<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>
<br></blockquote></div><br>