Stricter typing for ol.Collection
This commit is contained in:
@@ -95,7 +95,7 @@ ol.interaction.Draw = function(options) {
|
||||
|
||||
/**
|
||||
* Target collection for drawn features.
|
||||
* @type {ol.Collection}
|
||||
* @type {ol.Collection.<ol.Feature>}
|
||||
* @private
|
||||
*/
|
||||
this.features_ = goog.isDef(options.features) ? options.features : null;
|
||||
|
||||
@@ -35,8 +35,8 @@ goog.require('ol.interaction.PinchZoom');
|
||||
* should be excluded if you want a build with no vector support.
|
||||
*
|
||||
* @param {olx.interaction.DefaultsOptions=} opt_options Defaults options.
|
||||
* @return {ol.Collection} A collection of interactions to be used with
|
||||
* the ol.Map constructor's interactions option.
|
||||
* @return {ol.Collection.<ol.interaction.Interaction>} A collection of
|
||||
* interactions to be used with the ol.Map constructor's interactions option.
|
||||
* @api stable
|
||||
*/
|
||||
ol.interaction.defaults = function(opt_options) {
|
||||
|
||||
@@ -133,7 +133,7 @@ ol.interaction.Modify = function(options) {
|
||||
};
|
||||
|
||||
/**
|
||||
* @type {ol.Collection}
|
||||
* @type {ol.Collection.<ol.Feature>}
|
||||
* @private
|
||||
*/
|
||||
this.features_ = options.features;
|
||||
|
||||
@@ -106,7 +106,7 @@ goog.inherits(ol.interaction.Select, ol.interaction.Interaction);
|
||||
|
||||
/**
|
||||
* Get the selected features.
|
||||
* @return {ol.Collection} Features collection.
|
||||
* @return {ol.Collection.<ol.Feature>} Features collection.
|
||||
* @api stable
|
||||
*/
|
||||
ol.interaction.Select.prototype.getFeatures = function() {
|
||||
|
||||
Reference in New Issue
Block a user