Skip to content

Commit

Permalink
Update position.js (#2086)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonnyandersson authored Nov 21, 2024
1 parent 873b700 commit 2733f4a
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 2733f4a

Please sign in to comment.