Rename goog.DEBUG to ol.DEBUG
This commit is contained in:
@@ -17,7 +17,7 @@ goog.require('ol.tilegrid.TileGrid');
|
||||
*/
|
||||
ol.tilegrid.WMTS = function(options) {
|
||||
|
||||
goog.DEBUG && console.assert(
|
||||
ol.DEBUG && console.assert(
|
||||
options.resolutions.length == options.matrixIds.length,
|
||||
'options resolutions and matrixIds must have equal length (%s == %s)',
|
||||
options.resolutions.length, options.matrixIds.length);
|
||||
@@ -48,7 +48,7 @@ ol.inherits(ol.tilegrid.WMTS, ol.tilegrid.TileGrid);
|
||||
* @return {string} MatrixId..
|
||||
*/
|
||||
ol.tilegrid.WMTS.prototype.getMatrixId = function(z) {
|
||||
goog.DEBUG && console.assert(0 <= z && z < this.matrixIds_.length,
|
||||
ol.DEBUG && console.assert(0 <= z && z < this.matrixIds_.length,
|
||||
'attempted to retrieve matrixId for illegal z (%s)', z);
|
||||
return this.matrixIds_[z];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user