Skip to content

Commit

Permalink
Update position.js
Browse files Browse the repository at this point in the history
  • Loading branch information
tonnyandersson committed Nov 20, 2024
1 parent 873b700 commit 4b6d192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controls/position.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ const Position = function Position(options = {}) {
// New config format must be an array, as same epsg code can be used several times
if (options.projections instanceof Array) {
configArray = options.projections;
} else {
} else if (options.projections) {
Object.keys(options.projections).forEach(currKey => configArray.push({ projectionCode: currKey, projectionLabel: options.projections[currKey] }));
}

Expand Down

0 comments on commit 4b6d192

Please sign in to comment.