add zone, add popup address, add popup zone, add remove marker, add close popup

This commit is contained in:
2025-10-07 16:25:36 -04:00
committed by David Nguyen
parent 849a6f07a0
commit 943c4fc4ae
6 changed files with 9 additions and 195 deletions
+1 -2
View File
@@ -1,4 +1,4 @@
import {Zone, IMapAdapter, LatLng, MapOptions, Address} from './map-adapter.interface';
import {Zone, IMapAdapter, LatLng, MapOptions} from './map-adapter.interface';
export declare class LeafletAdapter implements IMapAdapter {
private map;
private deliveryCheckMarker?;
@@ -13,7 +13,6 @@ export declare class LeafletAdapter implements IMapAdapter {
addZone(zone: Zone[]): void;
updateZone(zone: Zone[]): void;
openZonePopup(zone: Zone) : void
openAddressPopup(address: Address): void;
closePopup(): void;
on(type: string, event: (e: any) => void): void;
}
+1 -2
View File
@@ -1,4 +1,4 @@
import {Address, IMapAdapter, LatLng, MapOptions, Zone} from './map-adapter.interface';
import {IMapAdapter, LatLng, MapOptions, Zone} from './map-adapter.interface';
export declare class LibreAdapter implements IMapAdapter {
private map;
private deliveryCheckMarker?;
@@ -13,7 +13,6 @@ export declare class LibreAdapter implements IMapAdapter {
addZone(zone: Zone[]): void;
updateZone(zone: Zone[]): void;
openZonePopup(zone: Zone) : void
openAddressPopup(address: Address): void;
closePopup(): void;
on(type: string, event: (e: any) => void): void;
}
-11
View File
@@ -18,16 +18,6 @@ export interface Zone {
shippingFee?: number;
deliverySchedule?: string;
}
export interface Address {
line1: string;
line2?: string;
postalCode: string;
subdivision: string;
city: string;
country: string;
shippingFee?: number;
deliverySchedule?: string;
}
export type LatLng = [number, number];
export declare function getLngLat(latLng: LatLng): [number, number];
@@ -41,7 +31,6 @@ export interface IMapAdapter {
addZone(zone: Zone[]): void;
updateZone(zone: Zone[]): void;
openZonePopup(zone: Zone) : void
openAddressPopup(address: Address): void;
closePopup(): void;
on(
type: string,
+1 -2
View File
@@ -1,4 +1,4 @@
import {IMapAdapter, MapOptions, LatLng, Zone, Address} from './map-adapter.interface';
import {IMapAdapter, MapOptions, LatLng, Zone} from './map-adapter.interface';
export declare class MapFacade implements IMapAdapter {
private readonly adapter;
private readonly leafletZoomOffset;
@@ -12,7 +12,6 @@ export declare class MapFacade implements IMapAdapter {
addZone(zone: Zone[]): void;
updateZone(zone: Zone[]): void;
openZonePopup(zone: Zone) : void
openAddressPopup(address: Address): void;
closePopup(): void;
on(type: string, event: (e: any) => void): void;
}