diff --git a/frontend-js/src/main/js/map/CustomMap.js b/frontend-js/src/main/js/map/CustomMap.js
index 645ec933aef4ad0c06aba04133215003d708f89d..5a8dbde9765ffeb5f2f106377da59b32ae1acf35 100644
--- a/frontend-js/src/main/js/map/CustomMap.js
+++ b/frontend-js/src/main/js/map/CustomMap.js
@@ -195,19 +195,19 @@ CustomMap.prototype.updateOverlayCollection = function(overlayCollection, fitBou
 CustomMap.prototype.openLayout = function(identifier) {
   var self = this;
 
-  logger.debug("Opening layout: " + identifier);
+  logger.debug("Opening overlay: " + identifier);
 
   this.getGoogleMap().setMapTypeId(identifier);
 
   var index = null;
   for (var j = 0; j < this.getLayouts().length; j++) {
-    var layout = this.getLayouts()[j];
-    if ('cv' + layout.getId() === identifier) {
+    var overlay = this.getLayouts()[j];
+    if ('cv' + overlay.getId() === identifier) {
       index = j;
     }
   }
   if (index === null) {
-    logger.warn("Invalid layout identifier: " + identifier);
+    logger.warn("Invalid overlay identifier: " + identifier);
   }
   var submaps = self.getSubmaps();
   for (var i = 0; i < submaps.length; i++) {