@bdh-gis/mapbox-gl-more
v1.5.0
Published
More for mapbox controls
Downloads
20
Readme
🏷️ @bdh-gis/mapbox-gl-more
收展组件
npm i @bdh-gis/mapbox-gl-more
import More from '@bdh-gis/mapbox-gl-more';
import '@bdh-gis/mapbox-gl-more/src/index.css';
map.addControl(new More({
isActive: true,
controls: undefined
}));
Options
export type AnyEvent = "CONTROL_BUTTON_CLICK" | "CREATE_BUTTONS";
export type Options = {
isActive?: boolean;
controls?: any[];
isCreateButtons?: boolean;
buttons?: Utils.ButtonOptions[];
onEvents?: (event: AnyEvent, data?: any) => void;
};