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