Add missing check

This commit is contained in:
Tom Payne
2012-08-13 21:31:41 +02:00
parent c7f78caec9
commit d9eb9eda60
+1
View File
@@ -116,6 +116,7 @@ ol.control.Attribution.prototype.createAttributionElementsForLayer_ =
if (!map.isDef || if (!map.isDef ||
!layerVisible || !layerVisible ||
goog.isNull(attributionVisibilities) ||
!attributionVisibilities[attributionKey]) { !attributionVisibilities[attributionKey]) {
goog.style.showElement(attributionElement, false); goog.style.showElement(attributionElement, false);
} }