Give the draw interaction a style option
This commit is contained in:
@@ -146,9 +146,11 @@ ol.interaction.Draw = function(options) {
|
||||
* @type {ol.FeatureOverlay}
|
||||
* @private
|
||||
*/
|
||||
this.overlay_ = new ol.FeatureOverlay();
|
||||
this.overlay_.setStyleFunction(goog.isDef(options.styleFunction) ?
|
||||
options.styleFunction : ol.interaction.Draw.getDefaultStyleFunction());
|
||||
this.overlay_ = new ol.FeatureOverlay({
|
||||
style: goog.isDef(options.style) ?
|
||||
options.style : ol.interaction.Draw.getDefaultStyleFunction()
|
||||
});
|
||||
|
||||
};
|
||||
goog.inherits(ol.interaction.Draw, ol.interaction.Interaction);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user