Use ol.math.clamp instead of goog.math.clamp
This commit is contained in:
@@ -149,14 +149,14 @@ ol.reproj.render = function(width, height, pixelRatio,
|
||||
});
|
||||
if (!goog.isNull(sourceExtent)) {
|
||||
if (wrapXType == ol.reproj.WrapXRendering_.NONE) {
|
||||
srcDataExtent[0] = goog.math.clamp(
|
||||
srcDataExtent[0] = ol.math.clamp(
|
||||
srcDataExtent[0], sourceExtent[0], sourceExtent[2]);
|
||||
srcDataExtent[2] = goog.math.clamp(
|
||||
srcDataExtent[2] = ol.math.clamp(
|
||||
srcDataExtent[2], sourceExtent[0], sourceExtent[2]);
|
||||
}
|
||||
srcDataExtent[1] = goog.math.clamp(
|
||||
srcDataExtent[1] = ol.math.clamp(
|
||||
srcDataExtent[1], sourceExtent[1], sourceExtent[3]);
|
||||
srcDataExtent[3] = goog.math.clamp(
|
||||
srcDataExtent[3] = ol.math.clamp(
|
||||
srcDataExtent[3], sourceExtent[1], sourceExtent[3]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user