Calling getTileSize with z argument
Thanks for catching this @twpayne.
This commit is contained in:
@@ -83,7 +83,7 @@ ol.TileUrlFunction.createWMSParams =
|
|||||||
if (goog.isNull(tileCoord)) {
|
if (goog.isNull(tileCoord)) {
|
||||||
return undefined;
|
return undefined;
|
||||||
} else {
|
} else {
|
||||||
var size = tileGrid.getTileSize();
|
var size = tileGrid.getTileSize(tileCoord.z);
|
||||||
var extent = tileGrid.getTileCoordExtent(tileCoord);
|
var extent = tileGrid.getTileCoordExtent(tileCoord);
|
||||||
return ol.source.wms.getUrl(
|
return ol.source.wms.getUrl(
|
||||||
baseUrl, params, extent, size, projection, opt_version);
|
baseUrl, params, extent, size, projection, opt_version);
|
||||||
|
|||||||
Reference in New Issue
Block a user