From eaf6d7caef0c24f93251924b9c12047e7e90070a Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Fri, 20 Dec 2013 09:08:08 +0100 Subject: [PATCH] Add ol.format.IGC#getExtensions --- src/ol/format/igcformat.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/ol/format/igcformat.js b/src/ol/format/igcformat.js index 62904aa705..65884aa33a 100644 --- a/src/ol/format/igcformat.js +++ b/src/ol/format/igcformat.js @@ -43,6 +43,13 @@ ol.format.IGC = function(opt_options) { goog.inherits(ol.format.IGC, ol.format.Text); +/** + * @const {Array.} + * @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 */