From 8d5fcafeb0e20cd93b771e4e0b5c341ce3397001 Mon Sep 17 00:00:00 2001 From: Molly Lloyd Date: Mon, 19 Jun 2017 17:03:41 -0700 Subject: [PATCH] _updateLogo onAdd --- src/ui/control/logo_control.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ui/control/logo_control.js b/src/ui/control/logo_control.js index 3215011d7eb..cd75363dd2f 100644 --- a/src/ui/control/logo_control.js +++ b/src/ui/control/logo_control.js @@ -29,6 +29,7 @@ class LogoControl { this._container.style.display = 'none'; this._map.on('sourcedata', this._updateLogo); + this._updateLogo(); return this._container; } @@ -42,7 +43,7 @@ class LogoControl { } _updateLogo(e) { - if (e && e.sourceDataType === 'metadata') { + if (!e || e.sourceDataType === 'metadata') { this._container.style.display = this._logoRequired() ? 'block' : 'none'; } }