diff --git a/src/API.js b/src/API.js
index <HASH>..<HASH> 100644
--- a/src/API.js
+++ b/src/API.js
@@ -149,6 +149,12 @@ export class API extends ol.Object {
     )
   }
 
+  setVisibleBaseLayer (id) {
+    this.map_.get('baseLayers').recursiveForEach((layer) => {
+      layer.setVisible(layer.get('id') === id)
+    })
+  }
+
   onKeyDown_ (e) {
     if (this.featureManipulationActive_ && e.which === keyCodes.ESCAPE) {
       this.endFeatureManipulationInternal_()
added setVisibleBaseLayer to API (selected by id)