From 8e75cf238ce6da75311b1abbf50640e0d41a3469 Mon Sep 17 00:00:00 2001 From: jgravois Date: Sat, 31 Oct 2015 18:07:31 -0700 Subject: [PATCH] dont try and remove logo twice --- src/Layers/BasemapLayer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Layers/BasemapLayer.js b/src/Layers/BasemapLayer.js index 6407876c4..6b0b7681a 100644 --- a/src/Layers/BasemapLayer.js +++ b/src/Layers/BasemapLayer.js @@ -228,7 +228,7 @@ }, onRemove: function(map){ // check to make sure the logo hasn't already been removed - if(this._logo && this._logo._container){ + if(!map._hasEsriLogo && this._logo && this._logo._container){ map.removeControl(this._logo); map._hasEsriLogo = false; }