Merge pull request #5667 from ahocevar/proj-get-null
Do not return undefined from ol.proj.get
This commit is contained in:
+1
-3
@@ -678,10 +678,8 @@ ol.proj.get = function(projectionLike) {
|
|||||||
ol.proj.addProjection(projection);
|
ol.proj.addProjection(projection);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
projection = null;
|
|
||||||
}
|
}
|
||||||
return projection;
|
return projection || null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user