openlayers/ol3 — pull request #1540 by elemoine (2014-01-20 14:12:33+00:00)
Title: Configure draw interaction with a vector source instead of a layer

This would make it work with both a vector layer and an image layer with a vector image source.