From 23f09937bc316feb2e0aae7d6bdc19fae9e34ca7 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Fri, 21 Jun 2013 12:27:39 +0200 Subject: [PATCH] Don't attempt to display the mouse position if the frameState is null --- src/ol/control/mousepositioncontrol.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/control/mousepositioncontrol.js b/src/ol/control/mousepositioncontrol.js index b4b62d3c07..03373d53fd 100644 --- a/src/ol/control/mousepositioncontrol.js +++ b/src/ol/control/mousepositioncontrol.js @@ -230,7 +230,7 @@ goog.exportProperty( */ ol.control.MousePosition.prototype.updateHTML_ = function(pixel) { var html = this.undefinedHTML_; - if (!goog.isNull(pixel)) { + if (!goog.isNull(pixel) && !goog.isNull(this.mapProjection_)) { if (goog.isNull(this.transform_)) { var projection = this.getProjection(); if (goog.isDef(projection)) {