Tom, In your addKmLLayer function, your selectControl variable is not declared as a "var" so I think(I am not JS expert though) that makes the variable global. So perhaps the one for the power layer is getting overwritten when you add the food layer. Try changing the line to: var selectControl = new ......
Hope this helps. Dan -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/KML-layer-popups-not-working-as-expected-tp5545420p5545520.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
