Skip to content

Commit

Permalink
fix specs
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzhenn committed Oct 20, 2023
1 parent 454554b commit 3d430e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/map/spatial-reference/SpatialReference.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ export default class SpatialReference {
instance.code = names[i];
return instance;
} else {
if (projections[p].code === names[i]) {
return projections[p];
}
const instance = extend({}, projections[p]);
instance.code = names[i];
return instance;
Expand Down

0 comments on commit 3d430e2

Please sign in to comment.