@@ -76,6 +76,8 @@ ol.source.WMTS = function(options) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var dimensions = this.dimensions_;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {string} template Template.
|
* @param {string} template Template.
|
||||||
* @return {ol.TileUrlFunctionType} Tile URL function.
|
* @return {ol.TileUrlFunctionType} Tile URL function.
|
||||||
@@ -94,7 +96,6 @@ ol.source.WMTS = function(options) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
/**
|
/**
|
||||||
* @this {ol.source.WMTS}
|
|
||||||
* @param {ol.TileCoord} tileCoord Tile coordinate.
|
* @param {ol.TileCoord} tileCoord Tile coordinate.
|
||||||
* @param {number} pixelRatio Pixel ratio.
|
* @param {number} pixelRatio Pixel ratio.
|
||||||
* @param {ol.proj.Projection} projection Projection.
|
* @param {ol.proj.Projection} projection Projection.
|
||||||
@@ -109,7 +110,7 @@ ol.source.WMTS = function(options) {
|
|||||||
'TileCol': tileCoord.x,
|
'TileCol': tileCoord.x,
|
||||||
'TileRow': tileCoord.y
|
'TileRow': tileCoord.y
|
||||||
};
|
};
|
||||||
goog.object.extend(localContext, this.dimensions_);
|
goog.object.extend(localContext, dimensions);
|
||||||
var url = template;
|
var url = template;
|
||||||
if (requestEncoding == ol.source.WMTSRequestEncoding.KVP) {
|
if (requestEncoding == ol.source.WMTSRequestEncoding.KVP) {
|
||||||
url = goog.uri.utils.appendParamsFromMap(url, localContext);
|
url = goog.uri.utils.appendParamsFromMap(url, localContext);
|
||||||
@@ -143,7 +144,6 @@ ol.source.WMTS = function(options) {
|
|||||||
* @return {ol.TileCoord} Tile coordinate.
|
* @return {ol.TileCoord} Tile coordinate.
|
||||||
*/
|
*/
|
||||||
function(tileCoord, projection, opt_tileCoord) {
|
function(tileCoord, projection, opt_tileCoord) {
|
||||||
var tileGrid = this.getTileGrid();
|
|
||||||
goog.asserts.assert(!goog.isNull(tileGrid));
|
goog.asserts.assert(!goog.isNull(tileGrid));
|
||||||
if (tileGrid.getResolutions().length <= tileCoord.z) {
|
if (tileGrid.getResolutions().length <= tileCoord.z) {
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user