[OpenLayers-Users] Slow marker rendering in IE
Ivan Grcic
ivan.grcic at geofoto.hr
Tue Dec 9 18:30:07 EST 2008
Hi, no matter what u do showing 1000features in IE will be sloooow!
Yes, its a crappy browser :)
I suggest to try using cluster strategy!
Regards
On Tue, Dec 2, 2008 at 5:26 PM, Jani Patokallio <jpatokal at iki.fi> wrote:
> Greetings,
>
> I have an OpenLayers-based site (http://openflights.org) that renders
> airport markers and flight vectors on a world map, and while it's
> reasonably snappy on Firefox, it's very slow on IE. I've turned off the
> alpha hack, but this did not seem to make any difference at all.
>
> Searching through the archives, there was a mail (*) that suggested
> that, instead of using a separate mousedown event handler for each
> marker (which is what I'm doing right now), you should "replace it with
> an event handler on the container and then using the target property to
> determine if one of the smaller elements had been clicked". If the
> container of a Marker is its Layer.Markers, how do I set an event
> handler on it and determine the target?
>
> * http://www.mail-archive.com/dev@openlayers.org/msg00084.html
>
> Also, ideas for how to speed up rendering at the world level, when there
> may be >1000 airports on the map, are welcome. My current thinking is
> to load all markers into the layer, but listen to the map's zoom events
> and call marker.display(true/false) to toggle them on/off when zooming
> in/out. There are no faster-rendering clickable alternatives to PNG
> icons, right?
>
> Cheers,
> -jani
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
--
Ivan Grcic
More information about the Users
mailing list