|
|
|
@ -1,6 +1,5 @@
|
|
|
|
|
import { IMap, IMapOptions, IMarker, IPixel } from './map' |
|
|
|
|
declare var KMap: any; |
|
|
|
|
import $ from 'jquery'; |
|
|
|
|
|
|
|
|
|
export class KeDaMap implements IMap { |
|
|
|
|
self: any; |
|
|
|
@ -9,6 +8,12 @@ export class KeDaMap implements IMap {
|
|
|
|
|
opt.configUrl = ""; |
|
|
|
|
this.self = new KMap(opt); |
|
|
|
|
} |
|
|
|
|
getZoom() { |
|
|
|
|
throw new Error('Method not implemented.'); |
|
|
|
|
} |
|
|
|
|
getCenter() { |
|
|
|
|
throw new Error('Method not implemented.'); |
|
|
|
|
} |
|
|
|
|
on(eventName: string, callback: Function): void { |
|
|
|
|
let eventMapProfile = { |
|
|
|
|
complete: "load", |
|
|
|
@ -32,10 +37,9 @@ export class KeDaPixel implements IPixel {
|
|
|
|
|
export class KeDaMarker implements IMarker { |
|
|
|
|
self: any; |
|
|
|
|
constructor(options: any) { |
|
|
|
|
let element = $(options.content)[0]; |
|
|
|
|
let d = { |
|
|
|
|
offset: options.offset, |
|
|
|
|
element: element |
|
|
|
|
element: options.content |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|