--- title: Fullscreen order: 5 --- Used to control map areas**full screen**and**Exit Full Screen**control button control. ## use [Example](/en/examples/component/control/fullscreen/) ```ts import { Scene, Fullscreen } from '@antv/l7'; const scene = new Scene({ // ... }); scene.on('loaded', () => { const fullscreen = new Fullscreen({ btnText: '全屏', exitBtnText: '退出全屏', }); scene.addControl(fullscreen); }); ``` ## Configuration | name | illustrate | type | | ----------- | --------------------------------------------- | --------------------------- | | exitBtnIcon | Exit full screen button icon | `HTMLElement`\|`SVGElement` | | exitBtnText | Text for exit full screen button | `string` | | exitTitle | Exit full screen button text`title`Attributes | `string` | ## method | name | illustrate | type | | ---------------- | --------------------------------------------------------------- | ------------ | | toggleFullscreen | Enter/exit the full screen state of the full screen map section | `() => void` | ## event | name | illustrate | type | | ---------------- | -------------------------------------------- | --------------------------------- | | fullscreenChange | Triggered when the full screen state changes | `(isFullscreen: boolean) => void` |