[OpenLayers-Users] Forcing a redraw of a Vector Layer

Andreas Hocevar ahocevar at opengeo.org
Tue Jul 7 04:55:24 EDT 2009


Hi,

instead of creating a SelectFeature control for each layer, create one 
SelectFeature control and configure it with all layers you want to 
select from. This requires OpenLayers 2.8 or a trunk version not older 
than a few months.

Regards,
Andreas.

Sajeer... wrote:
>
> Hi,
>
> I have three KML  *a.kml* ,*b.kml* and *c.kml*
>
> I had created three GML layers for these kmls , and SelectFeature 
> control for each layer and added into map. Also these layers are 
> included into the layerswitcher.
> I used SelectFeature control to display a popup with feature information.
>
> Now my problem is,  SelectFeature control is not working when i am 
> */selecting all layers from layerswitcher/*
>
>
> Thanks in advance for your great help..
>
>
>
>
> *Sajeer*
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>   


-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.




More information about the Users mailing list