Browse Source

[修正] 修正绝对路径错误

上海一张图
陈鹏飞 3 years ago
parent
commit
83051f19d8
  1. 10
      src/modules/map/declare/keda-map.ts
  2. 5
      tsconfig.json

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

@ -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
};

5
tsconfig.json

@ -1,10 +1,7 @@
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./src/",
"paths": {
"@app/*": ["app/*"],
},
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,

Loading…
Cancel
Save