Add ol.format.GeoJSON#getExtensions
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user