全屏
npm i @bdh-gis/mapbox-gl-fullscreen
import Fullscreen from '@bdh-gis/mapbox-gl-fullscreen';
import '@bdh-gis/mapbox-gl-fullscreen/src/index.css';
map.addControl(new Fullscreen({
}));
export type AnyEvent =
| 'CONTROL_BUTTON_CLICK'
| 'CREATE_BUTTONS'
| 'DOCUMENT_ON_FULLSCREENCHANGE'
| 'DOCUMENT_OFF_FULLSCREENCHANGE'
| 'FULLSCREEN'
| 'CANCEL_FULLSCREEN';
export type Options = {
isCreateButtons?: boolean;
buttons?: Utils.ButtonOptions[];
onEvents?: (event: AnyEvent, data?: any) => void;
};