Don't attempt to display the mouse position if the frameState is null
This commit is contained in:
1 parent
04344ed184
commit
23f09937bc
1 file changed
+1
-1
@@ -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)) {
|
||||
|
||||
Reference in new issue
Block a user