dispatchRenderEvent(type, frameState) {
    const map = this.getMap();
    if (map.hasListener(type)) {
      const event = new RenderEvent(type, undefined, frameState);
      map.dispatchEvent(event);
    }
  }
@param {import("../render/EventType.js").default} type Event type.
@param {import("../Map.js").FrameState} frameState Frame state.
@override