Accept feature projection in GeoJSON constructor

This commit is contained in:
Tim Schaub
2016-09-26 22:56:07 -06:00
parent f8bcd725ad
commit 4b6e907f69
4 changed files with 59 additions and 14 deletions

View File

@@ -42,6 +42,10 @@ ol.format.GeoJSON = function(opt_options) {
options.defaultDataProjection : 'EPSG:4326');
if (options.featureProjection) {
this.defaultFeatureProjection = ol.proj.get(options.featureProjection);
}
/**
* Name of the geometry attribute for features.
* @type {string|undefined}