edit
This commit is contained in:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user