2019-10-21 14:37:35 +08:00
|
|
|
/// <reference path="../../../node_modules/@types/amap-js-api/index.d.ts" />
|
2019-10-24 21:23:15 +08:00
|
|
|
|
|
|
|
import { IControl } from 'mapbox-gl';
|
|
|
|
|
2019-10-08 19:20:12 +08:00
|
|
|
interface Window {
|
|
|
|
onLoad: () => void;
|
|
|
|
}
|
|
|
|
interface IAMapEvent {
|
|
|
|
camera: {
|
|
|
|
fov: number;
|
|
|
|
near: number;
|
|
|
|
far: number;
|
|
|
|
height: number;
|
2019-10-24 21:23:15 +08:00
|
|
|
pitch: number;
|
|
|
|
rotation: number;
|
2019-10-08 19:20:12 +08:00
|
|
|
aspect: number;
|
2019-10-24 21:23:15 +08:00
|
|
|
position: { x: number; y: number };
|
|
|
|
};
|
2019-10-08 19:20:12 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
interface IAMapInstance {
|
2019-10-24 21:23:15 +08:00
|
|
|
get(key: string): unknown;
|
2019-10-08 19:20:12 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
interface IMapboxInstance {
|
2019-10-24 21:23:15 +08:00
|
|
|
_controls: IControl[];
|
2019-10-08 19:20:12 +08:00
|
|
|
transform: {
|
|
|
|
width: number;
|
|
|
|
height: number;
|
2019-10-24 21:23:15 +08:00
|
|
|
};
|
2019-10-08 19:20:12 +08:00
|
|
|
}
|