@ambl-on/lcu-ambl-on-common
Advanced tools
Comparing version 0.2.436-my-atlas to 0.3.1-integration
@@ -46,7 +46,3 @@ /** | ||
: this.tempStorage.GetMapList()[0]; | ||
this.mapList = this.tempStorage.GetMapList().filter((/** | ||
* @param {?} map | ||
* @return {?} | ||
*/ | ||
map => map.id !== this.primaryMap.id)); | ||
// this.mapList = this.tempStorage.GetMapList().filter(map => map.id !== this.primaryMap.id); | ||
this.MapChanged = new EventEmitter(); | ||
@@ -317,2 +313,3 @@ this.HamburgerMenuSubject = new Subject(); | ||
const mapMarkers = this.convertLocationDataToMapMarkers(locations); | ||
console.log('locations after being converted...: ', mapMarkers); | ||
return this.formatLocationList(mapMarkers, mapId); | ||
@@ -380,2 +377,3 @@ } | ||
convertLocationDataToMapMarkers(locations) { | ||
console.log('locations being passed into "convertLocation...:"', locations); | ||
return locations.map((/** | ||
@@ -386,3 +384,4 @@ * @param {?} location | ||
location => { | ||
return (/** @type {?} */ ({ | ||
return { | ||
ID: location.ID, | ||
address: location.Address, | ||
@@ -396,3 +395,3 @@ iconName: location.Icon, | ||
country: location.Country, | ||
})); | ||
}; | ||
})); | ||
@@ -472,2 +471,2 @@ } | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFwLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYW1ibC1vbi9sY3UtYW1ibC1vbi1jb21tb24vIiwic291cmNlcyI6WyJsaWIvc2VydmljZXMvbWFwLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsWUFBWSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pELE9BQU8sRUFBRSxhQUFhLEVBQXlCLE1BQU0sNkJBQTZCLENBQUM7QUFDbkYsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sZ0NBQWdDLENBQUM7QUFDcEUsT0F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oZSBuZXcgcHJpbWFyeSBtYXBcclxuICAgKi9cclxuICBwcm90ZWN0ZWQgc2V0TWFwc1dpdGhQcmltYXJ5SWQoaWQ6IHN0cmluZyk6IHZvaWQge1xyXG4gICAgdGhpcy5NYXBDaGFuZ2VkLmVtaXQodGhpcy5wcmltYXJ5TWFwKTtcclxuICB9XHJcblxyXG4gIHByb3RlY3RlZCBjb252ZXJ0TG9jYXRpb25EYXRhVG9NYXBNYXJrZXJzKGxvY2F0aW9uczogYW55W10pIHtcclxuICAgIGNvbnNvbGUubG9nKCdsb2NhdGlvbnMgYmVpbmcgcGFzc2VkIGludG8gXCJjb252ZXJ0TG9jYXRpb24uLi46XCInLCBsb2NhdGlvbnMpXHJcbiAgICByZXR1cm4gbG9jYXRpb25zLm1hcChsb2NhdGlvbiA9PiB7XHJcbiAgICAgIHJldHVybiB7XHJcbiAgICAgICAgSUQ6IGxvY2F0aW9uLklELFxyXG4gICAgICAgIGFkZHJlc3M6IGxvY2F0aW9uLkFkZHJlc3MsXHJcbiAgICAgICAgaWNvbk5hbWU6IGxvY2F0aW9uLkljb24sXHJcbiAgICAgICAgdGl0bGU6IGxvY2F0aW9uLlRpdGxlLFxyXG4gICAgICAgIGxhdDogbG9jYXRpb24uTGF0aXR1ZGUsXHJcbiAgICAgICAgbG5nOiBsb2NhdGlvbi5Mb25naXR1ZGUsXHJcbiAgICAgICAgcGhvbmVOdW1iZXI6IGxvY2F0aW9uLlRlbGVwaG9uZSxcclxuICAgICAgICB0b3duOiBsb2NhdGlvbi5Ub3duLFxyXG4gICAgICAgIGNvdW50cnk6IGxvY2F0aW9uLkNvdW50cnksXHJcbiAgICAgICAgLy8gaWNvblVybDpudWxsXHJcbiAgICAgIH07XHJcbiAgICB9KTtcclxuICB9XHJcbn1cclxuIl19 |
@@ -24,4 +24,6 @@ /** | ||
*/ | ||
SetSelectedMap(mapId) { | ||
this.state.Loading = true; | ||
SetPrimaryMap(mapId) { | ||
if (this.state) { | ||
this.state.Loading = true; | ||
} | ||
this.Execute({ | ||
@@ -31,5 +33,52 @@ Arguments: { | ||
}, | ||
Type: 'set-selected-map' | ||
Type: 'set-primary-map' | ||
}); | ||
} | ||
/** | ||
* @param {?} mapId | ||
* @return {?} | ||
*/ | ||
AddSelectedMap(mapId) { | ||
if (this.state) { | ||
this.state.Loading = true; | ||
} | ||
this.Execute({ | ||
Arguments: { | ||
MapID: mapId | ||
}, | ||
Type: 'add-selected-map' | ||
}); | ||
} | ||
/** | ||
* @param {?} mapId | ||
* @return {?} | ||
*/ | ||
RemoveSelectedMap(mapId) { | ||
if (this.state) { | ||
this.state.Loading = true; | ||
} | ||
this.Execute({ | ||
Arguments: { | ||
MapID: mapId | ||
}, | ||
Type: 'remove-selected-map' | ||
}); | ||
} | ||
/** | ||
* @param {?} map | ||
* @param {?} locations | ||
* @return {?} | ||
*/ | ||
AddMap(map, locations) { | ||
if (this.state) { | ||
this.state.Loading = true; | ||
} | ||
this.Execute({ | ||
Arguments: { | ||
Map: map, | ||
Locations: locations | ||
}, | ||
Type: 'add-map' | ||
}); | ||
} | ||
// Helpers | ||
@@ -84,2 +133,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlcnMtc3RhdGUtbWFuYWdlci5jb250ZXh0LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFtYmwtb24vbGN1LWFtYmwtb24tY29tbW9uLyIsInNvdXJjZXMiOlsibGliL3N0YXRlL3VzZXJzL3VzZXJzLXN0YXRlLW1hbmFnZXIuY29udGV4dC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3JELE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLGlCQUFpQixDQUFDOztBQU10RCxNQUFNLE9BQU8sd0JBQXlCLFNBQVEsbUJBQStCOzs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dWx0VmFsdWUoKSB7XHJcbiAgICByZXR1cm4gPFVzZXJzU3RhdGU+eyBMb2FkaW5nOiB0cnVlIH07XHJcbiAgfVxyXG5cclxuICBwcm90ZWN0ZWQgYXN5bmMgbG9hZFN0YXRlS2V5KCkge1xyXG4gICAgcmV0dXJuICdtYWluJztcclxuICB9XHJcblxyXG4gIHByb3RlY3RlZCBhc3luYyBsb2FkU3RhdGVOYW1lKCkge1xyXG4gICAgcmV0dXJuICd1c2Vycyc7XHJcbiAgfVxyXG59XHJcbiJdfQ== |
@@ -11,4 +11,6 @@ /** | ||
/** @type {?} */ | ||
UsersState.prototype.SelectedMapID; | ||
UsersState.prototype.PrimaryMapID; | ||
/** @type {?} */ | ||
UsersState.prototype.SelectedMapIDs; | ||
/** @type {?} */ | ||
UsersState.prototype.SelectedMapLocations; | ||
@@ -18,2 +20,2 @@ /** @type {?} */ | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlcnMtc3RhdGUubW9kZWwuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYW1ibC1vbi9sY3UtYW1ibC1vbi1jb21tb24vIiwic291cmNlcyI6WyJsaWIvc3RhdGUvdXNlcnMvdXNlcnMtc3RhdGUubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE1BQU0sT0FBTyxVQUFVO0NBUXRCOzs7SUFQQyw2QkFBeUI7O0lBRXpCLG1DQUE4Qjs7SUFFOUIsMENBQW9DOztJQUVwQyw4QkFBd0IiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY2xhc3MgVXNlcnNTdGF0ZSB7XHJcbiAgcHVibGljIExvYWRpbmc/OiBib29sZWFuO1xyXG5cclxuICBwdWJsaWMgU2VsZWN0ZWRNYXBJRD86IHN0cmluZztcclxuXHJcbiAgcHVibGljIFNlbGVjdGVkTWFwTG9jYXRpb25zPzogYW55W107XHJcblxyXG4gIHB1YmxpYyBVc2VyTWFwcz86IGFueVtdO1xyXG59XHJcbiJdfQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlcnMtc3RhdGUubW9kZWwuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYW1ibC1vbi9sY3UtYW1ibC1vbi1jb21tb24vIiwic291cmNlcyI6WyJsaWIvc3RhdGUvdXNlcnMvdXNlcnMtc3RhdGUubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE1BQU0sT0FBTyxVQUFVO0NBVXRCOzs7SUFUQyw2QkFBeUI7O0lBRXpCLGtDQUE2Qjs7SUFFN0Isb0NBQThCOztJQUU5QiwwQ0FBb0M7O0lBRXBDLDhCQUF3QiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjbGFzcyBVc2Vyc1N0YXRlIHtcclxuICBwdWJsaWMgTG9hZGluZz86IGJvb2xlYW47XHJcblxyXG4gIHB1YmxpYyBQcmltYXJ5TWFwSUQ/OiBzdHJpbmc7XHJcblxyXG4gIHB1YmxpYyBTZWxlY3RlZE1hcElEcz86IGFueVtdO1xyXG5cclxuICBwdWJsaWMgU2VsZWN0ZWRNYXBMb2NhdGlvbnM/OiBhbnlbXTtcclxuXHJcbiAgcHVibGljIFVzZXJNYXBzPzogYW55W107XHJcbn1cclxuIl19 |
@@ -18,3 +18,2 @@ /** | ||
function MapService(tempStorage, locLoader) { | ||
var _this = this; | ||
this.tempStorage = tempStorage; | ||
@@ -44,7 +43,3 @@ this.locLoader = locLoader; | ||
: this.tempStorage.GetMapList()[0]; | ||
this.mapList = this.tempStorage.GetMapList().filter((/** | ||
* @param {?} map | ||
* @return {?} | ||
*/ | ||
function (map) { return map.id !== _this.primaryMap.id; })); | ||
// this.mapList = this.tempStorage.GetMapList().filter(map => map.id !== this.primaryMap.id); | ||
this.MapChanged = new EventEmitter(); | ||
@@ -520,2 +515,3 @@ this.HamburgerMenuSubject = new Subject(); | ||
var mapMarkers = this.convertLocationDataToMapMarkers(locations); | ||
console.log('locations after being converted...: ', mapMarkers); | ||
return this.formatLocationList(mapMarkers, mapId); | ||
@@ -638,2 +634,3 @@ }; | ||
function (locations) { | ||
console.log('locations being passed into "convertLocation...:"', locations); | ||
return locations.map((/** | ||
@@ -644,3 +641,4 @@ * @param {?} location | ||
function (location) { | ||
return (/** @type {?} */ ({ | ||
return { | ||
ID: location.ID, | ||
address: location.Address, | ||
@@ -654,3 +652,3 @@ iconName: location.Icon, | ||
country: location.Country, | ||
})); | ||
}; | ||
})); | ||
@@ -732,2 +730,2 @@ }; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFwLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYW1ibC1vbi9sY3UtYW1ibC1vbi1jb21tb24vIiwic291cmNlcyI6WyJsaWIvc2VydmljZXMvbWFwLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsWUFBWSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pELE9BQU8sRUFBRSxhQUFhLEVBQXlCLE1BQU0sNkJBQTZCLENBQUM7QUFDbkYsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sZ0NBQWdDLENBQUM7QUFDcEUsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUMvQixPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sOEJBQThCLENBQUM7QUFDekQsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDNUQsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLDBCQUEwQixDQUFDOzs7O0FBRzFEO0lBc0RFLGVBQWU7SUFFZixvQkFBc0IsV0FBK0IsRUFBWSxTQUF5QjtRQUExRixp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NvbixcclxuICAgICAgICB0aXRsZTogbG9jYXRpb24uVGl0bGUsXHJcbiAgICAgICAgbGF0OiBsb2NhdGlvbi5MYXRpdHVkZSxcclxuICAgICAgICBsbmc6IGxvY2F0aW9uLkxvbmdpdHVkZSxcclxuICAgICAgICBwaG9uZU51bWJlcjogbG9jYXRpb24uVGVsZXBob25lLFxyXG4gICAgICAgIHRvd246IGxvY2F0aW9uLlRvd24sXHJcbiAgICAgICAgY291bnRyeTogbG9jYXRpb24uQ291bnRyeSxcclxuICAgICAgICAvLyBpY29uVXJsOm51bGxcclxuICAgICAgfTtcclxuICAgIH0pO1xyXG4gIH1cclxufVxyXG4iXX0= |
@@ -24,3 +24,3 @@ /** | ||
*/ | ||
UsersStateManagerContext.prototype.SetSelectedMap = | ||
UsersStateManagerContext.prototype.SetPrimaryMap = | ||
// API Methods | ||
@@ -32,3 +32,5 @@ /** | ||
function (mapId) { | ||
this.state.Loading = true; | ||
if (this.state) { | ||
this.state.Loading = true; | ||
} | ||
this.Execute({ | ||
@@ -38,5 +40,65 @@ Arguments: { | ||
}, | ||
Type: 'set-selected-map' | ||
Type: 'set-primary-map' | ||
}); | ||
}; | ||
/** | ||
* @param {?} mapId | ||
* @return {?} | ||
*/ | ||
UsersStateManagerContext.prototype.AddSelectedMap = /** | ||
* @param {?} mapId | ||
* @return {?} | ||
*/ | ||
function (mapId) { | ||
if (this.state) { | ||
this.state.Loading = true; | ||
} | ||
this.Execute({ | ||
Arguments: { | ||
MapID: mapId | ||
}, | ||
Type: 'add-selected-map' | ||
}); | ||
}; | ||
/** | ||
* @param {?} mapId | ||
* @return {?} | ||
*/ | ||
UsersStateManagerContext.prototype.RemoveSelectedMap = /** | ||
* @param {?} mapId | ||
* @return {?} | ||
*/ | ||
function (mapId) { | ||
if (this.state) { | ||
this.state.Loading = true; | ||
} | ||
this.Execute({ | ||
Arguments: { | ||
MapID: mapId | ||
}, | ||
Type: 'remove-selected-map' | ||
}); | ||
}; | ||
/** | ||
* @param {?} map | ||
* @param {?} locations | ||
* @return {?} | ||
*/ | ||
UsersStateManagerContext.prototype.AddMap = /** | ||
* @param {?} map | ||
* @param {?} locations | ||
* @return {?} | ||
*/ | ||
function (map, locations) { | ||
if (this.state) { | ||
this.state.Loading = true; | ||
} | ||
this.Execute({ | ||
Arguments: { | ||
Map: map, | ||
Locations: locations | ||
}, | ||
Type: 'add-map' | ||
}); | ||
}; | ||
// Helpers | ||
@@ -112,2 +174,2 @@ // Helpers | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlcnMtc3RhdGUtbWFuYWdlci5jb250ZXh0LmpzIiwic291cmNlUm9vdCI6Im5nOi8vQGFtYmwtb24vbGN1LWFtYmwtb24tY29tbW9uLyIsInNvdXJjZXMiOlsibGliL3N0YXRlL3VzZXJzL3VzZXJzLXN0YXRlLW1hbmFnZXIuY29udGV4dC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3JELE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLGlCQUFpQixDQUFDOztBQUd0RDtJQUc4QyxvREFBK0I7SUFJM0UsY0FBYztJQUVkLGdCQUFnQjtJQUNoQixrQ0FBc0IsUUFBa0I7UUFBeEMsWUFDRSxrQkFBTSxRQUFRLENBQUMsU0FDaEI7UUFGcUIsY0FBUSxHQUFSLFFBQVEsQ0FBVTs7SUFFeEMsQ0FBQztJQUVELGVBQWU7Ozs7OztJQUNSLGlEQUFjOzs7Ozs7SUFBckIsVUFBc0IsS0FBYTtRQUNqQyxJQUFJLENBQUMsS0FBSyxDQUFDLE9BQU8sR0FBRyxJQUFJLENBQUM7UUFFMUIsSUFBSSxDQUFDLE9BQU8sQ0FBQztZQUNYLFNBQVMsRUFBRTtnQkFDVCxLQUFLLEVBQUUsS0FBSzthQUNiO1l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YWx1ZSgpIHtcclxuICAgIHJldHVybiA8VXNlcnNTdGF0ZT57IExvYWRpbmc6IHRydWUgfTtcclxuICB9XHJcblxyXG4gIHByb3RlY3RlZCBhc3luYyBsb2FkU3RhdGVLZXkoKSB7XHJcbiAgICByZXR1cm4gJ21haW4nO1xyXG4gIH1cclxuXHJcbiAgcHJvdGVjdGVkIGFzeW5jIGxvYWRTdGF0ZU5hbWUoKSB7XHJcbiAgICByZXR1cm4gJ3VzZXJzJztcclxuICB9XHJcbn1cclxuIl19 |
@@ -15,4 +15,6 @@ /** | ||
/** @type {?} */ | ||
UsersState.prototype.SelectedMapID; | ||
UsersState.prototype.PrimaryMapID; | ||
/** @type {?} */ | ||
UsersState.prototype.SelectedMapIDs; | ||
/** @type {?} */ | ||
UsersState.prototype.SelectedMapLocations; | ||
@@ -22,2 +24,2 @@ /** @type {?} */ | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlcnMtc3RhdGUubW9kZWwuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYW1ibC1vbi9sY3UtYW1ibC1vbi1jb21tb24vIiwic291cmNlcyI6WyJsaWIvc3RhdGUvdXNlcnMvdXNlcnMtc3RhdGUubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBO0lBQUE7SUFRQSxDQUFDO0lBQUQsaUJBQUM7QUFBRCxDQUFDLEFBUkQsSUFRQzs7OztJQVBDLDZCQUF5Qjs7SUFFekIsbUNBQThCOztJQUU5QiwwQ0FBb0M7O0lBRXBDLDhCQUF3QiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjbGFzcyBVc2Vyc1N0YXRlIHtcclxuICBwdWJsaWMgTG9hZGluZz86IGJvb2xlYW47XHJcblxyXG4gIHB1YmxpYyBTZWxlY3RlZE1hcElEPzogc3RyaW5nO1xyXG5cclxuICBwdWJsaWMgU2VsZWN0ZWRNYXBMb2NhdGlvbnM/OiBhbnlbXTtcclxuXHJcbiAgcHVibGljIFVzZXJNYXBzPzogYW55W107XHJcbn1cclxuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlcnMtc3RhdGUubW9kZWwuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYW1ibC1vbi9sY3UtYW1ibC1vbi1jb21tb24vIiwic291cmNlcyI6WyJsaWIvc3RhdGUvdXNlcnMvdXNlcnMtc3RhdGUubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBO0lBQUE7SUFVQSxDQUFDO0lBQUQsaUJBQUM7QUFBRCxDQUFDLEFBVkQsSUFVQzs7OztJQVRDLDZCQUF5Qjs7SUFFekIsa0NBQTZCOztJQUU3QixvQ0FBOEI7O0lBRTlCLDBDQUFvQzs7SUFFcEMsOEJBQXdCIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNsYXNzIFVzZXJzU3RhdGUge1xyXG4gIHB1YmxpYyBMb2FkaW5nPzogYm9vbGVhbjtcclxuXHJcbiAgcHVibGljIFByaW1hcnlNYXBJRD86IHN0cmluZztcclxuXHJcbiAgcHVibGljIFNlbGVjdGVkTWFwSURzPzogYW55W107XHJcblxyXG4gIHB1YmxpYyBTZWxlY3RlZE1hcExvY2F0aW9ucz86IGFueVtdO1xyXG5cclxuICBwdWJsaWMgVXNlck1hcHM/OiBhbnlbXTtcclxufVxyXG4iXX0= |
@@ -171,3 +171,13 @@ import { EventEmitter } from '@angular/core'; | ||
protected setMapsWithPrimaryId(id: string): void; | ||
protected convertLocationDataToMapMarkers(locations: any[]): MapMarker[]; | ||
protected convertLocationDataToMapMarkers(locations: any[]): { | ||
ID: any; | ||
address: any; | ||
iconName: any; | ||
title: any; | ||
lat: any; | ||
lng: any; | ||
phoneNumber: any; | ||
town: any; | ||
country: any; | ||
}[]; | ||
} |
@@ -8,3 +8,6 @@ import { Injector } from '@angular/core'; | ||
constructor(injector: Injector); | ||
SetSelectedMap(mapId: string): void; | ||
SetPrimaryMap(mapId: string): void; | ||
AddSelectedMap(mapId: string): void; | ||
RemoveSelectedMap(mapId: string): void; | ||
AddMap(map: any, locations: Location[]): void; | ||
protected defaultValue(): UsersState; | ||
@@ -11,0 +14,0 @@ protected loadStateKey(): Promise<string>; |
export declare class UsersState { | ||
Loading?: boolean; | ||
SelectedMapID?: string; | ||
PrimaryMapID?: string; | ||
SelectedMapIDs?: any[]; | ||
SelectedMapLocations?: any[]; | ||
UserMaps?: any[]; | ||
} |
{ | ||
"name": "@ambl-on/lcu-ambl-on-common", | ||
"version": "0.2.436-my-atlas", | ||
"version": "0.3.1-integration", | ||
"peerDependencies": { | ||
@@ -5,0 +5,0 @@ "@angular/common": "^7.2.0", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
6161740
16376