@ambl-on/lcu-ambl-on-common
Advanced tools
Comparing version 0.1.304-my-atlas to 0.1.305-integration
@@ -42,3 +42,3 @@ /** | ||
this.MarkerList = Constants.DEFAULT_MARKER_INFO; | ||
this.primaryMap = this.tempStorage.GetMapList()[0]; | ||
this.primaryMap = this.tempStorage.GetLastUsedId() !== '' ? this.tempStorage.GetMapById(this.tempStorage.GetLastUsedId()) : this.tempStorage.GetMapList()[0]; | ||
this.mapList = this.tempStorage.GetMapList().filter((/** | ||
@@ -367,2 +367,3 @@ * @param {?} map | ||
setMapsWithPrimaryId(id) { | ||
this.tempStorage.SetLastUsedId(id); | ||
this.primaryMap = this.tempStorage.GetMapById(id); | ||
@@ -443,2 +444,2 @@ this.mapList = this.tempStorage.GetMapList().filter((/** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFwLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYW1ibC1vbi9sY3UtYW1ibC1vbi1jb21tb24vIiwic291cmNlcyI6WyJsaWIvc2VydmljZXMvbWFwLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsWUFBWSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRXpELE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLGdDQUFnQyxDQUFDO0FBQ3BFLE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFDL0IsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLDhCQUE4QixDQUFDO0FBQ3pELE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQzVELE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQzs7OztBQUsxRCxNQUFNLE9BQU8sVUFBVTs7Ozs7O0lBaURyQixZQUFzQixXQ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_INFO; | ||
this.primaryMap = this.tempStorage.GetMapList()[0]; | ||
this.primaryMap = this.tempStorage.GetLastUsedId() !== '' ? this.tempStorage.GetMapById(this.tempStorage.GetLastUsedId()) : this.tempStorage.GetMapList()[0]; | ||
this.mapList = this.tempStorage.GetMapList().filter((/** | ||
@@ -658,2 +658,3 @@ * @param {?} map | ||
function (id) { | ||
this.tempStorage.SetLastUsedId(id); | ||
this.primaryMap = this.tempStorage.GetMapById(id); | ||
@@ -736,2 +737,2 @@ this.mapList = this.tempStorage.GetMapList().filter((/** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFwLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYW1ibC1vbi9sY3UtYW1ibC1vbi1jb21tb24vIiwic291cmNlcyI6WyJsaWIvc2VydmljZXMvbWFwLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsWUFBWSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRXpELE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLGdDQUFnQyxDQUFDO0FBQ3BFLE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFDL0IsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLDhCQUE4QixDQUFDO0FBQ3pELE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQzVELE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQzs7OztBQUUxRDtJQWtERSxlQUFlO0lBRWYsb0JBQXNCLFdBQStCLEVBQVksU0FBeUI7UUFBMUYsaUJBSUM7UUFKcUIsZ0JBQVcsR0FBWCxXQUFXLENBQW9CO1FBQVksY0FBUyxHQUFULFNBQVMsQ0FBZ0I7Ozs7O1FBOUJuRixn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AgKlxyXG4gICAqIEVtaXRzIHRoZSBuZXcgcHJpbWFyeSBtYXBcclxuICAgKi9cclxuICBwcm90ZWN0ZWQgc2V0TWFwc1dpdGhQcmltYXJ5SWQoaWQ6IHN0cmluZyk6IHZvaWQge1xyXG4gICAgdGhpcy50ZW1wU3RvcmFnZS5TZXRMYXN0VXNlZElkKGlkKTtcclxuICAgIHRoaXMucHJpbWFyeU1hcCA9IHRoaXMudGVtcFN0b3JhZ2UuR2V0TWFwQnlJZChpZCk7XHJcbiAgICB0aGlzLm1hcExpc3QgPSB0aGlzLnRlbXBTdG9yYWdlLkdldE1hcExpc3QoKS5maWx0ZXIobWFwID0+IG1hcC5pZCAhPT0gaWQpO1xyXG4gICAgdGhpcy5NYXBDaGFuZ2VkLmVtaXQodGhpcy5wcmltYXJ5TWFwKTtcclxuICB9XHJcblxyXG59XHJcbiJdfQ== |
{ | ||
"name": "@ambl-on/lcu-ambl-on-common", | ||
"version": "0.1.304-my-atlas", | ||
"version": "0.1.305-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 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
5171427
14320