Skip to content

Commit

Permalink
change to console.warn when registerPreset conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzhenn committed Nov 22, 2023
1 parent 0f248f5 commit 34cf41d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/map/spatial-reference/SpatialReference.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export default class SpatialReference {
static registerPreset(name, value) {
name = name && name.toUpperCase();
if (DefaultSpatialReference[name]) {
throw new Error(`Spatial reference ${name} already existed.`);
console.warn(`Spatial reference ${name} already registered.`);
}
DefaultSpatialReference[name] = value;
}
Expand Down

0 comments on commit 34cf41d

Please sign in to comment.