Make ol.Map.isDef stricter

This commit is contained in:
Tom Payne
2012-07-29 14:17:25 +02:00
parent adfbf2ae7b
commit a8664df76b
4 changed files with 9 additions and 7 deletions

View File

@@ -108,7 +108,7 @@ ol.control.Drag.prototype.handleMapBrowserEvent = function(mapBrowserEvent) {
this.startY = browserEvent.clientY;
this.deltaX = 0;
this.deltaY = 0;
this.startCenter = /** @type {ol.Coordinate} */ map.getCenter();
this.startCenter = /** @type {!ol.Coordinate} */ map.getCenter();
this.startCoordinate = /** @type {ol.Coordinate} */
mapBrowserEvent.getCoordinate();
if (this.handleDragStart(mapBrowserEvent)) {