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