Add support for OSM vector tiles
This commit is contained in:
@@ -677,12 +677,14 @@ ol.proj.get = function(projectionLike) {
|
||||
ol.proj.equivalent = function(projection1, projection2) {
|
||||
if (projection1 === projection2) {
|
||||
return true;
|
||||
} else if (projection1.getCode() === projection2.getCode()) {
|
||||
return projection1.getUnits() === projection2.getUnits();
|
||||
}
|
||||
var equalUnits = projection1.getUnits() === projection2.getUnits();
|
||||
if (projection1.getCode() === projection2.getCode()) {
|
||||
return equalUnits;
|
||||
} else {
|
||||
var transformFn = ol.proj.getTransformFromProjections(
|
||||
projection1, projection2);
|
||||
return transformFn === ol.proj.cloneTransform;
|
||||
return transformFn === ol.proj.cloneTransform && equalUnits;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user