setMap(map) {
    const oldMap = this.getMap();
    if (oldMap) {
      oldMap.removeChangeListener(
        MapProperty.TARGET,
        this.boundHandleMapTargetChange_,
      );
    }

    super.setMap(map);

    this.handleMapTargetChange_();
    if (map) {
      map.addChangeListener(
        MapProperty.TARGET,
        this.boundHandleMapTargetChange_,
      );
    }
  }
Remove the control from its current map and attach it to the new map.
Pass `null` to just remove the control from the current map.
Subclasses may set up event handlers to get notified about changes to
the map here.
@param {import("../Map.js").default|null} map Map.
@api
@override