setOpacity(opacity) {
    this.opacity = opacity;
    this.tilesById.forEach(function(tile) {
      goog.style.setOpacity(tile.div, this.opacity);
    }, this);
  }
Sets the layer's opacity.
@param {number} opacity The layer's new opacity.