Rename goog.DEBUG to ol.DEBUG
This commit is contained in:
@@ -23,7 +23,7 @@ goog.require('ol.style.Image');
|
||||
*/
|
||||
ol.style.RegularShape = function(options) {
|
||||
|
||||
goog.DEBUG && console.assert(
|
||||
ol.DEBUG && console.assert(
|
||||
options.radius !== undefined || options.radius1 !== undefined,
|
||||
'must provide either "radius" or "radius1"');
|
||||
|
||||
@@ -363,7 +363,7 @@ ol.style.RegularShape.prototype.render_ = function(atlasManager) {
|
||||
var info = atlasManager.add(
|
||||
id, size, size, this.draw_.bind(this, renderOptions),
|
||||
renderHitDetectionCallback);
|
||||
goog.DEBUG && console.assert(info, 'shape size is too large');
|
||||
ol.DEBUG && console.assert(info, 'shape size is too large');
|
||||
|
||||
this.canvas_ = info.image;
|
||||
this.origin_ = [info.offsetX, info.offsetY];
|
||||
|
||||
Reference in New Issue
Block a user