[OpenLayers-Dev] removing a vector layer within a RootContainer
Pierre Giraud
pierre.giraud at camptocamp.com
Mon May 17 08:08:48 EDT 2010
Hi all,
I think I found a bug, but I prefer to ensure I'm not doing something wrong.
In the "select feature multilayer" example [1], calling removeLayer on
the vector layers behaves weirdly.
Trying the following :
{{{
var layer = map.layers[1];
map.removeLayer(layer);
}}}
the layer is effectively removed from the list of layers, however, the
features are still displayed.
Actually, it looks like the <g> tag corresponding to this layer in the
RootContainer <svg> tag is not removed.
Am I missing something ?
Regards,
Pierre
[1] http://dev.openlayers.org/nightly/examples/select-feature-multilayer.html
--
Pierre GIRAUD
Géomaticien, Analyste
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel : 00 33 4 79 44 44 93
Mail : pierre.giraud at camptocamp.com
http://www.camptocamp.com
More information about the Dev
mailing list