1.5.0 • Published 12 months ago

@bdh-gis/mapbox-gl-back v1.5.0

Weekly downloads
-
License
MIT
Repository
-
Last release
12 months ago

<< 所有组件

🏷️ @bdh-gis/mapbox-gl-back

返回

npm i @bdh-gis/mapbox-gl-back
import Back from '@bdh-gis/mapbox-gl-back';
import '@bdh-gis/mapbox-gl-back/src/index.css';

map.addControl(new Back({
 location: [number, number, number, number]
}));
或者
map.addControl(new Back(
  location: {
   center: [number, number],
   zoom: number,
   bearing: number,
   pitch: number,
   duration: number
 }
));

Options

export type AnyEvent = 'CONTROL_BUTTON_CLICK' | 'CREATE_BUTTONS';
export type Location = {
  center?: [number, number];
  zoom?: number;
  bearing?: number;
  pitch?: number;
  bounds?: [number, number, number, number];
  duration?: number;
};
export type Options = {
  location?: Location;
  isCreateButtons?: boolean;
  buttons?: Utils.ButtonOptions[];
  onEvents?: (event: AnyEvent, data?: any) => void;
};
1.5.0

12 months ago

1.4.0

1 year ago

1.3.0

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago

0.0.5

1 year ago