[MapQuery] Re: OpenLayers.Layer.Vector.RootContainer
Volker Mische
volker.mische at gmail.com
Sat May 19 07:19:41 EDT 2012
On 05/18/2012 12:18 PM, Giuseppe De Marco wrote:
> When I create a mapquery.layer instance, using my existing_ol, map.query
> appends in his layers list two different layer.
>
> The first is what I created, the second
> is OpenLayers.Layer.Vector.RootContainer.
>
> If I destroy OpenLayers.Layer.Vector.RootContainer the mqLayerManager
> doesn't permits me to remove my existing_ol anymore, so I tought
> that OpenLayers.Layer.Vector.RootContainer needs truly to do this task.
>
> My Question is, where in the mq source is there the new
> OpenLayers.Layer.Vector.RootContainer code?
>
> I've searched in the source tree but I wasn't able to find it
Hi Giuseppe,
the OpenLayers.Layer.Vector.RootContainer is created by Openlayers.
Does mq.lqyers() also return the OpenLayers.Layer.Vector.RootContainer?
If that's the case it's a bug.
Generally spoken, you shouldn't care about what layers are created
internally by MapQuery, just use the MapQuery API fo everything and it
will deal with all OpenLayers quirks (that's the point of MapQuery).
Cheers,
Volker
More information about the MapQuery
mailing list