UNPKG

548 BTypeScriptView Raw
1
2export interface map_options {
3
4 /**
5 * 配置统一类型,默认‘eoap’,表示使用「等角斜方位投影」
6 */
7 type: string,
8
9 /**
10 * 设置缩放比例,默认1
11 */
12 scale: number,
13
14 /**
15 * 设置旋转中心,你可以把你绘制的部分的中心的经纬度设置为中心,默认[107, 36]
16 */
17 center: [longitude?: number, latitude?: number]
18}
19
20/**
21 * 地图投影对象
22 */
23export interface map {
24
25 /**
26 * 配置地图投影
27 */
28 config(config?: map_options): map
29
30}