diff --git a/src/modules/map/declare/keda-map.ts b/src/modules/map/declare/keda-map.ts index 163b356..61de60b 100644 --- a/src/modules/map/declare/keda-map.ts +++ b/src/modules/map/declare/keda-map.ts @@ -8,7 +8,7 @@ export class KeDaMap implements IMap { opt.configUrl = ""; this.self = new KMap(opt); } - setAdministrativeAreaStyle() { //自定义 行政区划 样式 + setAdministrativeAreaStyle(conponent: any, getData?: Function, setData?: Function) { //自定义 行政区划 样式 throw new Error('Method not implemented.'); } setBounds(zoom?: any, x?: any, y?: any, is?: boolean) { diff --git a/src/modules/map/declare/map.d.ts b/src/modules/map/declare/map.d.ts index 805da08..9541ffd 100644 --- a/src/modules/map/declare/map.d.ts +++ b/src/modules/map/declare/map.d.ts @@ -4,7 +4,6 @@ export interface ISelf { } export interface IMap extends ISelf { - //_component:any; on(eventName: string, callback: Function); plugin(eventName: string[]|string, callback: Function); add(obj: IMarker|any): any; @@ -22,7 +21,7 @@ export interface IMap extends ISelf { getCenter(): any; getBounds(): 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 {