Source updates for new extent structure
This commit is contained in:
@@ -154,10 +154,11 @@ ol.source.WMTS = function(options) {
|
||||
options.extent : projectionExtent;
|
||||
|
||||
if (!goog.isNull(extent) && projection.isGlobal() &&
|
||||
extent[0] === projectionExtent[0] &&
|
||||
extent[1] === projectionExtent[1]) {
|
||||
extent[0][0] === projectionExtent[0][0] &&
|
||||
extent[1][0] === projectionExtent[1][0]) {
|
||||
var numCols = Math.ceil(
|
||||
(extent[1] - extent[0]) / (tileExtent[1] - tileExtent[0]));
|
||||
(extent[1][0] - extent[0][0]) /
|
||||
(tileExtent[1][0] - tileExtent[0][0]));
|
||||
x = goog.math.modulo(x, numCols);
|
||||
tmpTileCoord.z = tileCoord.z;
|
||||
tmpTileCoord.x = x;
|
||||
|
||||
Reference in New Issue
Block a user