Thanks Eric <br><br>its working. Thank you man.....!<br><br><br><br><br><div><span class="gmail_quote">On 8/30/07, <b class="gmail_sendername">Eric Lemoine</b> <<a href="mailto:eric.c2c@gmail.com">eric.c2c@gmail.com</a>
> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On 8/30/07, Prasad Choudhary <<a href="mailto:prasad.choudhary@gmail.com">
prasad.choudhary@gmail.com</a>> wrote:<br>> Hello List,<br><br>Hi<br><br><br>><br>> I want to render the base map with miltiple markers for that the code i put<br>> is like<br>><br>> <code><br>>
<br>> putMakers = function(){<br>> var size = new OpenLayers.Size(12,20);<br>> var offset = new OpenLayers.Pixel(-(size.w/2), -size.h);<br>> icon = new<br>> OpenLayers.Icon('../img/marker_20_blue.png',size,offset);
<br>><br>> markerArray = new Array(myData.length);<br>><br>> for(var i=0; i< myData.length; i++)<br>> {<br>> locLonLat = new OpenLayers.LonLat(myData[i][1],myData[i][0]);<br>> markerArray[i] = new
OpenLayers.Marker (locLonLat,icon);<br>> markerLayer.addMarker(markerArray[i]);<br>> }<br>> }<br>><br>> </code><br>><br>> Markers are creating but vanishing and I am able to see only last marker
<br>> location only<br>> can any one tell me why it is so????<br>><br>> is there any other better solution for this!!<br><br>Try creating a new icon for every new marker. I haven't actually<br>checked whether that'd work out, but using one icon for every marker
<br>seems problematic to me.<br><br>--<br>Eric<br></blockquote></div><br>