This commit is contained in:
Taric Xin
2022-03-22 15:39:43 +08:00
parent 2c996dae05
commit 1e3e5ea830
7 changed files with 47 additions and 50 deletions

View File

@ -12,6 +12,8 @@ import { Injectable } from '@angular/core';
import { Observable, Subject, throwError } from 'rxjs';
import AMapLoader from '@amap/amap-jsapi-loader';
import { amapConf } from '@conf/amap.config';
import { formatDate } from '@angular/common';
import { DateTimePickerUtil } from '@delon/util';
declare var AMap: any;
declare var AMapUI: any;
@ -110,6 +112,10 @@ export class AmapService {
});
});
}
formatTime(time: string): string {
return `${time.slice(0, 4)}-${time.slice(4, 6)}-${time.slice(6, 8)} ${time.slice(9, 11)}:${time.slice(11, 13)}:${time.slice(13, 15)}`;
}
}
export interface POI {