On Thu, Oct 18, 2007 at 10:51:50AM +0200, Armin W??spy wrote:
> hi list,
> is there a function which removes all displayed layers?

for (var i = map.layers.length - 1; i >= 0; i--) {
    map.removeLayer(map.layers[i]);
}    

Regards,
-- 
Christopher Schmidt
MetaCarta
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to