Add ol.format.IGC#getExtensions

This commit is contained in:
Frederic Junod
2013-12-20 09:08:08 +01:00
parent e789d9a6fe
commit eaf6d7caef

View File

@@ -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
*/