thanks a lot.
solved already by myself.
var num = map.getNumLayers();
for (var j=1; j<num; j++) {
map.removeLayer( map.layers[1] );
}
>>> Christopher Schmidt <[EMAIL PROTECTED]> 10/18/07 1:33 >>>
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