<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><span class="Apple-style-span" style="color: rgb(0, 0, 255);">I got stuck with this problem for past 2 days &amp; trying to figure it out myself....but nothing seems to be working as expected.</span><div><span class="Apple-style-span" style="color: rgb(0, 0, 255);"><br></span></div><div><span class="Apple-style-span" style="color: rgb(0, 0, 255);">there are couple of things that I tried myself</span></div><div><span class="Apple-style-span" style="color: rgb(0, 0, 255);"><br></span></div><div><span class="Apple-style-span" style="color: rgb(0, 0, 255);">1. on every onClick event I try to redraw the map so that the marker put place where user clicked on the map after the small pop-window containing map was dragged to difference location - the screen does refreshes as the result of redrawing layer but the icon(marker) still does not know that map has got
 refreshed and trying to place the icon(marker) on the original location of the map. so no help on this.</span></div><div><span class="Apple-style-span" style="color: rgb(0, 0, 255);"><br></span></div><div><span class="Apple-style-span" style="color: rgb(0, 0, 255);">2. On the other hand - when I tried to add the component(map) to AjaxRequestTarget after addOverlay(marker), the icon(marker) is getting placed where I clicked on map even after dragged the window which is was what I have been trying to accomplish but the problem with this approach is that even after I zoomed in/out on the map it goes back to original size and trying to place the icon on the original location of the map. so no help on this approach as well :-(</span></div><div><span class="Apple-style-span" style="color: rgb(0, 0, 255);"><br></span></div><div><span class="Apple-style-span" style="color: rgb(0, 0, 255);">any other option that I can try of ? or any other approaches to handle
 this? would be greatly appreciated!</span></div><div><span class="Apple-style-span" style="color: rgb(0, 0, 255);"><br></span></div><div><span class="Apple-style-span" style="color: rgb(0, 0, 255);">Thanks much!</span></div><div><span class="Apple-style-span" style="color: rgb(0, 0, 255);">~R</span></div><div><br></div><div><br></div><div><br><br>--- On <b>Wed, 5/20/09, Ramadoss <i>&lt;ramadossc@yahoo.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Ramadoss &lt;ramadossc@yahoo.com><br>Subject: [OpenLayers-Users] Placing marker on map<br>To: users@openlayers.org<br>Date: Wednesday, May 20, 2009, 3:18 PM<br><br><div id="yiv265447894"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit;"><div><span class="Apple-style-span" style="color:rgb(64, 64, 255);">Hi,</span></div><div><span class="Apple-style-span" style="color:rgb(64, 64,
 255);">        I am a newbie to openlayers. I have been unable to find a solution for a problem with map below.</span></div><div><span class="Apple-tab-span" style="white-space:pre;"><span class="Apple-style-span" style="color:rgb(64, 64, 255);">        </span></span></div><div><span class="Apple-style-span" style="color:rgb(64, 64, 255);">Here is my problem:</span></div><div><span class="Apple-style-span" style="color:rgb(64, 64, 255);"><br></span></div><div><span class="Apple-tab-span" style="white-space:pre;"><span class="Apple-style-span" style="color:rgb(64, 64, 255);">        </span></span><span class="Apple-style-span" style="color:rgb(64, 64, 255);">I am using java wicketstuffs openlayers extension - my problem is
 that when the user drag the pop-up window on which the map is loaded already <span class="Apple-style-span" style="color:rgb(0, 0, 0);"><span class="Apple-tab-span" style="white-space:pre;"><span class="Apple-style-span" style="color:rgb(64, 64, 255);">        </span></span><span class="Apple-style-span" style="color:rgb(64, 64, 255);">to a different location(move up, down,left or right) and try to place a marker on it the marker is not getting placed exactly where user clicked on map (after user dragged the window),<span class="Apple-style-span" style="white-space:pre;"> </span><span class="Apple-style-span" style="color:rgb(0, 0, 0);"><span class="Apple-style-span" style="color:rgb(64, 64, 255);">instead it is placing icon in a different location on map, however the lat/long that I am getting onclick event looks to be valid. </span></span></span></span></span></div><div><span class="Apple-style-span" style="color:rgb(64, 64,
 255);"><br></span></div><div><span class="Apple-style-span" style="color:rgb(64, 64, 255);">It seems to me that be map is not getting refreshed after user dragged the window to a different location.</span><br></div><div><span class="Apple-style-span" style="color:rgb(64, 64, 255);"><br></span></div><div><span class="Apple-style-span" style="color:rgb(64, 64, 255);">Any idea/suggestion is greatly appreciated!</span></div><div><span class="Apple-style-span" style="color:rgb(64, 64, 255);"><br></span></div><div><span class="Apple-style-span" style="color:rgb(64, 64, 255);">Thanks,</span><br></div><div><span class="Apple-style-span" style="color:rgb(64, 64, 255);">Ram</span></div></td></tr></tbody></table><br>

      </div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>Users mailing list<br><a ymailto="mailto:Users@openlayers.org" href="/mc/compose?to=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></blockquote></div></td></tr></table><br>