openlayers/openlayers — pull request #987 by ahocevar (2013-05-25 17:44:14+00:00)
Title: Vector layer duplicates when changeing to google base layer

When you have a vector layer overlay in the map and change from any XYZ base layer to google base layer, the vector layer get's duplicated and orphaned.

This does only happen if you change the baselayer onload, so it might be some kind of race condition when the google layer isn't fully initialized.

See http://lohner-net.de/skylines/ol2.13.html for a example, just zoom out and the three markers get duplicated.