Allow string to be passed as ol.interaction.Draw type

This commit is contained in:
Frederic Junod
2017-11-21 09:55:52 +01:00
parent ae6ba195f7
commit c0d57ad005
10 changed files with 14 additions and 14 deletions

View File

@@ -88,7 +88,7 @@ ol.interaction.Draw = function(options) {
* @type {ol.geom.GeometryType}
* @private
*/
this.type_ = options.type;
this.type_ = /** @type {ol.geom.GeometryType} */ (options.type);
/**
* Drawing mode (derived from geometry type.