@bdh-gis/mapbox-gl-curtain
v1.5.0
Published
Curtain for mapbox controls
Downloads
25
Readme
🏷️ @bdh-gis/mapbox-gl-curtain
分屏对比
npm i @bdh-gis/mapbox-gl-curtain
import Curtain from '@bdh-gis/mapbox-gl-curtain';
import '@bdh-gis/mapbox-gl-curtain/src/index.css';
map.addControl(new Curtain({
}));
Options
export type AnyEvent = "CONTROL_BUTTON_CLICK" | "CREATE_BUTTONS";
export type Options = {
isCreateButtons?: boolean;
buttons?: Utils.ButtonOptions[];
onEvents?: (event: AnyEvent, data?: any) => void;
};