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