Browse Source

格式化代码

上海一张图
陈鹏飞 4 years ago
parent
commit
4d34dfd341
  1. 2
      src/modules/map/declare/keda-map.ts
  2. 3
      src/modules/map/declare/map.d.ts

2
src/modules/map/declare/keda-map.ts

@ -8,7 +8,7 @@ export class KeDaMap implements IMap {
opt.configUrl = ""; opt.configUrl = "";
this.self = new KMap(opt); this.self = new KMap(opt);
} }
setAdministrativeAreaStyle() { //自定义 行政区划 样式 setAdministrativeAreaStyle(conponent: any, getData?: Function, setData?: Function) { //自定义 行政区划 样式
throw new Error('Method not implemented.'); throw new Error('Method not implemented.');
} }
setBounds(zoom?: any, x?: any, y?: any, is?: boolean) { setBounds(zoom?: any, x?: any, y?: any, is?: boolean) {

3
src/modules/map/declare/map.d.ts vendored

@ -4,7 +4,6 @@ export interface ISelf {
} }
export interface IMap extends ISelf { export interface IMap extends ISelf {
//_component:any;
on(eventName: string, callback: Function); on(eventName: string, callback: Function);
plugin(eventName: string[]|string, callback: Function); plugin(eventName: string[]|string, callback: Function);
add(obj: IMarker|any): any; add(obj: IMarker|any): any;
@ -22,7 +21,7 @@ export interface IMap extends ISelf {
getCenter(): any; getCenter(): any;
getBounds(): any; getBounds(): any;
distance(a:number[],b:number[]): any; distance(a:number[],b:number[]): any;
setAdministrativeAreaStyle(conponent:any,getData?:Function, setData?:Function): any; //自定义 行政区划 样式 setAdministrativeAreaStyle(conponent:any,getData?:Function,setData?:Function): any; //自定义 行政区划 样式
} }
export interface IMapOptions { export interface IMapOptions {

Loading…
Cancel
Save