@bdh-gis/mapbox-gl-fullscreen
TypeScript icon, indicating that this package has built-in type declarations

1.5.0 • Public • Published

<< 所有组件

🏷️ @bdh-gis/mapbox-gl-fullscreen

全屏

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({
}));

Options

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;
};

Readme

Keywords

none

Package Sidebar

Install

npm i @bdh-gis/mapbox-gl-fullscreen

Weekly Downloads

8

Version

1.5.0

License

MIT

Unpacked Size

20 kB

Total Files

10

Last publish

Collaborators

  • shenyong