Add ol.format.GeoJSON#getExtensions

This commit is contained in:
Tom Payne
2013-12-18 20:04:55 +01:00
parent befd1fc5f8
commit 07c20c93fc

View File

@@ -41,6 +41,13 @@ ol.format.GeoJSON = function(opt_options) {
goog.inherits(ol.format.GeoJSON, ol.format.JSON);
/**
* @const {Array.<string>}
* @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
*/