Use goog.DEBUG instead of ol.DEBUG for now
This commit is contained in:
@@ -87,7 +87,7 @@ ol.interaction.KeyboardPan.handleEvent = function(mapBrowserEvent) {
|
||||
keyCode == ol.events.KeyCode.UP)) {
|
||||
var map = mapBrowserEvent.map;
|
||||
var view = map.getView();
|
||||
ol.DEBUG && console.assert(view, 'map must have view');
|
||||
goog.DEBUG && console.assert(view, 'map must have view');
|
||||
var mapUnitsDelta = view.getResolution() * this.pixelDelta_;
|
||||
var deltaX = 0, deltaY = 0;
|
||||
if (keyCode == ol.events.KeyCode.DOWN) {
|
||||
|
||||
Reference in New Issue
Block a user