Module type for ol.format.Feature

This commit is contained in:
Frederic Junod
2018-03-22 11:33:46 +01:00
parent c19ddb1a19
commit d8c0e6e69b
11 changed files with 21 additions and 21 deletions
+3 -3
View File
@@ -79,7 +79,7 @@ const VectorSource = function(opt_options) {
/**
* @private
* @type {ol.format.Feature|undefined}
* @type {module:ol/format/Feature~FeatureFormat|undefined}
*/
this.format_ = options.format;
@@ -100,7 +100,7 @@ const VectorSource = function(opt_options) {
} else if (this.url_ !== undefined) {
assert(this.format_, 7); // `format` must be set when `url` is set
// create a XHR feature loader for "url" and "format"
this.loader_ = xhr(this.url_, /** @type {ol.format.Feature} */ (this.format_));
this.loader_ = xhr(this.url_, /** @type {module:ol/format/Feature~FeatureFormat} */ (this.format_));
}
/**
@@ -656,7 +656,7 @@ VectorSource.prototype.getFeatureById = function(id) {
/**
* Get the format associated with this source.
*
* @return {ol.format.Feature|undefined} The feature format.
* @return {module:ol/format/Feature~FeatureFormat|undefined} The feature format.
* @api
*/
VectorSource.prototype.getFormat = function() {
+2 -2
View File
@@ -56,7 +56,7 @@ const VectorTileSource = function(options) {
/**
* @private
* @type {ol.format.Feature}
* @type {module:ol/format/Feature~FeatureFormat}
*/
this.format_ = options.format ? options.format : null;
@@ -75,7 +75,7 @@ const VectorTileSource = function(options) {
/**
* @protected
* @type {function(new: module:ol/VectorTile~VectorTile, module:ol/tilecoord~TileCoord, module:ol/TileState~TileState, string,
* ol.format.Feature, module:ol/Tile~LoadFunction)}
* module:ol/format/Feature~FeatureFormat, module:ol/Tile~LoadFunction)}
*/
this.tileClass = options.tileClass ? options.tileClass : VectorTile;