[MapQuery] getLayerByOpenLayersId?

Steven Ottens steven at minst.net
Wed Jun 22 05:58:36 EDT 2011

Hi all,

We decided that we don't need getLayerById since to know the layer.id you need the layer object to start with. A wise choice, however now I have a new issue. The 'AddLayer' event from OpenLayers returns a OpenLayers Layer object. There is currently no easy way to get the corresponding MapQuery layer. For the LayerManager, which should add a layer to the manager after a layer has been added, I need to get the layer object.

I could write a function to get layer by OpenLayers ID. Would it make sense to add this function to core? Or should the addlayer event somehow return the mapquery layer.


More information about the MapQuery mailing list