<div>Hi Christopher, Thanks for ur reply..</div>
<div> </div>
<div>please check my code which i am using ajax to display the markers..</div>
<div> </div>
<div>// getting placemarkers array from the Ajax<br>
<div><font size="2">
<p>function displayMarkers() { for (var i =0; i < placemarkers.length; i++) {</p>
<p>// obtain the attribues of each marker</p>
<p>var lat = encode(placemarkers[i].getElementsByTagName("latitude")[0].firstChild.nodeValue);</p>
<p>var lng = encode(placemarkers[i].getElementsByTagName("longitude")[0].firstChild.nodeValue);</p>
<p>// create the marker</p>
<p>createMarker(lat,lng); }</p>
<p>// adding markers layer to the map</p>
<p>map.addLayer(markers);</p>
<p>}</p>
<p>// to create the marker </p>
<p>// declared size and calculateOffset in my program</p><font size="2">
<p>function createMarker(lati,longi) {</p>
<p>var markerplace = new OpenLayers.LonLat(longi,lati);</p>
<p>var icon = new OpenLayers.Icon(url, size, null, calculateOffset);</p>
<p>marker = new OpenLayers.Marker(markerplace, icon);</p>
<p>marker.events.register('click', marker, function frmAddNe(evt) {</p>
<p>// this is the method to call again ajax request to display particular marker data</p>
<p>callFunction(longi,lati);</p>
<p>Event.stop(evt); });</p>
<p>// adding marker to the markers layer</p>
<p>markers.addMarker(marker);</p>
<p>}</p>
<p> </p>
<p>Please assist me as soon as possible.. It will be very helpful for me if you can..</p>
<p> </p>
<p>Thanks &Regards</p>
<p>SuneelKota</p></font></font></div><span></span><br> </div>
<div><span class="gmail_quote">On 1/6/07, <b class="gmail_sendername">Christopher Schmidt</b> <<a href="mailto:crschmidt@metacarta.com">crschmidt@metacarta.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On Sat, Jan 06, 2007 at 01:22:24AM -0500, suneel kota wrote:<br>> Hi all,<br>><br>> I am using openlayers markers to display markers in my map.. Problem
<br>> is that when i am loading 1000markers on the map its taking more time(2<br>> minutes).<br>> I am placing the markers with Latitude and Longitude which are coming from<br>> database..<br>><br>> What my requirement i need to place 1000 markers on the map, and when
<br>> ever user clicks on the marker i need show the information of that<br>> particular marker. But we have placed all markers and given events to those<br>> markers as click. But we are facing performance issue..
<br>><br>> Can anybody tell me how to rectify this problem. Or any example like this..<br><br><br>Which browser are you using?<br><br>If you are using IE6, this is basically expected behavior with no known<br>solution. Because IE doesn't truly support alpha transparency in images,
<br>adding 1000 of these images to a map takes a long time, and OpenLayers<br>has no ability to do anything about it.<br><br>If you are willing to keep your usage limited to other browsers, the<br>level of performance you are seeing seems different than what I would
<br>expect. The GeoSearch client released by MetaCarta uses a large number<br>of markers successfully in Firefox/Safari/Opera (Although I'll admit<br>that Safari and Opera are definitely slower).<br><br>IE7 is slow, but not to the same extent as IE6 -- you might want to try
<br>that if you think that you need to support IE.<br><br>If you're seeing poor performance in something other than IE6, could you<br>please provide a simple example of HTML or a URL which reproduces the<br>problem?<br>
<br>Regards,<br>--<br>Christopher Schmidt<br>MetaCarta<br></blockquote></div><br>