Skip to content

Commit

Permalink
Merge pull request #4072 from camptocamp/FeatureHashOptions
Browse files Browse the repository at this point in the history
Add defaultValues in ngeox.format.FeatureHashOptions
  • Loading branch information
sbrunner committed Jul 30, 2018
2 parents 85dc568 + 1e2b2fa commit 67f3965
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions options/ngeox.js
Original file line number Diff line number Diff line change
Expand Up @@ -1325,6 +1325,7 @@ ngeox.format = {};
/**
* @typedef {{
* accuracy: (number|undefined),
* defaultValues: (Object.<string, function(ol.Feature)>|undefined),
* encodeStyles: (boolean|undefined),
* properties: (function(ol.Feature): Object.<string, (string|undefined)>|undefined),
* setStyle: (boolean|undefined)
Expand All @@ -1339,6 +1340,11 @@ ngeox.format.FeatureHashOptions;
*/
ngeox.format.FeatureHashOptions.prototype.accuracy;

/**
* @type {Object.<string, function(ol.Feature)>|undefined}
*/
ngeox.format.FeatureHashOptions.prototype.defaultValues;


/**
* Encode styles. Optional. Default is `true`.
Expand Down
2 changes: 1 addition & 1 deletion src/ol-ext/format/featurehash.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ ngeo.format.FeatureHash = function(opt_options) {
ngeo.format.FeatureHashLegacyProperties_ = (options.propertiesType !== undefined) && options.propertiesType;

/**
* @type {Object.<string, *>}
* @type {Object.<string, function(ol.Feature)>}
* @private
*/
this.defaultValues_ = options.defaultValues !== undefined ? options.defaultValues : {};
Expand Down

0 comments on commit 67f3965

Please sign in to comment.