[MapQuery] Re: OpenLayers.Layer.Vector.RootContainer

Volker Mische volker.mische at gmail.com
Sun May 20 13:16:20 EDT 2012


On 05/20/2012 12:07 PM, Giuseppe De Marco wrote:
> Message: 6
> Date: Sun, 20 May 2012 08:27:21 +0200
> From: Eric Lemoine <eric.lemoine at camptocamp.com
> <mailto:eric.lemoine at camptocamp.com>>
> Subject: Re: [OpenLayers-Users] why
>     OpenLayers.Layer.Vector.Root_Container    hates me?
> To: Giuseppe De Marco <peppelinux at yahoo.it <mailto:peppelinux at yahoo.it>>
> Cc: "openlayers-users at lists.osgeo.org
> <mailto:openlayers-users at lists.osgeo.org>"
>     <openlayers-users at lists.osgeo.org
> <mailto:openlayers-users at lists.osgeo.org>>
> Message-ID:
>     <CAGZ3h-HXwi_rxuXxVJFPfe5xUKLnLAjhnWiuJgOyo77SbN1=yg at mail.gmail.com
> <mailto:yg at mail.gmail.com>>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> On Saturday, May 19, 2012, Giuseppe De Marco wrote:
> 
>> I didn't understand very well the importance
>> of OpenLayers.Layer.Vector.Root_Container.
>>
>> I know that if I created first a Vector layer with some features whithin
>> it, if later I create a Root_container the features on the first Vector
>> layer doesn't been clickable anymore (for getfeatures event).
>>
> 
> You're not supposed to create RootContainer layers yourself. A
> SelectFeature control creates a RootContainer layer when it is requested to
> work with an array of layers.
> 
> I think the docs make this pretty clear: <
> http://dev.openlayers.org/apidocs/files/OpenLayers/Layer/Vector/RootContainer-js.html
>>.

Hi Giuseppe,

Eric (of course :) is right here. MapQuery also doesn't create this
layer manually (or delete it), it's all done by OpenLayers automatically.

Cheers,
  Volker




More information about the MapQuery mailing list