Rename goog.DEBUG to ol.DEBUG
This commit is contained in:
@@ -118,7 +118,7 @@ ol.renderer.webgl.ImageLayer.prototype.prepareFrame = function(frameState, layer
|
||||
if (!ol.ENABLE_RASTER_REPROJECTION) {
|
||||
var sourceProjection = imageSource.getProjection();
|
||||
if (sourceProjection) {
|
||||
goog.DEBUG && console.assert(ol.proj.equivalent(projection, sourceProjection),
|
||||
ol.DEBUG && console.assert(ol.proj.equivalent(projection, sourceProjection),
|
||||
'projection and sourceProjection are equivalent');
|
||||
projection = sourceProjection;
|
||||
}
|
||||
@@ -149,7 +149,7 @@ ol.renderer.webgl.ImageLayer.prototype.prepareFrame = function(frameState, layer
|
||||
}
|
||||
|
||||
if (image) {
|
||||
goog.DEBUG && console.assert(texture, 'texture is truthy');
|
||||
ol.DEBUG && console.assert(texture, 'texture is truthy');
|
||||
|
||||
var canvas = this.mapRenderer.getContext().getCanvas();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user