[OpenLayers-Users] Problem with markers performence

bwoodall bwoodall at wardrobe.dhs.org
Sat Jan 6 05:56:40 EST 2007


Hi SuneelKota,

If you can send a SQL statement back (like through AJAX ) a request to
the database for just the markers that are in your viewport, hopefully
that would cut down on the number.

As for the 1000 events, have just one callback for the markers and you
might have to make your own popup handler.  In the callback use
event.xy.x and event.xy.y to get your lon & lat and then check you
marker list.

$.02

.........Bill,

On Sat, 2007-01-06 at 01:22 -0500, suneel kota wrote:
>  
>  
>  
> Hi all,
>  
>       I am using openlayers markers to display markers in my map..
> Problem is that when i am loading 1000markers on the map its taking
> more time(2 minutes).
> I am placing the markers with Latitude and Longitude which are coming
> from database.. 
>  
>     What my requirement i need to place 1000 markers on the map, and
> when ever user clicks on the marker i need show the information of
> that particular marker. But we have placed all markers and given
> events to those markers as click. But we are facing performance
> issue..
>  
> Can anybody tell me how to rectify this problem. Or any example like
> this..
>  
> thanks In advance
>  
> Regards
> SuneelKota
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users




More information about the Users mailing list