kwikid-agent-dashboard 0.0.49 → 0.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/kwikid-agent-dashboard.umd.js +247 -116
- package/bundles/kwikid-agent-dashboard.umd.js.map +1 -1
- package/esm2015/lib/v1/services/open-street-maps.service.js +195 -89
- package/fesm2015/kwikid-agent-dashboard.js +194 -88
- package/fesm2015/kwikid-agent-dashboard.js.map +1 -1
- package/lib/v1/services/open-street-maps.service.d.ts +14 -3
- package/package.json +1 -1
|
@@ -15,11 +15,21 @@ export declare class OpenStreetMapsService {
|
|
|
15
15
|
allTasksRoutes: any;
|
|
16
16
|
selectedTaskRoutes: any;
|
|
17
17
|
selectedTaskDistanceAndTime: any;
|
|
18
|
+
markersLayer: any;
|
|
19
|
+
private locationCache;
|
|
20
|
+
private static readonly GEOCODE_INTERVAL_MS;
|
|
21
|
+
private static readonly GEOCODE_TIMEOUT_MS;
|
|
22
|
+
private lastGeocodeAt;
|
|
23
|
+
private geocodeQueue;
|
|
24
|
+
private plotRunId;
|
|
25
|
+
private latestPlot;
|
|
18
26
|
directionsRenders: QueryList<ElementRef<google.maps.DirectionsRenderer>>;
|
|
19
27
|
constructor(agentService: AgentService, mapDirectionsService: MapDirectionsService, httpClient: HttpClient);
|
|
20
28
|
getPosition(): Promise<any>;
|
|
21
29
|
getLocation(task: any): Promise<unknown>;
|
|
22
|
-
|
|
30
|
+
private geocodeAddress;
|
|
31
|
+
private fetchLocation;
|
|
32
|
+
getMarkersLocation(myMarker: any, tasks: any): Promise<any[]>;
|
|
23
33
|
initializeMap(): Promise<void>;
|
|
24
34
|
addMarker({ lat, lng, title, color }: {
|
|
25
35
|
lat: any;
|
|
@@ -27,11 +37,12 @@ export declare class OpenStreetMapsService {
|
|
|
27
37
|
title: any;
|
|
28
38
|
color: any;
|
|
29
39
|
}): void;
|
|
30
|
-
|
|
40
|
+
clearMap(): void;
|
|
41
|
+
plotDirectionsForAllTasks(tasks: any): Promise<any[]>;
|
|
42
|
+
private plotTasks;
|
|
31
43
|
plotDirectionsForSelectedTask(task: any): void;
|
|
32
44
|
getSelectedTaskDistanceAndTime(): any;
|
|
33
45
|
setSelectedTaskDistanceAndTime(): void;
|
|
34
|
-
sortTasksAsPerDistance(order: any, tasks: any, isMarker: any): any[];
|
|
35
46
|
setRoutes(markers: any, styles: any): any;
|
|
36
47
|
fitMapBounds(): void;
|
|
37
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<OpenStreetMapsService, never>;
|