From 07c20c93fc79ea768e2c134e438b0ef92942d35e Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Wed, 18 Dec 2013 20:04:55 +0100 Subject: [PATCH] Add ol.format.GeoJSON#getExtensions --- src/ol/format/geojsonformat.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/ol/format/geojsonformat.js b/src/ol/format/geojsonformat.js index 07fb1de43a..9c4acc76f9 100644 --- a/src/ol/format/geojsonformat.js +++ b/src/ol/format/geojsonformat.js @@ -41,6 +41,13 @@ ol.format.GeoJSON = function(opt_options) { goog.inherits(ol.format.GeoJSON, ol.format.JSON); +/** + * @const {Array.} + * @private + */ +ol.format.GeoJSON.EXTENSIONS_ = ['.geojson']; + + /** * @param {GeoJSONObject} object Object. * @private @@ -278,6 +285,14 @@ ol.format.GeoJSON.GEOMETRY_WRITERS_ = { }; +/** + * @inheritDoc + */ +ol.format.GeoJSON.prototype.getExtensions = function() { + return ol.format.GeoJSON.EXTENSIONS_; +}; + + /** * @inheritDoc */