Getting rid of compiler warnings.
This commit is contained in:
@@ -42,7 +42,7 @@ ol.control.Navigation.prototype.deactivate = function() {
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {ol.event.DragEvent} evt
|
||||
* @param {Object} evt
|
||||
*/
|
||||
ol.control.Navigation.prototype.moveMap = function(evt) {
|
||||
this.getMap().moveByPx(evt.dx, evt.dy);
|
||||
|
||||
@@ -76,7 +76,7 @@ ol.control.Zoom.prototype.deactivate = function() {
|
||||
* @param {Event} evt
|
||||
*/
|
||||
ol.control.Zoom.prototype.handle = function(evt) {
|
||||
var target = /** @type {Node} */ evt.target,
|
||||
var target = /** @type {Node} */ (evt.target),
|
||||
handled = false;
|
||||
if (goog.dom.getAncestorByClass(target, ol.control.Zoom.RES.IN_CLS)) {
|
||||
this.getMap().zoomIn();
|
||||
|
||||
Reference in New Issue
Block a user