<div>Hello List,</div>
<div>&nbsp;</div>
<div>I want to render the base map with miltiple markers for that the code i put is like</div>
<div>&nbsp;</div>
<div>&lt;code&gt;</div>
<div>&nbsp;</div>
<div>putMakers = function(){<br>&nbsp;&nbsp;&nbsp;var size = new OpenLayers.Size(12,20);<br>&nbsp;&nbsp;&nbsp;var offset = new OpenLayers.Pixel(-(size.w/2), -size.h);<br>&nbsp;&nbsp;&nbsp;icon = new OpenLayers.Icon(&#39;../img/marker_20_blue.png&#39;,size,offset);<br>
&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;markerArray = new Array(myData.length);<br>&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;for(var i=0; i&lt; myData.length; i++)<br>&nbsp;&nbsp;&nbsp;{&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;locLonLat = new OpenLayers.LonLat(myData[i][1],myData[i][0]);<br>&nbsp;&nbsp;&nbsp;&nbsp;markerArray[i] = new OpenLayers.Marker
(locLonLat,icon);<br>&nbsp;&nbsp;&nbsp;&nbsp;markerLayer.addMarker(markerArray[i]);<br>&nbsp;&nbsp;&nbsp;}<br>}</div>
<div>&nbsp;</div>
<div>&lt;/code&gt;</div>
<div>&nbsp;</div>
<div>Markers are creating&nbsp;but vanishing and I am able to see only last marker location only </div>
<div>can any one tell me why it is so????</div>
<div>&nbsp;</div>
<div>is there any other better solution for this!!</div>
<div>&nbsp;</div>
<div>Thanks!</div>
<div>&nbsp;</div>