setCurrentLayerName (name, hrService) {
    let finalName = null
    if (this.current_layer) {
      const oldName = this.current_layer.getName()
      finalName = this.current_layer.setName(name, hrService)
      if (finalName) {
        delete this.layer_map[oldName]
        this.layer_map[finalName] = this.current_layer
      }
    }
    return finalName
  }
Set the current layer's name.
@param {string} name - The new name.
@param {module:history.HistoryRecordingService} hrService - History recording service
@returns {string|null} The new name if changed; otherwise, null.