add zone, add popup address, add popup zone, add remove marker, add close popup
This commit is contained in:
Vendored
+1
-2
@@ -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;
|
||||
}
|
||||
|
||||
Vendored
+1
-2
@@ -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
@@ -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,
|
||||
|
||||
Vendored
+1
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user