@bdh-gis/mapbox-gl-edit
v1.0.0
Published
Edit for mapbox controls
Downloads
65
Readme
🏷️ @bdh-gis/mapbox-gl-edit
编辑
npm i @bdh-gis/mapbox-gl-edit
import Edit from '@bdh-gis/mapbox-gl-edit';
// import '@bdh-gis/mapbox-gl-edit/src/index.css';
import '@bdh-gis/mapbox-gl-edit/src/dark.css';
map.addControl(new Edit({
}));
Options
export type AnyEvent = "CONTROL_BUTTON_CLICK" | "CREATE_BUTTONS";
export type Options = {
isCreateButtons?: boolean;
buttons?: Utils.ButtonOptions[];
onEvents?: (event: AnyEvent, data?: any) => void;
};