diff --git a/src/map/spatial-reference/SpatialReference.js b/src/map/spatial-reference/SpatialReference.js index a0f8bd98d..f7dbb2aa1 100644 --- a/src/map/spatial-reference/SpatialReference.js +++ b/src/map/spatial-reference/SpatialReference.js @@ -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;