@ambl-on/lcu-ambl-on-common
Advanced tools
Comparing version 0.1.280-my-atlas to 0.1.281-my-atlas
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@lcu-ide/common"),require("@angular/common"),require("@angular/material/menu"),require("@angular/flex-layout"),require("@angular/platform-browser/animations"),require("@angular/forms"),require("@angular/router"),require("rxjs"),require("@lowcodeunit/lcu-map-common"),require("@angular/cdk/drag-drop"),require("@angular/core"),require("@angular/material")):"function"==typeof define&&define.amd?define("@ambl-on/lcu-ambl-on-common",["exports","@lcu-ide/common","@angular/common","@angular/material/menu","@angular/flex-layout","@angular/platform-browser/animations","@angular/forms","@angular/router","rxjs","@lowcodeunit/lcu-map-common","@angular/cdk/drag-drop","@angular/core","@angular/material"],t):t((e["ambl-on"]=e["ambl-on"]||{},e["ambl-on"]["lcu-ambl-on-common"]={}),e.common,e.ng.common,e.ng.material.menu,e.ng["flex-layout"],e.ng.platformBrowser.animations,e.ng.forms,e.ng.router,e.rxjs,e.lcuMapCommon,e.ng.cdk["drag-drop"],e.ng.core,e.ng.material)}(this,function(e,t,o,n,a,r,i,s,c,l,d,m,u){"use strict";var p=function(e,t){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)};function g(t,i,s,c){return new(s||(s=Promise))(function(e,o){function n(e){try{r(c.next(e))}catch(t){o(t)}}function a(e){try{r(c["throw"](e))}catch(t){o(t)}}function r(t){t.done?e(t.value):new s(function(e){e(t.value)}).then(n,a)}r((c=c.apply(t,i||[])).next())})}function h(n,a){var r,i,s,e,c={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return e={next:t(0),"throw":t(1),"return":t(2)},"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return function o(e){if(r)throw new TypeError("Generator is already executing.");for(;c;)try{if(r=1,i&&(s=2&e[0]?i["return"]:e[0]?i["throw"]||((s=i["return"])&&s.call(i),0):i.next)&&!(s=s.call(i,e[1])).done)return s;switch(i=0,s&&(e=[2&e[0],s.value]),e[0]){case 0:case 1:s=e;break;case 4:return c.label++,{value:e[1],done:!1};case 5:c.label++,i=e[1],e=[0];continue;case 7:e=c.ops.pop(),c.trys.pop();continue;default:if(!(s=0<(s=c.trys).length&&s[s.length-1])&&(6===e[0]||2===e[0])){c=0;continue}if(3===e[0]&&(!s||e[1]>s[0]&&e[1]<s[3])){c.label=e[1];break}if(6===e[0]&&c.label<s[1]){c.label=s[1],s=e;break}if(s&&c.label<s[2]){c.label=s[2],c.ops.push(e);break}s[2]&&c.ops.pop(),c.trys.pop();continue}e=a.call(n,c)}catch(t){e=[6,t],i=0}finally{r=s=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([t,e])}}}var f,y=(function j(e,t){function o(){this.constructor=e}p(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}(L,f=t.StateManagerContext),L.prototype.SetActive=function(){},L.prototype.defaultValue=function(){return{Loading:!0}},L.prototype.loadStateKey=function(){return g(this,void 0,void 0,function(){return h(this,function(e){return[2,"main"]})})},L.prototype.loadStateName=function(){return g(this,void 0,void 0,function(){return h(this,function(e){return[2,"users "]})})},L.decorators=[{type:m.Injectable,args:[{providedIn:"root"}]}],L.ctorParameters=function(){return[{type:m.Injector}]},L.ngInjectableDef=m.defineInjectable({factory:function(){return new L(m.inject(m.INJECTOR))},token:L,providedIn:"root"}),L);function L(e){var t=f.call(this,e)||this;return t.injector=e,t}function w(){}var b=(v.VAR_NAMES_MENU=[{Label:"Home",Url:"/home",Disabled:"false",Icon:"home",Param:""},{Label:"Map",Url:"/map",Disabled:"false",Icon:"map",Param:""},{Label:"My Atlas",Url:"/map",Disabled:"false",Icon:"public",Param:"my-atlas-modal"},{Label:"My Itineraries",Url:"www",Disabled:"true",Icon:"access_time"},{Label:"My Top Lists",Url:"www",Disabled:"true",Icon:"sort"},{Label:"My Albums",Url:"www",Disabled:"true",Icon:"photo_library"},{Label:"My Friends",Url:"www",Disabled:"true",Icon:"group"},{Label:"My Profile",Url:"www",Disabled:"true",Icon:"person"}],v.DEFAULT_MAP_LIST=[{id:"0",title:"Boulder Map",origin:{lat:40.037757,lng:-105.278324},zoom:13,locationList:[{id:"1",title:"Favorite steak house",lat:40.017557,lng:-105.278199,iconName:"restaurant",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.Steaks.com",instagram:"#",map_id:"0",orderIndex:0,address:"1234 abc court",menu:"menu.com",reservations:"reservations.com",starRating:4.5,awards:"Best place to eat steak 2019",media:"media.com",generalInfo:"get the burbon steak",notes:"Try to get a table that over looks the flat Irons.",photos:["link","link"]},{id:"1",title:"Favorite UNESCO",lat:40.027657,lng:-105.288199,iconName:"UNESCO",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.unesco.com",instagram:"#",map_id:"0",orderIndex:1,address:"1234 abc court",starRating:3.5,awards:"Best culture 2019",media:"media.com",generalInfo:"United nations"},{id:"1",title:"Nice museum",lat:40.037757,lng:-105.298199,iconName:"museum",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.museum.com",instagram:"#",map_id:"0",orderIndex:2,address:"1234 abc court",menu:"menu.com",reservations:"reservations.com",starRating:5,awards:"Best museum in boulder 2019",media:"media.com",generalInfo:"go to the dinosaur exhibit",notes:"go early in the morning.",photos:["link","link"]},{id:"1",title:"Good brewery",lat:40.047857,lng:-105.268199,iconName:"brewery",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.theBest.com",instagram:"#",map_id:"0",orderIndex:3,address:"1234 abc court",menu:"menu.com",starRating:4,awards:"Best IPA 2019",media:"media.com",generalInfo:"open 11am-9pm",notes:"Try the IPA.",photos:["link","link"]},{id:"1",title:"Favorite ski area",lat:40.057557,lng:-105.288199,iconName:"ski area",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.eldora.com",instagram:"#",map_id:"0",orderIndex:4,address:"1234 abc court",reservations:"reservations.com",starRating:4.5,awards:"Best ski area on the front range",media:"media.com",generalInfo:"lifts open at 8",notes:"No friends on a powder day.",photos:["link","link"]},{id:"1",title:"Favorite vineyard",lat:40.060657,lng:-105.298199,iconName:"vineyard",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.Wine.com",instagram:"#",map_id:"0",orderIndex:5,address:"1234 abc court",menu:"menu.com",reservations:"reservations.com",starRating:3.75,awards:"Best fermented grape juice around",media:"media.com",generalInfo:"open 11AM -9PM",notes:"Try the blends.",photos:["link","link"]},{id:"1",title:"Nice golf course",lat:40.037757,lng:-105.258199,iconName:"golf course",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.CaddyShack.com",instagram:"#",map_id:"0",orderIndex:6,address:"1234 abc court",menu:"menu.com",reservations:"reservations.com",starRating:5,awards:"Best place to golf 2019",media:"media.com",generalInfo:"FOURRRRR",notes:"hole 8 is tricky.",photos:["link","link"]},{id:"1",title:"Happy Hotel",lat:40.037757,lng:-105.278199,iconName:"lodging",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.Happys.com",instagram:"#",map_id:"0",orderIndex:7,address:"1234 abc court",menu:"menu.com",reservations:"reservations.com",starRating:3.5,awards:"Best place to sleep 2019",media:"media.com",generalInfo:"Checkout is 11 am",notes:"Try to get a room that over looks the flat Irons.",photos:["link","link"]},{id:"1",title:"Nice national park",lat:40.060657,lng:-105.278199,iconName:"national park",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.RockyMountainNationalPark.com",instagram:"#",map_id:"0",orderIndex:8,address:"1234 abc court",menu:"menu.com",reservations:"reservations.com",starRating:5,awards:"Best place to escape society 2019",media:"media.com",generalInfo:"open mid june-aug",notes:"Bear lake is best hike.",photos:["link","link"]},{id:"1",title:"Good bar",lat:40.017557,lng:-105.288199,iconName:"bar",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.GoodBar.com",instagram:"#",map_id:"0",orderIndex:9,address:"1234 abc court",menu:"menu.com",starRating:3.5,awards:"Best place to forget your night",media:"media.com",generalInfo:"last call 1:30AM",notes:"Ladies dance on the bar for a free beer.",photos:["link","link"]}]},{id:"2",title:"Boulder Booze",origin:{lat:40.037757,lng:-105.278324},zoom:13,locationList:[{id:"1",title:"Brewsky's",lat:40.012557,lng:-105.268199,iconName:"brewery",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.Brewskys.com",instagram:"#",map_id:"2"},{id:"1",title:"Phat Bar",lat:40.022657,lng:-105.268199,iconName:"bar",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.PhatBar.com",instagram:"#",map_id:"2"},{id:"1",title:"Bar of the Rockies",lat:40.026757,lng:-105.277199,iconName:"bar",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.BarOfTheRockies.com",instagram:"#",map_id:"2"},{id:"1",title:"Good brewery",lat:40.047857,lng:-105.268199,iconName:"brewery",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.TheBest.com",instagram:"#",map_id:"2"}]}],v.DEFAULT_MARKER_INFO=[{iconLookup:"restaurant",iconName:"Restaurant",iconUrl:"./assets/restaurant.png"},{iconLookup:"UNESCO",iconName:"UNESCO",iconUrl:"./assets/UNESCO.png"},{iconLookup:"museum",iconName:"Museum",iconUrl:"./assets/museum.png"},{iconLookup:"brewery",iconName:"Brewery",iconUrl:"./assets/brewery.png"},{iconLookup:"ski area",iconName:"Ski Area",iconUrl:"./assets/ski area.png"},{iconLookup:"vineyard",iconName:"Vineyard",iconUrl:"./assets/vineyard.png"},{iconLookup:"golf course",iconName:"Golf Course",iconUrl:"./assets/golf course.png"},{iconLookup:"lodging",iconName:"Lodging",iconUrl:"./assets/lodging.png"},{iconLookup:"national park",iconName:"National Park",iconUrl:"./assets/national park.png"},{iconLookup:"bar",iconName:"Bar",iconUrl:"./assets/bar.png"}],v.LOCATIONS_TO_LOAD=[{id:"1",title:"Favorite steak house",lat:40.017557,lng:-105.278199,iconName:"restaurant",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.Steaks.com",instagram:"#",map_id:"0",orderIndex:0,address:"1234 abc court",menu:"menu.com",reservations:"reservations.com",starRating:4.5,awards:"Best place to eat steak 2019",media:"media.com",generalInfo:"get the burbon steak",notes:"Try to get a table that over looks the flat Irons.",photos:["link","link"]},{id:"2",title:"Favorite UNESCO",lat:40.027657,lng:-105.288199,iconName:"UNESCO",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.unesco.com",instagram:"#",map_id:"0",orderIndex:1,address:"1234 abc court",starRating:3.5,awards:"Best culture 2019",media:"media.com",generalInfo:"United nations"},{id:"3",title:"Nice museum",lat:40.037757,lng:-105.298199,iconName:"museum",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.museum.com",instagram:"#",map_id:"0",orderIndex:2,address:"1234 abc court",menu:"menu.com",reservations:"reservations.com",starRating:5,awards:"Best museum in boulder 2019",media:"media.com",generalInfo:"go to the dinosaur exhibit",notes:"go early in the morning.",photos:["link","link"]},{id:"4",title:"Good brewery",lat:40.047857,lng:-105.268199,iconName:"brewery",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.theBest.com",instagram:"#",map_id:"0",orderIndex:3,address:"1234 abc court",menu:"menu.com",starRating:4,awards:"Best IPA 2019",media:"media.com",generalInfo:"open 11am-9pm",notes:"Try the IPA.",photos:["link","link"]},{id:"5",title:"Favorite ski area",lat:40.057557,lng:-105.288199,iconName:"ski area",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.eldora.com",instagram:"#",map_id:"0",orderIndex:4,address:"1234 abc court",reservations:"reservations.com",starRating:4.5,awards:"Best ski area on the front range",media:"media.com",generalInfo:"lifts open at 8",notes:"No friends on a powder day.",photos:["link","link"]},{id:"6",title:"Favorite vineyard",lat:40.060657,lng:-105.298199,iconName:"vineyard",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.Wine.com",instagram:"#",map_id:"0",orderIndex:5,address:"1234 abc court",menu:"menu.com",reservations:"reservations.com",starRating:3.75,awards:"Best fermented grape juice around",media:"media.com",generalInfo:"open 11AM -9PM",notes:"Try the blends.",photos:["link","link"]},{id:"7",title:"Nice golf course",lat:40.037757,lng:-105.258199,iconName:"golf course",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.CaddyShack.com",instagram:"#",map_id:"0",orderIndex:6,address:"1234 abc court",menu:"menu.com",reservations:"reservations.com",starRating:5,awards:"Best place to golf 2019",media:"media.com",generalInfo:"FOURRRRR",notes:"hole 8 is tricky.",photos:["link","link"]},{id:"8",title:"Happy Hotel",lat:40.037757,lng:-105.278199,iconName:"lodging",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.Happys.com",instagram:"#",map_id:"0",orderIndex:7,address:"1234 abc court",menu:"menu.com",reservations:"reservations.com",starRating:3.5,awards:"Best place to sleep 2019",media:"media.com",generalInfo:"Checkout is 11 am",notes:"Try to get a room that over looks the flat Irons.",photos:["link","link"]}],v.MAP_CONFIG_TO_LOAD={id:"",title:"Loaded Map",origin:{lat:40.017557,lng:-105.278199},zoom:15,locationList:[]},v);function v(){}var I=(M.prototype.ngOnInit=function(){},M.decorators=[{type:m.Component,args:[{selector:"lcu-landing-page",template:' <div class="landing-page-image">\r\n <div class="container" fxFlex="100%"\r\n fxLayout="column" fxLayoutAlign="center start"\r\n fxLayout.sm="column" fxLayoutAlign.sm="center center"\r\n fxLayout.xs="column" fxLayoutAlign.xs="center center">\r\n <div class="title">\r\n <h1>\r\n {{ Title }}\r\n </h1>\r\n </div>\r\n <div class="slogan">\r\n <h3>\r\n {{ Slogan }}\r\n </h3>\r\n </div>\r\n </div>\r\n</div>',styles:[".landing-page-image{background:url(assets/Angkor-sunrise.jpg) center center/cover no-repeat fixed;height:100vh}.landing-page-image .container{margin-top:14em;margin-left:1em;text-align:center}.landing-page-image .container h1{margin:0}.landing-page-image .container .slogan,.landing-page-image .container .title{color:#fff}"]}]}],M.ctorParameters=function(){return[]},M);function M(){this.Title="Ambl On",this.Slogan="Down the Road, Around the World!"}var k=function G(e,t,o,n,a){this.Map=e,this.MapUrl=t,this.Title=o,this.Lat=n,this.Lng=a},S=(x.prototype.AddMapToList=function(e){var t=""===localStorage.getItem(this.mapList)?[]:JSON.parse(localStorage.getItem(this.mapList));t.push(e),localStorage.setItem(this.mapList,JSON.stringify(t))},x.prototype.ReplaceMap=function(t){var e=""===localStorage.getItem(this.mapList)?[]:JSON.parse(localStorage.getItem(this.mapList)),o=e.findIndex(function(e){return e.id===t.id});console.log(o),e.splice(o,1,t),localStorage.setItem(this.mapList,JSON.stringify(e))},x.prototype.GetMapList=function(){return""===localStorage.getItem(this.mapList)?[]:JSON.parse(localStorage.getItem(this.mapList))},x.prototype.GetMapById=function(t){return(""===localStorage.getItem(this.mapList)?[]:JSON.parse(localStorage.getItem(this.mapList))).find(function(e){return e.id===t})},x.prototype.DeleteMapList=function(){localStorage.setItem(this.mapList,""),localStorage.setItem(this.locationList,"")},x.prototype.SaveLocationLegend=function(e){localStorage.setItem(this.locationList,JSON.stringify(e))},x.prototype.GetLocationLegend=function(){return""===localStorage.getItem(this.locationList)?[]:JSON.parse(localStorage.getItem(this.locationList))},x.decorators=[{type:m.Injectable,args:[{providedIn:"root"}]}],x.ctorParameters=function(){return[]},x.ngInjectableDef=m.defineInjectable({factory:function(){return new x},token:x,providedIn:"root"}),x);function x(){this.mapList="ambl_onMapList",this.locationList="ambl_onLocationList",null===localStorage.getItem(this.mapList)&&localStorage.setItem(this.mapList,""),null===localStorage.getItem(this.locationList)&&localStorage.setItem(this.locationList,"")}var N=(A.prototype.ngOnInit=function(){},A.prototype.CreateLayer=function(e,t){return new l.IndividualMap({id:"TheSpecialCuratedMap",title:t?t.title:"Default Map",origin:t?t.origin:{lat:40,lng:-105},zoom:t?t.zoom:10,locationList:e})},A.decorators=[{type:m.Injectable,args:[{providedIn:"root"}]}],A.ngInjectableDef=m.defineInjectable({factory:function(){return new A},token:A,providedIn:"root"}),A);function A(){}var U=(B.prototype.GetLegendLocations=function(){return this.LegendLocations=this.tempStorage.GetLocationLegend(),this.LegendLocations},B.prototype.GetThumbnailList=function(){return this.ThumbnailList},B.prototype.GetPrimaryMap=function(){return this.primaryMap},B.prototype.GetMapList=function(){return this.mapList},B.prototype.GetAllMaps=function(){return this.tempStorage.GetMapList()},B.prototype.GetMapById=function(t){return this.mapList.find(function(e){return e.id===t})},B.prototype.GetMarkerList=function(){return this.MarkerList},B.prototype.AddMap=function(e){this.tempStorage.AddMapToList(e),this.setMapsWithPrimaryId(e.id)},B.prototype.ChangeLatLng=function(e,t){this.LatLngEmitter.next([e,t])},B.prototype.DisplayBasicInfo=function(e){this.BasicInfoWindowEmitter.next(e)},B.prototype.UpdateVisibleLocations=function(e){this.VisibleLocations=e,console.log("visible locations updated: ",e),this.VisibleLocations!==this.LegendLocations&&(console.log("Updating legend"),this.AddToLegendLocations(e))},B.prototype.AddToLegendLocations=function(o){console.log("visLoc = ",o);for(var e=function(e){var t=o[e].id;0===n.LegendLocations.filter(function(e){return e.id===t}).length?n.LegendLocations.push(o[e]):n.CheckInfo(o[e])},n=this,t=0;t<o.length;t++)e(t);this.UpdateLegendLocations(this.LegendLocations),this.UpdateVisibleLocations(this.LegendLocations)},B.prototype.CheckInfo=function(t){var e=this.LegendLocations.filter(function(e){return e.id===t.id}),o=this.LegendLocations.indexOf(e[0]);this.LegendLocations[o]=t},B.prototype.UpdateLegendLocations=function(e){this.tempStorage.SaveLocationLegend(e)},B.prototype.ReplaceMap=function(e){this.tempStorage.ReplaceMap(e)},B.prototype.BuildThumbnailList=function(e){for(var t=new Array,o=0;o<e.length;o++){var n=new k(e[o],this.getMapThumbnail(e[o],200,200),e[o].title,e[o].origin.lat,e[o].origin.lng);t.push(n)}return t.sort(function(e,t){return e.Title.toUpperCase()>t.Title.toUpperCase()?1:-1}),t},B.prototype.PrimaryMapChanged=function(e){this.setMapsWithPrimaryId(e)},B.prototype.DeleteMaps=function(){this.tempStorage.DeleteMapList()},B.prototype.getMapThumbnail=function(e,t,o){return"https://maps.googleapis.com/maps/api/staticmap?center="+e.origin.lat+","+e.origin.lng+"\n &zoom="+(e.zoom-2)+"\n &size="+(o&&t?t:300)+"x"+(o&&t?o:300)+"\n &key=AIzaSyAsKh4_TXpYV57SBs7j3b6qFcJUG6fNHoU"},B.prototype.setMapsWithPrimaryId=function(t){this.primaryMap=this.tempStorage.GetMapById(t),this.mapList=this.tempStorage.GetMapList().filter(function(e){return e.id!==t}),this.MapChanged.emit(this.primaryMap)},B.decorators=[{type:m.Injectable,args:[{providedIn:"root"}]}],B.ctorParameters=function(){return[{type:S},{type:N}]},B.ngInjectableDef=m.defineInjectable({factory:function(){return new B(m.inject(S),m.inject(N))},token:B,providedIn:"root"}),B);function B(e,t){var o=this;this.tempStorage=e,this.locLoader=t,this.CuratedList=this.locLoader.CreateLayer(b.LOCATIONS_TO_LOAD,b.MAP_CONFIG_TO_LOAD),this.LatLngEmitter=new c.Subject,this.BasicInfoWindowEmitter=new c.Subject,this.VisibleLocations=[],this.LegendLocations=[],this.MarkerList=b.DEFAULT_MARKER_INFO,this.primaryMap=this.tempStorage.GetMapList()[0],this.mapList=this.tempStorage.GetMapList().filter(function(e){return e.id!==o.primaryMap.id}),this.MapChanged=new m.EventEmitter}var _=(O.prototype.ngOnInit=function(){},O.prototype.PanTo=function(e){this.mapService.ChangeLatLng(e.lat,e.lng),this.mapService.DisplayBasicInfo(e)},O.prototype.SetLocationList=function(){this.LocationsList=new Array,this.MapTitle=this.primaryMap!==undefined?this.primaryMap.title:"";var e=new Array,t=this.mapService.GetLegendLocations();0<t.length&&(e=this.moveUndefinedToBottom(t),t.sort(this.compareObject)),this.assignIconUrl(e)},O.prototype.drop=function(e){d.moveItemInArray(this.LocationsList,e.previousIndex,e.currentIndex),this.giveOrder(),this.mapService.UpdateLegendLocations(this.LocationsList)},O.prototype.assignIconUrl=function(e){for(var t=0;t<e.length;t++){for(var o=0;o<this.iconList.length;o++)e[t].iconName.match(this.iconList[o].iconLookup)&&(e[t].iconUrl=this.iconList[o].iconUrl);this.LocationsList.push(e[t])}},O.prototype.giveOrder=function(){for(var e=0;e<this.LocationsList.length;e++)this.LocationsList[e].orderIndex=e},O.prototype.compareObject=function(e,t){return e.orderIndex>t.orderIndex?1:e.orderIndex<t.orderIndex?-1:e.title>t.title?1:e.title<t.title?-1:0},O.prototype.moveUndefinedToBottom=function(e){var t=new Array,o=new Array;return e.forEach(function(e){0<=e.orderIndex?o.push(e):t.push(e)}),t&&t.forEach(function(e){o.push(e)}),o},O.decorators=[{type:m.Component,args:[{selector:"lcu-legend",template:'<button class="chevron-legend" mat-icon-button [matMenuTriggerFor]="legend" (click)="SetLocationList()">\r\n <mat-icon [inline]="true">chevron_left</mat-icon>\r\n</button>\r\n<mat-menu #legend="matMenu">\r\n <h3 class="map-title" fxLayoutAlign="center">{{MapTitle}}</h3>\r\n <div cdkDropList class="location-list" (cdkDropListDropped)="drop($event)" fxLayout="column">\r\n <div class="location-box" \r\n fxLayout="row" fxLayoutAlign="start center" fxLayoutGap="10px"\r\n *ngFor="let item of LocationsList" cdkDrag (click)="PanTo(item)">\r\n <img class="icon-image" src={{item.iconUrl}} >\r\n <div class="location-title">\r\n {{ item.title }}\r\n </div>\r\n </div>\r\n </div>\r\n</mat-menu>\r\n',styles:[".chevron-legend{background-color:transparent;border-width:0;outline:0;font-size:30px}.icon-image{width:20px;height:20px}.location-box{padding:5px;border-top:1px solid #ccc;display:flex;cursor:move;font-size:14px}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating,.location-list.cdk-drop-list-dragging .location-box:not(.cdk-drag-placeholder){transition:transform 250ms cubic-bezier(0,0,.2,1);transition:transform 250ms cubic-bezier(0,0,.2,1),-webkit-transform 250ms cubic-bezier(0,0,.2,1)}"]}]}],O.ctorParameters=function(){return[{type:U},{type:S}]},O);function O(e,t){this.mapService=e,this.storageService=t,this.primaryMap=this.mapService.GetPrimaryMap(),this.iconList=this.mapService.GetMarkerList(),this.LocationsList=new Array,this.SetLocationList()}var T=(R.prototype.ngOnInit=function(){},R.prototype.ngOnDestroy=function(){this.ThumbnailList=null},R.prototype.LoadMap=function(e){this.dialogRef.close(e),this.mapService.PrimaryMapChanged(e.id)},R.prototype.Close=function(){this.dialogRef.close()},R.decorators=[{type:m.Component,args:[{selector:"lcu-my-atlas-modal",template:'<div class="my-atlas-modal" fxLayoutGap="15px grid">\r\n <div class="head" fxLayout="row" fxLayoutAlign="space-between">\r\n <h1 mat-dialog-title>My Atlas</h1>\r\n <mat-icon (click)="Close()" matTooltip="Close" style="cursor: pointer;">close</mat-icon>\r\n </div>\r\n <div class="thumbnail-container" fxLayoutAlign="space-evenly center" fxLayout="row wrap">\r\n <mat-card class="col" style="cursor: pointer;" fxFlexOffset="5" fxFlex="0 0 200px" *ngFor="let nail of ThumbnailList"\r\n (dblclick)="LoadMap(nail.Map)">\r\n <img mat-card-image src={{nail.MapUrl}}>\r\n <mat-card-content>\r\n <p fxLayoutAlign="center center">{{nail.Title}}</p>\r\n </mat-card-content>\r\n </mat-card>\r\n </div>\r\n</div>',styles:[".my-atlas-modal{height:80vh;width:70vw}"]}]}],R.ctorParameters=function(){return[{type:U},{type:u.MatDialogRef}]},R);function R(e,t){this.mapService=e,this.dialogRef=t,this.ThumbnailList=this.mapService.BuildThumbnailList(this.mapService.GetMapList())}var C=(P.forRoot=function(){return{ngModule:P,providers:[y]}},P.decorators=[{type:m.NgModule,args:[{declarations:[I,_,T],imports:[o.CommonModule,d.DragDropModule,a.FlexLayoutModule,r.BrowserAnimationsModule,n.MatMenuModule,u.MatIconModule,u.MatSelectModule,u.MatDialogModule,u.MatButtonModule,i.ReactiveFormsModule,u.MatInputModule,u.MatFormFieldModule,s.RouterModule,u.MatCardModule],exports:[I,u.MatIconModule,_,T],entryComponents:[I,_,T]}]}],P);function P(){}function D(e,t,o,n){this.Title=e,this.Lat=t,this.Lng=o,this.Icon=n}e.UsersStateManagerContext=y,e.UsersState=w,e.Constants=b,e.LandingPageComponent=I,e.LcuAmblOnModule=C,e.LegendComponent=_,e.LocationListModel=D,e.MapService=U,e.MyAtlasModalComponent=T,e.ɵa=S,e.ɵb=N,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@lcu-ide/common"),require("@angular/common"),require("@angular/material/menu"),require("@angular/flex-layout"),require("@angular/platform-browser/animations"),require("@angular/forms"),require("@angular/router"),require("rxjs"),require("@lowcodeunit/lcu-map-common"),require("@angular/cdk/drag-drop"),require("@angular/core"),require("@angular/material")):"function"==typeof define&&define.amd?define("@ambl-on/lcu-ambl-on-common",["exports","@lcu-ide/common","@angular/common","@angular/material/menu","@angular/flex-layout","@angular/platform-browser/animations","@angular/forms","@angular/router","rxjs","@lowcodeunit/lcu-map-common","@angular/cdk/drag-drop","@angular/core","@angular/material"],t):t((e["ambl-on"]=e["ambl-on"]||{},e["ambl-on"]["lcu-ambl-on-common"]={}),e.common,e.ng.common,e.ng.material.menu,e.ng["flex-layout"],e.ng.platformBrowser.animations,e.ng.forms,e.ng.router,e.rxjs,e.lcuMapCommon,e.ng.cdk["drag-drop"],e.ng.core,e.ng.material)}(this,function(e,t,o,n,a,r,i,s,c,l,d,m,u){"use strict";var p=function(e,t){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)};function g(t,i,s,c){return new(s||(s=Promise))(function(e,o){function n(e){try{r(c.next(e))}catch(t){o(t)}}function a(e){try{r(c["throw"](e))}catch(t){o(t)}}function r(t){t.done?e(t.value):new s(function(e){e(t.value)}).then(n,a)}r((c=c.apply(t,i||[])).next())})}function h(n,a){var r,i,s,e,c={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return e={next:t(0),"throw":t(1),"return":t(2)},"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return function o(e){if(r)throw new TypeError("Generator is already executing.");for(;c;)try{if(r=1,i&&(s=2&e[0]?i["return"]:e[0]?i["throw"]||((s=i["return"])&&s.call(i),0):i.next)&&!(s=s.call(i,e[1])).done)return s;switch(i=0,s&&(e=[2&e[0],s.value]),e[0]){case 0:case 1:s=e;break;case 4:return c.label++,{value:e[1],done:!1};case 5:c.label++,i=e[1],e=[0];continue;case 7:e=c.ops.pop(),c.trys.pop();continue;default:if(!(s=0<(s=c.trys).length&&s[s.length-1])&&(6===e[0]||2===e[0])){c=0;continue}if(3===e[0]&&(!s||e[1]>s[0]&&e[1]<s[3])){c.label=e[1];break}if(6===e[0]&&c.label<s[1]){c.label=s[1],s=e;break}if(s&&c.label<s[2]){c.label=s[2],c.ops.push(e);break}s[2]&&c.ops.pop(),c.trys.pop();continue}e=a.call(n,c)}catch(t){e=[6,t],i=0}finally{r=s=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([t,e])}}}var f,y=(function j(e,t){function o(){this.constructor=e}p(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}(L,f=t.StateManagerContext),L.prototype.SetActive=function(){},L.prototype.defaultValue=function(){return{Loading:!0}},L.prototype.loadStateKey=function(){return g(this,void 0,void 0,function(){return h(this,function(e){return[2,"main"]})})},L.prototype.loadStateName=function(){return g(this,void 0,void 0,function(){return h(this,function(e){return[2,"users "]})})},L.decorators=[{type:m.Injectable,args:[{providedIn:"root"}]}],L.ctorParameters=function(){return[{type:m.Injector}]},L.ngInjectableDef=m.defineInjectable({factory:function(){return new L(m.inject(m.INJECTOR))},token:L,providedIn:"root"}),L);function L(e){var t=f.call(this,e)||this;return t.injector=e,t}function w(){}var b=(v.VAR_NAMES_MENU=[{Label:"Home",Url:"/home",Disabled:"false",Icon:"home",Param:""},{Label:"Map",Url:"/map",Disabled:"false",Icon:"map",Param:""},{Label:"My Atlas",Url:"/map",Disabled:"false",Icon:"public",Param:"my-atlas-modal"},{Label:"My Itineraries",Url:"www",Disabled:"true",Icon:"access_time"},{Label:"My Top Lists",Url:"www",Disabled:"true",Icon:"sort"},{Label:"My Albums",Url:"www",Disabled:"true",Icon:"photo_library"},{Label:"My Friends",Url:"www",Disabled:"true",Icon:"group"},{Label:"My Profile",Url:"www",Disabled:"true",Icon:"person"}],v.DEFAULT_MAP_LIST=[{id:"0",title:"Boulder Map",origin:{lat:40.037757,lng:-105.278324},zoom:13,locationList:[{id:"1",title:"Favorite steak house",lat:40.017557,lng:-105.278199,iconName:"restaurant",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.Steaks.com",instagram:"#",map_id:"0",orderIndex:0,address:"1234 abc court",menu:"menu.com",reservations:"reservations.com",starRating:4.5,awards:"Best place to eat steak 2019",media:"media.com",generalInfo:"get the burbon steak",notes:"Try to get a table that over looks the flat Irons.",photos:["link","link"]},{id:"1",title:"Favorite UNESCO",lat:40.027657,lng:-105.288199,iconName:"UNESCO",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.unesco.com",instagram:"#",map_id:"0",orderIndex:1,address:"1234 abc court",starRating:3.5,awards:"Best culture 2019",media:"media.com",generalInfo:"United nations"},{id:"1",title:"Nice museum",lat:40.037757,lng:-105.298199,iconName:"museum",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.museum.com",instagram:"#",map_id:"0",orderIndex:2,address:"1234 abc court",menu:"menu.com",reservations:"reservations.com",starRating:5,awards:"Best museum in boulder 2019",media:"media.com",generalInfo:"go to the dinosaur exhibit",notes:"go early in the morning.",photos:["link","link"]},{id:"1",title:"Good brewery",lat:40.047857,lng:-105.268199,iconName:"brewery",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.theBest.com",instagram:"#",map_id:"0",orderIndex:3,address:"1234 abc court",menu:"menu.com",starRating:4,awards:"Best IPA 2019",media:"media.com",generalInfo:"open 11am-9pm",notes:"Try the IPA.",photos:["link","link"]},{id:"1",title:"Favorite ski area",lat:40.057557,lng:-105.288199,iconName:"ski area",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.eldora.com",instagram:"#",map_id:"0",orderIndex:4,address:"1234 abc court",reservations:"reservations.com",starRating:4.5,awards:"Best ski area on the front range",media:"media.com",generalInfo:"lifts open at 8",notes:"No friends on a powder day.",photos:["link","link"]},{id:"1",title:"Favorite vineyard",lat:40.060657,lng:-105.298199,iconName:"vineyard",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.Wine.com",instagram:"#",map_id:"0",orderIndex:5,address:"1234 abc court",menu:"menu.com",reservations:"reservations.com",starRating:3.75,awards:"Best fermented grape juice around",media:"media.com",generalInfo:"open 11AM -9PM",notes:"Try the blends.",photos:["link","link"]},{id:"1",title:"Nice golf course",lat:40.037757,lng:-105.258199,iconName:"golf course",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.CaddyShack.com",instagram:"#",map_id:"0",orderIndex:6,address:"1234 abc court",menu:"menu.com",reservations:"reservations.com",starRating:5,awards:"Best place to golf 2019",media:"media.com",generalInfo:"FOURRRRR",notes:"hole 8 is tricky.",photos:["link","link"]},{id:"1",title:"Happy Hotel",lat:40.037757,lng:-105.278199,iconName:"lodging",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.Happys.com",instagram:"#",map_id:"0",orderIndex:7,address:"1234 abc court",menu:"menu.com",reservations:"reservations.com",starRating:3.5,awards:"Best place to sleep 2019",media:"media.com",generalInfo:"Checkout is 11 am",notes:"Try to get a room that over looks the flat Irons.",photos:["link","link"]},{id:"1",title:"Nice national park",lat:40.060657,lng:-105.278199,iconName:"national park",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.RockyMountainNationalPark.com",instagram:"#",map_id:"0",orderIndex:8,address:"1234 abc court",menu:"menu.com",reservations:"reservations.com",starRating:5,awards:"Best place to escape society 2019",media:"media.com",generalInfo:"open mid june-aug",notes:"Bear lake is best hike.",photos:["link","link"]},{id:"1",title:"Good bar",lat:40.017557,lng:-105.288199,iconName:"bar",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.GoodBar.com",instagram:"#",map_id:"0",orderIndex:9,address:"1234 abc court",menu:"menu.com",starRating:3.5,awards:"Best place to forget your night",media:"media.com",generalInfo:"last call 1:30AM",notes:"Ladies dance on the bar for a free beer.",photos:["link","link"]}]},{id:"2",title:"Boulder Booze",origin:{lat:40.037757,lng:-105.278324},zoom:13,locationList:[{id:"1",title:"Brewsky's",lat:40.012557,lng:-105.268199,iconName:"brewery",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.Brewskys.com",instagram:"#",map_id:"2"},{id:"1",title:"Phat Bar",lat:40.022657,lng:-105.268199,iconName:"bar",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.PhatBar.com",instagram:"#",map_id:"2"},{id:"1",title:"Bar of the Rockies",lat:40.026757,lng:-105.277199,iconName:"bar",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.BarOfTheRockies.com",instagram:"#",map_id:"2"},{id:"1",title:"Good brewery",lat:40.047857,lng:-105.268199,iconName:"brewery",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.TheBest.com",instagram:"#",map_id:"2"}]}],v.DEFAULT_MARKER_INFO=[{iconLookup:"restaurant",iconName:"Restaurant",iconUrl:"./assets/restaurant.png"},{iconLookup:"UNESCO",iconName:"UNESCO",iconUrl:"./assets/UNESCO.png"},{iconLookup:"museum",iconName:"Museum",iconUrl:"./assets/museum.png"},{iconLookup:"brewery",iconName:"Brewery",iconUrl:"./assets/brewery.png"},{iconLookup:"ski area",iconName:"Ski Area",iconUrl:"./assets/ski area.png"},{iconLookup:"vineyard",iconName:"Vineyard",iconUrl:"./assets/vineyard.png"},{iconLookup:"golf course",iconName:"Golf Course",iconUrl:"./assets/golf course.png"},{iconLookup:"lodging",iconName:"Lodging",iconUrl:"./assets/lodging.png"},{iconLookup:"national park",iconName:"National Park",iconUrl:"./assets/national park.png"},{iconLookup:"bar",iconName:"Bar",iconUrl:"./assets/bar.png"}],v.LOCATIONS_TO_LOAD=[{id:"1",title:"Favorite steak house",lat:40.017557,lng:-105.278199,iconName:"restaurant",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.Steaks.com",instagram:"#",map_id:"0",orderIndex:0,address:"1234 abc court",menu:"menu.com",reservations:"reservations.com",starRating:4.5,awards:"Best place to eat steak 2019",media:"media.com",generalInfo:"get the burbon steak",notes:"Try to get a table that over looks the flat Irons.",photos:["link","link"]},{id:"2",title:"Favorite UNESCO",lat:40.027657,lng:-105.288199,iconName:"UNESCO",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.unesco.com",instagram:"#",map_id:"0",orderIndex:1,address:"1234 abc court",starRating:3.5,awards:"Best culture 2019",media:"media.com",generalInfo:"United nations"},{id:"3",title:"Nice museum",lat:40.037757,lng:-105.298199,iconName:"museum",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.museum.com",instagram:"#",map_id:"0",orderIndex:2,address:"1234 abc court",menu:"menu.com",reservations:"reservations.com",starRating:5,awards:"Best museum in boulder 2019",media:"media.com",generalInfo:"go to the dinosaur exhibit",notes:"go early in the morning.",photos:["link","link"]},{id:"4",title:"Good brewery",lat:40.047857,lng:-105.268199,iconName:"brewery",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.theBest.com",instagram:"#",map_id:"0",orderIndex:3,address:"1234 abc court",menu:"menu.com",starRating:4,awards:"Best IPA 2019",media:"media.com",generalInfo:"open 11am-9pm",notes:"Try the IPA.",photos:["link","link"]},{id:"5",title:"Favorite ski area",lat:40.057557,lng:-105.288199,iconName:"ski area",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.eldora.com",instagram:"#",map_id:"0",orderIndex:4,address:"1234 abc court",reservations:"reservations.com",starRating:4.5,awards:"Best ski area on the front range",media:"media.com",generalInfo:"lifts open at 8",notes:"No friends on a powder day.",photos:["link","link"]},{id:"6",title:"Favorite vineyard",lat:40.060657,lng:-105.298199,iconName:"vineyard",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.Wine.com",instagram:"#",map_id:"0",orderIndex:5,address:"1234 abc court",menu:"menu.com",reservations:"reservations.com",starRating:3.75,awards:"Best fermented grape juice around",media:"media.com",generalInfo:"open 11AM -9PM",notes:"Try the blends.",photos:["link","link"]},{id:"7",title:"Nice golf course",lat:40.037757,lng:-105.258199,iconName:"golf course",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.CaddyShack.com",instagram:"#",map_id:"0",orderIndex:6,address:"1234 abc court",menu:"menu.com",reservations:"reservations.com",starRating:5,awards:"Best place to golf 2019",media:"media.com",generalInfo:"FOURRRRR",notes:"hole 8 is tricky.",photos:["link","link"]},{id:"8",title:"Happy Hotel",lat:40.037757,lng:-105.278199,iconName:"lodging",town:"Boulder",country:"USA",phoneNumber:"303-123-1234",website:"www.Happys.com",instagram:"#",map_id:"0",orderIndex:7,address:"1234 abc court",menu:"menu.com",reservations:"reservations.com",starRating:3.5,awards:"Best place to sleep 2019",media:"media.com",generalInfo:"Checkout is 11 am",notes:"Try to get a room that over looks the flat Irons.",photos:["link","link"]}],v.MAP_CONFIG_TO_LOAD={id:"",title:"Loaded Map",origin:{lat:40.017557,lng:-105.278199},zoom:15,locationList:[]},v);function v(){}var I=(M.prototype.ngOnInit=function(){},M.decorators=[{type:m.Component,args:[{selector:"lcu-landing-page",template:' <div class="landing-page-image">\r\n <div class="container" fxFlex="100%"\r\n fxLayout="column" fxLayoutAlign="center start"\r\n fxLayout.sm="column" fxLayoutAlign.sm="center center"\r\n fxLayout.xs="column" fxLayoutAlign.xs="center center">\r\n <div class="title">\r\n <h1>\r\n {{ Title }}\r\n </h1>\r\n </div>\r\n <div class="slogan">\r\n <h3>\r\n {{ Slogan }}\r\n </h3>\r\n </div>\r\n </div>\r\n</div>',styles:[".landing-page-image{background:url(assets/Angkor-sunrise.jpg) center center/cover no-repeat fixed;height:100vh}.landing-page-image .container{margin-top:14em;margin-left:1em;text-align:center}.landing-page-image .container h1{margin:0}.landing-page-image .container .slogan,.landing-page-image .container .title{color:#fff}"]}]}],M.ctorParameters=function(){return[]},M);function M(){this.Title="Ambl On",this.Slogan="Down the Road, Around the World!"}var k=function G(e,t,o,n,a){this.Map=e,this.MapUrl=t,this.Title=o,this.Lat=n,this.Lng=a},S=(x.prototype.AddMapToList=function(e){var t=""===localStorage.getItem(this.mapList)?[]:JSON.parse(localStorage.getItem(this.mapList));t.push(e),localStorage.setItem(this.mapList,JSON.stringify(t))},x.prototype.ReplaceMap=function(t){var e=""===localStorage.getItem(this.mapList)?[]:JSON.parse(localStorage.getItem(this.mapList)),o=e.findIndex(function(e){return e.id===t.id});console.log(o),e.splice(o,1,t),localStorage.setItem(this.mapList,JSON.stringify(e))},x.prototype.GetMapList=function(){return""===localStorage.getItem(this.mapList)?[]:JSON.parse(localStorage.getItem(this.mapList))},x.prototype.GetMapById=function(t){return(""===localStorage.getItem(this.mapList)?[]:JSON.parse(localStorage.getItem(this.mapList))).find(function(e){return e.id===t})},x.prototype.DeleteMapList=function(){localStorage.setItem(this.mapList,""),localStorage.setItem(this.locationList,"")},x.prototype.SaveLocationLegend=function(e){localStorage.setItem(this.locationList,JSON.stringify(e))},x.prototype.GetLocationLegend=function(){return""===localStorage.getItem(this.locationList)?[]:JSON.parse(localStorage.getItem(this.locationList))},x.decorators=[{type:m.Injectable,args:[{providedIn:"root"}]}],x.ctorParameters=function(){return[]},x.ngInjectableDef=m.defineInjectable({factory:function(){return new x},token:x,providedIn:"root"}),x);function x(){this.mapList="ambl_onMapList",this.locationList="ambl_onLocationList",null===localStorage.getItem(this.mapList)&&localStorage.setItem(this.mapList,""),null===localStorage.getItem(this.locationList)&&localStorage.setItem(this.locationList,"")}var N=(A.prototype.ngOnInit=function(){},A.prototype.CreateLayer=function(e,t){return new l.IndividualMap({id:"TheSpecialCuratedMap",title:t?t.title:"Default Map",origin:t?t.origin:{lat:40,lng:-105},zoom:t?t.zoom:10,locationList:e})},A.decorators=[{type:m.Injectable,args:[{providedIn:"root"}]}],A.ngInjectableDef=m.defineInjectable({factory:function(){return new A},token:A,providedIn:"root"}),A);function A(){}var U=(B.prototype.GetLegendLocations=function(){return this.LegendLocations=this.tempStorage.GetLocationLegend(),this.LegendLocations},B.prototype.GetThumbnailList=function(){return this.ThumbnailList},B.prototype.GetPrimaryMap=function(){return this.primaryMap},B.prototype.GetMapList=function(){return this.mapList},B.prototype.GetAllMaps=function(){return this.tempStorage.GetMapList()},B.prototype.GetMapById=function(t){return this.mapList.find(function(e){return e.id===t})},B.prototype.GetMarkerList=function(){return this.MarkerList},B.prototype.AddMap=function(e){this.tempStorage.AddMapToList(e),this.setMapsWithPrimaryId(e.id)},B.prototype.ChangeLatLng=function(e,t){this.LatLngEmitter.next([e,t])},B.prototype.DisplayBasicInfo=function(e){this.BasicInfoWindowEmitter.next(e)},B.prototype.UpdateVisibleLocations=function(e){this.VisibleLocations=e,this.VisibleLocations!==this.LegendLocations&&this.AddToLegendLocations(e)},B.prototype.AddToLegendLocations=function(o){for(var e=function(e){var t=o[e].id;0===n.LegendLocations.filter(function(e){return e.id===t}).length?n.LegendLocations.push(o[e]):n.CheckInfo(o[e])},n=this,t=0;t<o.length;t++)e(t);this.UpdateLegendLocations(this.LegendLocations),this.UpdateVisibleLocations(this.LegendLocations)},B.prototype.CheckInfo=function(t){var e=this.LegendLocations.filter(function(e){return e.id===t.id}),o=this.LegendLocations.indexOf(e[0]);this.LegendLocations[o]=t},B.prototype.UpdateLegendLocations=function(e){this.tempStorage.SaveLocationLegend(e)},B.prototype.ReplaceMap=function(e){this.tempStorage.ReplaceMap(e)},B.prototype.BuildThumbnailList=function(e){for(var t=new Array,o=0;o<e.length;o++){var n=new k(e[o],this.getMapThumbnail(e[o],200,200),e[o].title,e[o].origin.lat,e[o].origin.lng);t.push(n)}return t.sort(function(e,t){return e.Title.toUpperCase()>t.Title.toUpperCase()?1:-1}),t},B.prototype.PrimaryMapChanged=function(e){this.setMapsWithPrimaryId(e)},B.prototype.DeleteMaps=function(){this.tempStorage.DeleteMapList()},B.prototype.getMapThumbnail=function(e,t,o){return"https://maps.googleapis.com/maps/api/staticmap?center="+e.origin.lat+","+e.origin.lng+"\n &zoom="+(e.zoom-2)+"\n &size="+(o&&t?t:300)+"x"+(o&&t?o:300)+"\n &key=AIzaSyAsKh4_TXpYV57SBs7j3b6qFcJUG6fNHoU"},B.prototype.setMapsWithPrimaryId=function(t){this.primaryMap=this.tempStorage.GetMapById(t),this.mapList=this.tempStorage.GetMapList().filter(function(e){return e.id!==t}),this.MapChanged.emit(this.primaryMap)},B.decorators=[{type:m.Injectable,args:[{providedIn:"root"}]}],B.ctorParameters=function(){return[{type:S},{type:N}]},B.ngInjectableDef=m.defineInjectable({factory:function(){return new B(m.inject(S),m.inject(N))},token:B,providedIn:"root"}),B);function B(e,t){var o=this;this.tempStorage=e,this.locLoader=t,this.CuratedList=this.locLoader.CreateLayer(b.LOCATIONS_TO_LOAD,b.MAP_CONFIG_TO_LOAD),this.LatLngEmitter=new c.Subject,this.BasicInfoWindowEmitter=new c.Subject,this.VisibleLocations=[],this.LegendLocations=[],this.MarkerList=b.DEFAULT_MARKER_INFO,this.primaryMap=this.tempStorage.GetMapList()[0],this.mapList=this.tempStorage.GetMapList().filter(function(e){return e.id!==o.primaryMap.id}),this.MapChanged=new m.EventEmitter}var _=(O.prototype.ngOnInit=function(){},O.prototype.PanTo=function(e){this.mapService.ChangeLatLng(e.lat,e.lng),this.mapService.DisplayBasicInfo(e)},O.prototype.SetLocationList=function(){this.LocationsList=new Array,this.MapTitle=this.primaryMap!==undefined?this.primaryMap.title:"";var e=new Array,t=this.mapService.GetLegendLocations();0<t.length&&(e=this.moveUndefinedToBottom(t),t.sort(this.compareObject)),this.assignIconUrl(e)},O.prototype.drop=function(e){d.moveItemInArray(this.LocationsList,e.previousIndex,e.currentIndex),this.giveOrder(),this.mapService.UpdateLegendLocations(this.LocationsList)},O.prototype.assignIconUrl=function(e){for(var t=0;t<e.length;t++){for(var o=0;o<this.iconList.length;o++)e[t].iconName.match(this.iconList[o].iconLookup)&&(e[t].iconUrl=this.iconList[o].iconUrl);this.LocationsList.push(e[t])}},O.prototype.giveOrder=function(){for(var e=0;e<this.LocationsList.length;e++)this.LocationsList[e].orderIndex=e},O.prototype.compareObject=function(e,t){return e.orderIndex>t.orderIndex?1:e.orderIndex<t.orderIndex?-1:e.title>t.title?1:e.title<t.title?-1:0},O.prototype.moveUndefinedToBottom=function(e){var t=new Array,o=new Array;return e.forEach(function(e){0<=e.orderIndex?o.push(e):t.push(e)}),t&&t.forEach(function(e){o.push(e)}),o},O.decorators=[{type:m.Component,args:[{selector:"lcu-legend",template:'<button class="chevron-legend" mat-icon-button [matMenuTriggerFor]="legend" (click)="SetLocationList()">\r\n <mat-icon [inline]="true">chevron_left</mat-icon>\r\n</button>\r\n<mat-menu #legend="matMenu">\r\n <h3 class="map-title" fxLayoutAlign="center">{{MapTitle}}</h3>\r\n <div cdkDropList class="location-list" (cdkDropListDropped)="drop($event)" fxLayout="column">\r\n <div class="location-box" \r\n fxLayout="row" fxLayoutAlign="start center" fxLayoutGap="10px"\r\n *ngFor="let item of LocationsList" cdkDrag (click)="PanTo(item)">\r\n <img class="icon-image" src={{item.iconUrl}} >\r\n <div class="location-title">\r\n {{ item.title }}\r\n </div>\r\n </div>\r\n </div>\r\n</mat-menu>\r\n',styles:[".chevron-legend{background-color:transparent;border-width:0;outline:0;font-size:30px}.icon-image{width:20px;height:20px}.location-box{padding:5px;border-top:1px solid #ccc;display:flex;cursor:move;font-size:14px}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating,.location-list.cdk-drop-list-dragging .location-box:not(.cdk-drag-placeholder){transition:transform 250ms cubic-bezier(0,0,.2,1);transition:transform 250ms cubic-bezier(0,0,.2,1),-webkit-transform 250ms cubic-bezier(0,0,.2,1)}"]}]}],O.ctorParameters=function(){return[{type:U},{type:S}]},O);function O(e,t){this.mapService=e,this.storageService=t,this.primaryMap=this.mapService.GetPrimaryMap(),this.iconList=this.mapService.GetMarkerList(),this.LocationsList=new Array,this.SetLocationList()}var T=(R.prototype.ngOnInit=function(){},R.prototype.ngOnDestroy=function(){this.ThumbnailList=null},R.prototype.LoadMap=function(e){this.dialogRef.close(e),this.mapService.PrimaryMapChanged(e.id)},R.prototype.Close=function(){this.dialogRef.close()},R.decorators=[{type:m.Component,args:[{selector:"lcu-my-atlas-modal",template:'<div class="my-atlas-modal" fxLayoutGap="15px grid">\r\n <div class="head" fxLayout="row" fxLayoutAlign="space-between">\r\n <h1 mat-dialog-title>My Atlas</h1>\r\n <mat-icon (click)="Close()" matTooltip="Close" style="cursor: pointer;">close</mat-icon>\r\n </div>\r\n <div class="thumbnail-container" fxLayoutAlign="space-evenly center" fxLayout="row wrap">\r\n <mat-card class="col" style="cursor: pointer;" fxFlexOffset="5" fxFlex="0 0 200px" *ngFor="let nail of ThumbnailList"\r\n (dblclick)="LoadMap(nail.Map)">\r\n <img mat-card-image src={{nail.MapUrl}}>\r\n <mat-card-content>\r\n <p fxLayoutAlign="center center">{{nail.Title}}</p>\r\n </mat-card-content>\r\n </mat-card>\r\n </div>\r\n</div>',styles:[".my-atlas-modal{height:80vh;width:70vw}"]}]}],R.ctorParameters=function(){return[{type:U},{type:u.MatDialogRef}]},R);function R(e,t){this.mapService=e,this.dialogRef=t,this.ThumbnailList=this.mapService.BuildThumbnailList(this.mapService.GetMapList())}var C=(P.forRoot=function(){return{ngModule:P,providers:[y]}},P.decorators=[{type:m.NgModule,args:[{declarations:[I,_,T],imports:[o.CommonModule,d.DragDropModule,a.FlexLayoutModule,r.BrowserAnimationsModule,n.MatMenuModule,u.MatIconModule,u.MatSelectModule,u.MatDialogModule,u.MatButtonModule,i.ReactiveFormsModule,u.MatInputModule,u.MatFormFieldModule,s.RouterModule,u.MatCardModule],exports:[I,u.MatIconModule,_,T],entryComponents:[I,_,T]}]}],P);function P(){}function D(e,t,o,n){this.Title=e,this.Lat=t,this.Lng=o,this.Icon=n}e.UsersStateManagerContext=y,e.UsersState=w,e.Constants=b,e.LandingPageComponent=I,e.LcuAmblOnModule=C,e.LegendComponent=_,e.LocationListModel=D,e.MapService=U,e.MyAtlasModalComponent=T,e.ɵa=S,e.ɵb=N,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=ambl-on-lcu-ambl-on-common.umd.min.js.map |
@@ -152,5 +152,5 @@ /** | ||
this.VisibleLocations = list; | ||
console.log("visible locations updated: ", list); | ||
//console.log("visible locations updated: ", list) | ||
if (this.VisibleLocations !== this.LegendLocations) { | ||
console.log("Updating legend"); | ||
// console.log("Updating legend") | ||
this.AddToLegendLocations(list); | ||
@@ -164,3 +164,3 @@ } | ||
AddToLegendLocations(visLoc) { | ||
console.log("visLoc = ", visLoc); | ||
//console.log("visLoc = ", visLoc); | ||
for (let i = 0; i < visLoc.length; i++) { | ||
@@ -376,2 +376,2 @@ /** @type {?} */ | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFwLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYW1ibC1vbi9sY3UtYW1ibC1vbi1jb21tb24vIiwic291cmNlcyI6WyJsaWIvc2VydmljZXMvbWFwLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsWUFBWSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRXpELE9B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b29tIC0gMn1cclxuICAgICZzaXplPSR7aGVpZ2h0ICYmIHdpZHRoID8gd2lkdGggOiAzMDB9eCR7aGVpZ2h0ICYmIHdpZHRoID8gaGVpZ2h0IDogMzAwfVxyXG4gICAgJmtleT1BSXphU3lBc0toNF9UWHBZVjU3U0JzN2ozYjZxRmNKVUc2Zk5Ib1VgO1xyXG4gIH1cclxuXHJcbiAgLyoqXHJcbiAgICpcclxuICAgKiBAcGFyYW0gaWQgVGhlIGlkIG9mIHRoZSBuZXcgcHJpbWFyeSBtYXBcclxuICAgKlxyXG4gICAqIFNldHMgdGhlIHByaW1hcnkgbWFwIHRvIHRoYXQgd2l0aCB0aGUgcGFzc2VkIGlkLFxyXG4gICAqXHJcbiAgICogU2V0cyB0aGUgc2Vjb25kYXJ5IG1hcHMgdG8gYSBsaXN0IG9mIGFsbCB0aGUgbWFwcyBtaW51cyB0aGF0IHdpdGggdGhlIHBhc3NlZCBpZFxyXG4gICAqXHJcbiAgICogRW1pdHMgdGhlIG5ldyBwcmltYXJ5IG1hcFxyXG4gICAqL1xyXG4gIHByb3RlY3RlZCBzZXRNYXBzV2l0aFByaW1hcnlJZChpZDogc3RyaW5nKTogdm9pZCB7XHJcbiAgICB0aGlzLnByaW1hcnlNYXAgPSB0aGlzLnRlbXBTdG9yYWdlLkdldE1hcEJ5SWQoaWQpO1xyXG4gICAgdGhpcy5tYXBMaXN0ID0gdGhpcy50ZW1wU3RvcmFnZS5HZXRNYXBMaXN0KCkuZmlsdGVyKG1hcCA9PiBtYXAuaWQgIT09IGlkKTtcclxuICAgIHRoaXMuTWFwQ2hhbmdlZC5lbWl0KHRoaXMucHJpbWFyeU1hcCk7XHJcbiAgfVxyXG5cclxufVxyXG4iXX0= |
@@ -109,3 +109,2 @@ /** | ||
GetLocationLegend() { | ||
//console.log("getting legend list"); | ||
if (localStorage.getItem(this.locationList) === '') { | ||
@@ -117,3 +116,2 @@ return []; | ||
let temp = JSON.parse(localStorage.getItem(this.locationList)); | ||
//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hcExpc3QuZmluZChtYXAgPT4ge1xyXG4gICAgICAgICAgICByZXR1cm4gbWFwLmlkID09PSBpZDtcclxuICAgICAgICB9KTtcclxuICAgIH1cclxuXHJcbiAgICBwdWJsaWMgRGVsZXRlTWFwTGlzdCgpOiB2b2lkIHtcclxuICAgICAgICBsb2NhbFN0b3JhZ2Uuc2V0SXRlbSh0aGlzLm1hcExpc3QsICcnKTtcclxuICAgICAgICBsb2NhbFN0b3JhZ2Uuc2V0SXRlbSh0aGlzLmxvY2F0aW9uTGlzdCwgJycpO1xyXG4gICAgfVxyXG5cclxuXHJcbiAgICBwdWJsaWMgU2F2ZUxvY2F0aW9uTGVnZW5kKGxpc3Q6IEFycmF5PE1hcE1hcmtlcj4pOiB2b2lkIHtcclxuICAgICAgIFxyXG4gICAgICAgIGxvY2FsU3RvcmFnZS5zZXRJdGVtKHRoaXMubG9jYXRpb25MaXN0LCBKU09OLnN0cmluZ2lmeShsaXN0KSk7XHJcbiAgICB9XHJcblxyXG4gICAgcHVibGljIEdldExvY2F0aW9uTGVnZW5kKCkge1xyXG4gICAgICAgIGlmIChsb2NhbFN0b3JhZ2UuZ2V0SXRlbSh0aGlzLmxvY2F0aW9uTGlzdCkgPT09ICcnKSB7XHJcbiAgICAgICAgICAgIHJldHVybiBbXTtcclxuICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgICBsZXQgdGVtcDogQXJyYXk8TWFwTWFya2VyPiA9IEpTT04ucGFyc2UobG9jYWxTdG9yYWdlLmdldEl0ZW0odGhpcy5sb2NhdGlvbkxpc3QpKTtcclxuICAgICAgICAgICAgcmV0dXJuIHRlbXA7XHJcbiAgICAgICAgfVxyXG4gICAgfVxyXG5cclxuICAgIC8vIEhFTFBFUlNcclxuXHJcbn1cclxuIl19 |
@@ -261,5 +261,5 @@ /** | ||
this.VisibleLocations = list; | ||
console.log("visible locations updated: ", list); | ||
//console.log("visible locations updated: ", list) | ||
if (this.VisibleLocations !== this.LegendLocations) { | ||
console.log("Updating legend"); | ||
// console.log("Updating legend") | ||
this.AddToLegendLocations(list); | ||
@@ -277,3 +277,2 @@ } | ||
function (visLoc) { | ||
console.log("visLoc = ", visLoc); | ||
var _loop_1 = function (i) { | ||
@@ -294,2 +293,3 @@ /** @type {?} */ | ||
var this_1 = this; | ||
//console.log("visLoc = ", visLoc); | ||
for (var i = 0; i < visLoc.length; i++) { | ||
@@ -608,2 +608,2 @@ _loop_1(i); | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFwLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYW1ibC1vbi9sY3UtYW1ibC1vbi1jb21tb24vIiwic291cmNlcyI6WyJsaWIvc2VydmljZXMvbWFwLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsWUFBWSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRXpELE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLGdDQUFnQyxDQUFDO0FBQ3BFLE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFDL0IsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLDhCQUE4QixDQUFDO0FBQ3pELE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBQzVELE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQzs7OztBQUUxRDtJQWtERSxlQUFlO0lBRWYsb0JBQXNCLFdBQStCLEVBQVksU0FBeUI7UUFBMUYsaUJBSUM7UUFKcUIsZ0JBQVcsR0FBWCxXQUFXLENBQW9CO1FBQVksY0FBUyxHQUFULFNBQVMsQ0FBZ0I7Ozs7O1FBOUJuRixnQkFBVyxHQUFHLElBQUksQ0FBQyxTQUFTLENBQUMsV0FBVyxDQUFDLFNBQVMs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cENoYW5nZWQuZW1pdCh0aGlzLnByaW1hcnlNYXApO1xyXG4gIH1cclxuXHJcbn1cclxuIl19 |
@@ -139,3 +139,2 @@ /** | ||
function () { | ||
//console.log("getting legend list"); | ||
if (localStorage.getItem(this.locationList) === '') { | ||
@@ -147,3 +146,2 @@ return []; | ||
var temp = JSON.parse(localStorage.getItem(this.locationList)); | ||
//console.log("Got legend = ", temp); | ||
return temp; | ||
@@ -176,2 +174,2 @@ } | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVtcC5zdG9yYWdlLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYW1ibC1vbi9sY3UtYW1ibC1vbi1jb21tb24vIiwic291cmNlcyI6WyJsaWIvc2VydmljZXMvdGVtcC5zdG9yYWdlLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQVUsTUFBTSxlQUFlLENBQUM7O0FBR25EO0lBZ0JJLGVBQWU7SUFFZjs7Ozs7O1FBTm1CLFlBQU8sR0FBVyxnQkFBZ0IsQ0FBQztRQUU1QyxpQkFBWSxHQUFXLHFCQUFxQixDQUFDO1FBS25ELElBQUksWUFBWSxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLEtBQUssSUFBSSxFQUFFO1lBQzdDLFlBQVksQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLE9BQU8sRUFBRSxFQUFFLENBQUMsQ0FBQztTQUMxQztRQUNELElBQUksWUFBWSxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsWUFBWSxDQUFDLEtBQUssSUFBSSxFQUFFO1lBQ2xELFlBQVksQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLFlBQVksRUFBRSxFQUFFLENBQUMsQ0FBQztTQUMvQztJQUNMLENBQUM7SUFFRCxZQUFZO0lBQ1osT0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XBMaXN0KCk6IHZvaWQge1xyXG4gICAgICAgIGxvY2FsU3RvcmFnZS5zZXRJdGVtKHRoaXMubWFwTGlzdCwgJycpO1xyXG4gICAgICAgIGxvY2FsU3RvcmFnZS5zZXRJdGVtKHRoaXMubG9jYXRpb25MaXN0LCAnJyk7XHJcbiAgICB9XHJcblxyXG5cclxuICAgIHB1YmxpYyBTYXZlTG9jYXRpb25MZWdlbmQobGlzdDogQXJyYXk8TWFwTWFya2VyPik6IHZvaWQge1xyXG4gICAgICAgXHJcbiAgICAgICAgbG9jYWxTdG9yYWdlLnNldEl0ZW0odGhpcy5sb2NhdGlvbkxpc3QsIEpTT04uc3RyaW5naWZ5KGxpc3QpKTtcclxuICAgIH1cclxuXHJcbiAgICBwdWJsaWMgR2V0TG9jYXRpb25MZWdlbmQoKSB7XHJcbiAgICAgICAgLy9jb25zb2xlLmxvZyhcImdldHRpbmcgbGVnZW5kIGxpc3RcIik7XHJcbiAgICAgICAgaWYgKGxvY2FsU3RvcmFnZS5nZXRJdGVtKHRoaXMubG9jYXRpb25MaXN0KSA9PT0gJycpIHtcclxuICAgICAgICAgICAgcmV0dXJuIFtdO1xyXG4gICAgICAgIH0gZWxzZSB7XHJcbiAgICAgICAgICAgIGxldCB0ZW1wOiBBcnJheTxNYXBNYXJrZXI+ID0gSlNPTi5wYXJzZShsb2NhbFN0b3JhZ2UuZ2V0SXRlbSh0aGlzLmxvY2F0aW9uTGlzdCkpO1xyXG4gICAgICAgICAgICAvL2NvbnNvbGUubG9nKFwiR290IGxlZ2VuZCA9IFwiLCB0ZW1wKTtcclxuICAgICAgICAgICAgcmV0dXJuIHRlbXA7XHJcbiAgICAgICAgfVxyXG4gICAgfVxyXG5cclxuICAgIC8vIEhFTFBFUlNcclxuXHJcbn1cclxuIl19 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVtcC5zdG9yYWdlLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6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4gICAgcHVibGljIEdldExvY2F0aW9uTGVnZW5kKCkge1xyXG4gICAgICAgIGlmIChsb2NhbFN0b3JhZ2UuZ2V0SXRlbSh0aGlzLmxvY2F0aW9uTGlzdCkgPT09ICcnKSB7XHJcbiAgICAgICAgICAgIHJldHVybiBbXTtcclxuICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgICBsZXQgdGVtcDogQXJyYXk8TWFwTWFya2VyPiA9IEpTT04ucGFyc2UobG9jYWxTdG9yYWdlLmdldEl0ZW0odGhpcy5sb2NhdGlvbkxpc3QpKTtcclxuICAgICAgICAgICAgcmV0dXJuIHRlbXA7XHJcbiAgICAgICAgfVxyXG4gICAgfVxyXG5cclxuICAgIC8vIEhFTFBFUlNcclxuXHJcbn1cclxuIl19 |
@@ -334,3 +334,2 @@ import { __awaiter } from 'tslib'; | ||
GetLocationLegend() { | ||
//console.log("getting legend list"); | ||
if (localStorage.getItem(this.locationList) === '') { | ||
@@ -342,3 +341,2 @@ return []; | ||
let temp = JSON.parse(localStorage.getItem(this.locationList)); | ||
//console.log("Got legend = ", temp); | ||
return temp; | ||
@@ -538,5 +536,5 @@ } | ||
this.VisibleLocations = list; | ||
console.log("visible locations updated: ", list); | ||
//console.log("visible locations updated: ", list) | ||
if (this.VisibleLocations !== this.LegendLocations) { | ||
console.log("Updating legend"); | ||
// console.log("Updating legend") | ||
this.AddToLegendLocations(list); | ||
@@ -550,3 +548,3 @@ } | ||
AddToLegendLocations(visLoc) { | ||
console.log("visLoc = ", visLoc); | ||
//console.log("visLoc = ", visLoc); | ||
for (let i = 0; i < visLoc.length; i++) { | ||
@@ -553,0 +551,0 @@ /** @type {?} */ |
@@ -395,3 +395,2 @@ import { __extends, __awaiter, __generator } from 'tslib'; | ||
function () { | ||
//console.log("getting legend list"); | ||
if (localStorage.getItem(this.locationList) === '') { | ||
@@ -403,3 +402,2 @@ return []; | ||
var temp = JSON.parse(localStorage.getItem(this.locationList)); | ||
//console.log("Got legend = ", temp); | ||
return temp; | ||
@@ -732,5 +730,5 @@ } | ||
this.VisibleLocations = list; | ||
console.log("visible locations updated: ", list); | ||
//console.log("visible locations updated: ", list) | ||
if (this.VisibleLocations !== this.LegendLocations) { | ||
console.log("Updating legend"); | ||
// console.log("Updating legend") | ||
this.AddToLegendLocations(list); | ||
@@ -748,3 +746,2 @@ } | ||
function (visLoc) { | ||
console.log("visLoc = ", visLoc); | ||
var _loop_1 = function (i) { | ||
@@ -765,2 +762,3 @@ /** @type {?} */ | ||
var this_1 = this; | ||
//console.log("visLoc = ", visLoc); | ||
for (var i = 0; i < visLoc.length; i++) { | ||
@@ -767,0 +765,0 @@ _loop_1(i); |
{ | ||
"name": "@ambl-on/lcu-ambl-on-common", | ||
"version": "0.1.280-my-atlas", | ||
"version": "0.1.281-my-atlas", | ||
"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 not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
836828
7732