@ambl-on/lcu-ambl-on-common
Advanced tools
Comparing version 0.2.404-map to 0.2.405-map
@@ -238,3 +238,3 @@ /** | ||
/** @type {?} */ | ||
const temp = new ThumbnailListModel(ListOfMaps[i], this.getMapThumbnail(ListOfMaps[i], 200, 200), ListOfMaps[i].title, +ListOfMaps[i].origin.lat, +ListOfMaps[i].origin.lng); | ||
const temp = new ThumbnailListModel(ListOfMaps[i], this.getMapThumbnail(ListOfMaps[i], 200, 200), ListOfMaps[i].title, ListOfMaps[i].origin.lat, ListOfMaps[i].origin.lng); | ||
tempThumbnailList.push(temp); | ||
@@ -449,2 +449,2 @@ } | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFwLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYW1ibC1vbi9sY3UtYW1ibC1vbi1jb21tb24vIiwic291cmNlcyI6WyJsaWIvc2VydmljZXMvbWFwLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsWUFBWSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pELE9BQU8sRUFBRSxhQUFhLEVBQXlCLE1BQU0sNkJBQTZCLENBQUM7QUFDbkYsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sZ0NBQWdDLENBQUM7QUFDcEUsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUMvQixPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sOEJBQThCLENBQUM7QUFDekQsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFDNUQsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLDBCQUEwQixDQUFDOzs7O0FBTTFELE1BQU0sT0FBTyxVQUFVOzs7Ozs7SUErQ3JCLFlBQXNCLFdBQStCLEVBQVksU0FBe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U2V0cyB0aGUgc2Vjb25kYXJ5IG1hcHMgdG8gYSBsaXN0IG9mIGFsbCB0aGUgbWFwcyBtaW51cyB0aGF0IHdpdGggdGhlIHBhc3NlZCBpZFxyXG4gICAqXHJcbiAgICogRW1pdHMgdGhlIG5ldyBwcmltYXJ5IG1hcFxyXG4gICAqL1xyXG4gIHByb3RlY3RlZCBzZXRNYXBzV2l0aFByaW1hcnlJZChpZDogc3RyaW5nKTogdm9pZCB7XHJcbiAgICB0aGlzLk1hcENoYW5nZWQuZW1pdCh0aGlzLnByaW1hcnlNYXApO1xyXG4gIH1cclxuXHJcbiAgcHJvdGVjdGVkIGNvbnZlcnRMb2NhdGlvbkRhdGFUb01hcE1hcmtlcnMobG9jYXRpb25zOiBhbnlbXSkge1xyXG4gICAgcmV0dXJuIGxvY2F0aW9ucy5tYXAobG9jYXRpb24gPT4ge1xyXG4gICAgICByZXR1cm4gPE1hcE1hcmtlcj57XHJcbiAgICAgICAgYWRkcmVzczogbG9jYXRpb24uQWRkcmVzcyxcclxuICAgICAgICBpY29uTmFtZTogbG9jYXRpb24uSWNvbixcclxuICAgICAgICB0aXRsZTogbG9jYXRpb24uVGl0bGUsXHJcbiAgICAgICAgbGF0OiBsb2NhdGlvbi5MYXRpdHVkZSxcclxuICAgICAgICBsbmc6IGxvY2F0aW9uLkxvbmdpdHVkZSxcclxuICAgICAgICBwaG9uZU51bWJlcjogbG9jYXRpb24uVGVsZXBob25lLFxyXG4gICAgICAgIHRvd246IGxvY2F0aW9uLlRvd24sXHJcbiAgICAgICAgY291bnRyeTogbG9jYXRpb24uQ291bnRyeVxyXG4gICAgICB9O1xyXG4gICAgfSk7XHJcbiAgfVxyXG59XHJcbiJdfQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFwLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYW1ibC1vbi9sY3UtYW1ibC1vbi1jb21tb24vIiwic291cmNlcyI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ge1xyXG4gICAgICByZXR1cm4gPE1hcE1hcmtlcj57XHJcbiAgICAgICAgYWRkcmVzczogbG9jYXRpb24uQWRkcmVzcyxcclxuICAgICAgICBpY29uTmFtZTogbG9jYXRpb24uSWNvbixcclxuICAgICAgICB0aXRsZTogbG9jYXRpb24uVGl0bGUsXHJcbiAgICAgICAgbGF0OiBsb2NhdGlvbi5MYXRpdHVkZSxcclxuICAgICAgICBsbmc6IGxvY2F0aW9uLkxvbmdpdHVkZSxcclxuICAgICAgICBwaG9uZU51bWJlcjogbG9jYXRpb24uVGVsZXBob25lLFxyXG4gICAgICAgIHRvd246IGxvY2F0aW9uLlRvd24sXHJcbiAgICAgICAgY291bnRyeTogbG9jYXRpb24uQ291bnRyeVxyXG4gICAgICB9O1xyXG4gICAgfSk7XHJcbiAgfVxyXG59XHJcbiJdfQ== |
@@ -401,3 +401,3 @@ /** | ||
/** @type {?} */ | ||
var temp = new ThumbnailListModel(ListOfMaps[i], this.getMapThumbnail(ListOfMaps[i], 200, 200), ListOfMaps[i].title, +ListOfMaps[i].origin.lat, +ListOfMaps[i].origin.lng); | ||
var temp = new ThumbnailListModel(ListOfMaps[i], this.getMapThumbnail(ListOfMaps[i], 200, 200), ListOfMaps[i].title, ListOfMaps[i].origin.lat, ListOfMaps[i].origin.lng); | ||
tempThumbnailList.push(temp); | ||
@@ -702,2 +702,2 @@ } | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFwLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYW1ibC1vbi9sY3UtYW1ibC1vbi1jb21tb24vIiwic291cmNlcyI6WyJsaWIvc2VydmljZXMvbWFwLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsWUFBWSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pELE9BQU8sRUFBRSxhQUF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mtlcnMobG9jYXRpb25zOiBhbnlbXSkge1xyXG4gICAgcmV0dXJuIGxvY2F0aW9ucy5tYXAobG9jYXRpb24gPT4ge1xyXG4gICAgICByZXR1cm4gPE1hcE1hcmtlcj57XHJcbiAgICAgICAgYWRkcmVzczogbG9jYXRpb24uQWRkcmVzcyxcclxuICAgICAgICBpY29uTmFtZTogbG9jYXRpb24uSWNvbixcclxuICAgICAgICB0aXRsZTogbG9jYXRpb24uVGl0bGUsXHJcbiAgICAgICAgbGF0OiBsb2NhdGlvbi5MYXRpdHVkZSxcclxuICAgICAgICBsbmc6IGxvY2F0aW9uLkxvbmdpdHVkZSxcclxuICAgICAgICBwaG9uZU51bWJlcjogbG9jYXRpb24uVGVsZXBob25lLFxyXG4gICAgICAgIHRvd246IGxvY2F0aW9uLlRvd24sXHJcbiAgICAgICAgY291bnRyeTogbG9jYXRpb24uQ291bnRyeVxyXG4gICAgICB9O1xyXG4gICAgfSk7XHJcbiAgfVxyXG59XHJcbiJdfQ== |
{ | ||
"name": "@ambl-on/lcu-ambl-on-common", | ||
"version": "0.2.404-map", | ||
"version": "0.2.405-map", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6143673