Merge pull request #1420 from fredj/vector-api-igc-extensions
[vector-api] Add ol.format.IGC#getExtensions
This commit is contained in:
@@ -43,6 +43,13 @@ ol.format.IGC = function(opt_options) {
|
||||
goog.inherits(ol.format.IGC, ol.format.Text);
|
||||
|
||||
|
||||
/**
|
||||
* @const {Array.<string>}
|
||||
* @private
|
||||
*/
|
||||
ol.format.IGC.EXTENSIONS_ = ['.igc'];
|
||||
|
||||
|
||||
/**
|
||||
* @const {RegExp}
|
||||
* @private
|
||||
@@ -65,6 +72,14 @@ ol.format.IGC.H_RECORD_RE_ = /^H.([A-Z]{3}).*?:(.*)/;
|
||||
ol.format.IGC.HFDTE_RECORD_RE_ = /^HFDTE(\d{2})(\d{2})(\d{2})/;
|
||||
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
ol.format.IGC.prototype.getExtensions = function() {
|
||||
return ol.format.IGC.EXTENSIONS_;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user