[OpenLayers-Dev] prevent layers from getting added

Julien-Samuel Lacroix jlacroix at mapgears.com
Mon Jun 8 10:13:59 EDT 2009


Can you explain the use case of this? Why are you creating the layers 
object to prevent them to be added to the map object?


bartvde at osgis.nl wrote:
> Hi list,
> currently there seems no option to prevent layers from getting added to
> the map object. I thought I could use the preaddlayer event for this, but
> that does not seem possible currently.
> Is there interest in creating a patch for such a feature? Do people think
> this would be useful general functionality?
> Best regards,
> Bart
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev

Julien-Samuel Lacroix

More information about the Dev mailing list