Type cast to make the compiler happy

This commit is contained in:
ahocevar
2012-09-26 15:05:52 +02:00
parent fa16adec02
commit 78c380c9a5

View File

@@ -60,7 +60,7 @@ ol.control.DragBox.prototype.startBox = function(startCoordinate) {
goog.asserts.assert(goog.isDef(this.startPixel_));
goog.style.setPosition(this.divElement_, this.startPixel_);
goog.style.setBorderBoxSize(this.divElement_, new ol.Size(0, 0));
goog.dom.append(map.getViewport(), this.divElement_);
goog.dom.append(/** @type {!Node} */ (map.getViewport()), this.divElement_);
goog.events.listen(
map, ol.MapBrowserEvent.EventType.DRAG,
this.updateBox_, false, this);