Great, thank you! This work around works for me. I needed to make sure it is added/removed from the LayerSwitcher control dynamically, so I've added that line of code as well.
I'm still not sure how the addLayer/setLayer functions work on the SelectFeature control. I should have clarified that I am still using OpenLayers 2.x, so maybe this functionality has changed in 3. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/SelectFeature-addLayer-function-tp5180587p5180595.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list us...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users