[OpenLayers-Users] Slow marker rendering in IE
Zac Spitzer
zac.spitzer at gmail.com
Tue Dec 9 19:52:12 EST 2008
or create a image based layer, you don't need to use a vector layer to make
something clickable, you just need to handle the clicks
On Wed, Dec 10, 2008 at 10:30 AM, Ivan Grcic <ivan.grcic at geofoto.hr> wrote:
> 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
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
--
Zac Spitzer -
http://zacster.blogspot.com
+61 405 847 168
More information about the Users
mailing list