[OpenLayers-Users] IE and memory usage problem

Christopher Schmidt crschmidt at metacarta.com
Thu Aug 7 08:04:21 EDT 2008


On Thu, Aug 07, 2008 at 01:25:25AM -0700, lukast wrote:
> Apart from this I have got another problem with memory usage connected with
> markers. I dynamically add several markers to the markers layer. Memory
> increases very fast when I add Markers - 20 Markers - aproximatelly 10MB of
> RAM :(

Welcome to the lovely world of the alpha image hack: memory usage
galore.

> Also when I remove these markers from the map memory stays on the same level
> - but should be freed.

This is not OpenLayers fault (other than that we support alpha
transparent markers in this way). Switching your images to .gifs, then
overriding the alphaImageHack to always return false, would allow you to
save this memory, probably.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Users mailing list