Be more consistent with parser options
This commit is contained in:
@@ -6,21 +6,21 @@ goog.require('ol.parser.ogc.ExceptionReport');
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @constructor
|
* @constructor
|
||||||
* @param {Object} formatOptions Options which will be set on this object.
|
* @param {Object=} opt_options Options which will be set on this object.
|
||||||
*/
|
*/
|
||||||
ol.parser.ogc.Versioned = function(formatOptions) {
|
ol.parser.ogc.Versioned = function(opt_options) {
|
||||||
formatOptions = formatOptions || {};
|
var options = goog.isDef(opt_options) ? opt_options : {};
|
||||||
this.options = formatOptions;
|
this.options = options;
|
||||||
this.defaultVersion = formatOptions.defaultVersion || null;
|
this.defaultVersion = options.defaultVersion || null;
|
||||||
this.version = formatOptions.version;
|
this.version = options.version;
|
||||||
this.profile = formatOptions.profile;
|
this.profile = options.profile;
|
||||||
if (formatOptions.allowFallback !== undefined) {
|
if (options.allowFallback !== undefined) {
|
||||||
this.allowFallback = formatOptions.allowFallback;
|
this.allowFallback = options.allowFallback;
|
||||||
} else {
|
} else {
|
||||||
this.allowFallback = false;
|
this.allowFallback = false;
|
||||||
}
|
}
|
||||||
if (formatOptions.stringifyOutput !== undefined) {
|
if (options.stringifyOutput !== undefined) {
|
||||||
this.stringifyOutput = formatOptions.stringifyOutput;
|
this.stringifyOutput = options.stringifyOutput;
|
||||||
} else {
|
} else {
|
||||||
this.stringifyOutput = false;
|
this.stringifyOutput = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user