import { ILngLat, IMap, IMapOptions, IMarker, IPixel } from './map' declare var KMap: any; export class KeDaMap implements IMap { self: any; constructor(container: string, options: IMapOptions) { let opt = Object.assign({}, { containerId: container }, options) as any; opt.configUrl = ""; this.self = new KMap(opt); } setBounds(zoom?: any, x?: any, y?: any, is?: boolean) { throw new Error('Method not implemented.'); } setFitView(options: any) { throw new Error('Method not implemented.'); } containerToLngLat(e: any) { throw new Error('Method not implemented.'); } clearMap() { throw new Error('Method not implemented.'); } distance(a: number[], b: number[]) { throw new Error('Method not implemented.'); } getCity(callback: Function) { throw new Error('Method not implemented.'); } setZoomAndCenter(zoom: number, pos: number[]) { throw new Error('Method not implemented.'); } plugin(eventName: string[], callback: Function) { throw new Error('Method not implemented.'); } getBounds() { throw new Error('Method not implemented.'); } discriminator= 'ISelf'; add(obj: any) { throw new Error('Method not implemented.'); } remove(obj: any) { throw new Error('Method not implemented.'); } setCity(city: string) { throw new Error('Method not implemented.'); } setZoom(zoom) { throw new Error('Method not implemented.'); } setCenter([x, y]) { throw new Error('Method not implemented.'); } getZoom() { throw new Error('Method not implemented.'); } getCenter() { throw new Error('Method not implemented.'); } on(eventName: string, callback: Function): void { let eventMapProfile = { complete: "load", click: "click", rightclick: "contextmenu" }; this.self.addEventOnMap({ event: eventMapProfile[eventName], handler: callback }); } } export class KeDaPixel implements IPixel { self: any; constructor(x: number, y: number) { this.self = [x, y]; } discriminator= 'ISelf'; } export class KeDaMarker implements IMarker { self: any; constructor(options: any) { let d = { offset: options.offset, element: options.content }; this.self = d; } setContent(html: string) { throw new Error('Method not implemented.'); } setPosition(x: number[]) { throw new Error('Method not implemented.'); } _position: number[]; setMap() { throw new Error('Method not implemented.'); } get id(): string { throw new Error('Method not implemented.'); } set id(str: string) { throw new Error('Method not implemented.'); } on(eventName: string, callback: Function): void { throw new Error('Method not implemented.'); } discriminator= 'ISelf'; } export class KeDaLngLat implements ILngLat { self: any; constructor(x: number, y: number) { this.self = new KMap.LngLat(x, y); } offset(x: number, y: number) { throw new Error('Method not implemented.'); } discriminator= 'ISelf'; }