@ambl-on/lcu-ambl-on-common
Advanced tools
Comparing version 0.1.43-my-atlas to 0.1.44-integration
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"UsersStateManagerContext":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@lcu-ide/common","name":"StateManagerContext","line":7,"character":46},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":4,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":14,"character":34}]}],"SetActive":[{"__symbolic":"method"}],"defaultValue":[{"__symbolic":"method"}],"loadStateKey":[{"__symbolic":"method"}],"loadStateName":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"UsersState":{"__symbolic":"class","members":{}},"HamburgerMenuComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":4,"character":1},"arguments":[{"selector":"lcu-hamburger-menu","template":"<!-- <nav class=\"hamburger-nav\"> -->\r\n <button class=\"hamburger-menu\" mat-icon-button [matMenuTriggerFor]=\"menu\">\r\n <mat-icon [inline]=\"true\">menu</mat-icon>\r\n </button>\r\n <!-- Builds the hamburger menu from the item in the constants.ts file-->\r\n <mat-menu #menu=\"matMenu\">\r\n <button class=\"item-button\" mat-menu-item *ngFor= \"let item of MenuItems\" [disabled]= item.Disabled routerLink={{item.Url}}>\r\n <mat-icon>{{ item.Icon }}</mat-icon>\r\n <span>{{ item.Label }}</span>\r\n </button>\r\n </mat-menu>\r\n<!-- </nav> -->","styles":[".hamburger-menu{background-color:transparent;border-width:0;outline:0;font-size:30px}"]}]}],"members":{"ngOnInit":[{"__symbolic":"method"}]}},"LandingPageComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"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}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}]}},"Constants":{"__symbolic":"class","members":{},"statics":{"VAR_NAMES_MENU":[{"Label":"Home","Icon":"home","Url":"/home","Disabled":"false"},{"Label":"My Atlas","Icon":"public","Url":"/map","Disabled":"false"},{"Label":"My Itenerarries","Icon":"map","Url":"www","Disabled":"true"},{"Label":"My Top Lists","Icon":"sort","Url":"www","Disabled":"true"},{"Label":"My Albums","Icon":"photo_library","Url":"www","Disabled":"true"},{"Label":"My Friends","Icon":"group","Url":"www","Disabled":"true"},{"Label":"My Profile","Icon":"person","Url":"www","Disabled":"true"}]}},"HamburgerMenuModel":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"string"}]}]}},"LcuAmblOnModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":19,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"LandingPageComponent"},{"__symbolic":"reference","name":"HamburgerMenuComponent"},{"__symbolic":"reference","name":"MapComponent"},{"__symbolic":"reference","name":"AddMapMarkerComponent"},{"__symbolic":"reference","name":"MyAtlasComponent"},{"__symbolic":"reference","name":"LegendComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":22,"character":4},{"__symbolic":"reference","module":"@angular/flex-layout","name":"FlexLayoutModule","line":23,"character":4},{"__symbolic":"reference","module":"@angular/platform-browser/animations","name":"BrowserAnimationsModule","line":24,"character":4},{"__symbolic":"reference","module":"@angular/material/menu","name":"MatMenuModule","line":25,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatIconModule","line":26,"character":4},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@agm/core","name":"AgmCoreModule","line":27,"character":4},"member":"forRoot"},"arguments":[{"apiKey":"AIzaSyCvvqYY9pMUpRSKl721rPEiN4KlKIpCImg"}]},{"__symbolic":"reference","module":"@angular/material","name":"MatIconModule","line":28,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatSelectModule","line":29,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatDialogModule","line":30,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatButtonModule","line":31,"character":4},{"__symbolic":"reference","module":"@angular/forms","name":"ReactiveFormsModule","line":32,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatInputModule","line":33,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatFormFieldModule","line":34,"character":4},{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":35,"character":4}],"exports":[{"__symbolic":"reference","name":"LandingPageComponent"},{"__symbolic":"reference","name":"HamburgerMenuComponent"},{"__symbolic":"reference","name":"MapComponent"},{"__symbolic":"reference","name":"AddMapMarkerComponent"},{"__symbolic":"reference","module":"@angular/material","name":"MatIconModule","line":37,"character":95},{"__symbolic":"reference","name":"MyAtlasComponent"},{"__symbolic":"reference","name":"LegendComponent"}],"entryComponents":[{"__symbolic":"reference","name":"LandingPageComponent"},{"__symbolic":"reference","name":"HamburgerMenuComponent"},{"__symbolic":"reference","name":"AddMapMarkerComponent"},{"__symbolic":"reference","name":"LegendComponent"},{"__symbolic":"reference","name":"MyAtlasComponent"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbolic":"reference","name":"LcuAmblOnModule"},"providers":[{"__symbolic":"reference","name":"UsersStateManagerContext"}]}}}},"MyAtlasComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"lcu-my-atlas","template":"<p>\r\n my-atlas works!\r\n</p>\r\n","styles":[""]}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}]}},"LegendComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"lcu-legend","template":"<button class=\"chevron-legend\" mat-icon-button [matMenuTriggerFor]=\"legend\">\r\n <mat-icon [inline]=\"true\">chevron_left</mat-icon>\r\n</button>\r\n<mat-menu #legend=\"matMenu\"></mat-menu>\r\n","styles":[".chevron-legend{background-color:transparent;border-width:0;outline:0;font-size:30px}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}]}},"IndividualMap":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"IndividualMap"}]}]}},"MapMarker":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"MapMarker"}]}]}},"MapComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":7,"character":1},"arguments":[{"selector":"lcu-map","template":"<div class=\"icon-list\">\r\n <div>\r\n <div class=\"top-icon-set\">\r\n <mat-icon class=\"hamburger-icon\">menu</mat-icon>\r\n <mat-icon class=\"chevron-icon\">chevron_left</mat-icon>\r\n </div>\r\n <div class=\"bottom-icon-set\" fxLayoutAlign.lt-sm=\"flex-start\" fxLayoutAlign=\"space-around\" fxLayoutGap.lt-sm=\"50px\">\r\n <mat-icon>search</mat-icon>\r\n <mat-icon >add</mat-icon>\r\n <mat-icon>layers</mat-icon>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<agm-map [latitude]=\"CurrentMapModel.origin.lat\" [longitude]=\"CurrentMapModel.origin.lng\" [title]=\"CurrentMapModel.title\" [zoom]=\"CurrentMapModel.zoom\"\r\n (mapClick)=\"OnChoseLocation($event)\">\r\n <div *ngFor=\"let marker of CurrentMapModel.locationList\">\r\n <agm-marker [latitude]=\"marker.lat\" [longitude]=\"marker.lng\" [title]=\"marker.title\" [iconUrl]=\"marker.icon\"></agm-marker>\r\n </div>\r\n</agm-map>\r\n\r\n","styles":["mat-icon{font-size:30px}.icon-list{padding:5px}.hamburger-icon{position:absolute;left:10px}@media (max-width:600px){.hamburger-icon{position:relative}}.chevron-icon{position:absolute;right:10px}.bottom-icon-set{width:80%;margin:auto}@media (max-width:600px){.bottom-icon-set{margin-left:10px}}agm-map{height:700px}"]}]}],"members":{"mapModel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":26,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/material","name":"MatDialog","line":45,"character":30},{"__symbolic":"reference","name":"ɵa"}]}],"ngOnInit":[{"__symbolic":"method"}],"OnChoseLocation":[{"__symbolic":"method"}]}},"AddMapMarkerComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"selector":"lcu-add-map-marker","template":"<h1 mat-dialog-title>Add a marker here?</h1>\r\n\r\n\r\n<mat-dialog-content>\r\n <form fxLayout=\"column\" fxLayoutAlign=\"center center\" [formGroup]=\"NewMarkerForm\" fxLayoutGap=\"30px\">\r\n <h4>Marker Title:</h4>\r\n <mat-form-field>\r\n <input type=\"text\" matInput formControlName=\"title\">\r\n <mat-hint>The title for the map marker</mat-hint>\r\n <mat-error>Invalid or missing title</mat-error>\r\n </mat-form-field>\r\n\r\n <h4>Choose Icon:</h4>\r\n <mat-form-field>\r\n <mat-label>Icon</mat-label>\r\n <mat-select formControlName=\"icon\">\r\n <mat-option *ngFor=\"let icon of IconList\" [value]=\"icon\">{{icon}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n\r\n </form>\r\n</mat-dialog-content>\r\n\r\n\r\n<button mat-raised-button color=\"primary\" [mat-dialog-close]=\"NewMarker\" (click)=\"SetMarkerData()\"\r\n [disabled]=\"NewMarkerForm.invalid\">Add Marker</button>\r\n<button mat-raised-button color=\"accent\" [mat-dialog-close]=\"false\">Cancel</button>","styles":[""]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":32,"character":15},"arguments":[{"__symbolic":"reference","module":"@angular/material","name":"MAT_DIALOG_DATA","line":32,"character":22}]}],null],"parameters":[{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","name":"ɵa"}]}],"ngOnInit":[{"__symbolic":"method"}],"SetMarkerData":[{"__symbolic":"method"}]}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":2,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"ConvertIconUrl":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}}},"origins":{"UsersStateManagerContext":"./lib/state/users/users-state-manager.context","UsersState":"./lib/state/users/users-state.model","HamburgerMenuComponent":"./lib/controls/hamburger-menu/hamburger-menu.component","LandingPageComponent":"./lib/controls/landing-page/landing-page.component","Constants":"./lib/utils/constants/constants","HamburgerMenuModel":"./lib/models/hamburger-menu.model","LcuAmblOnModule":"./lib/lcu-ambl-on.module","MyAtlasComponent":"./lib/controls/my-atlas/my-atlas.component","LegendComponent":"./lib/controls/legend/legend.component","IndividualMap":"./lib/models/individual-map.model","MapMarker":"./lib/models/map-marker.model","MapComponent":"./lib/controls/map/map.component","AddMapMarkerComponent":"./lib/controls/map/add-map-marker/add-map-marker.component","ɵa":"./lib/services/map.service"},"importAs":"@ambl-on/lcu-ambl-on-common"} | ||
{"__symbolic":"module","version":4,"metadata":{"UsersStateManagerContext":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@lcu-ide/common","name":"StateManagerContext","line":7,"character":46},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":4,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Injector","line":14,"character":34}]}],"SetActive":[{"__symbolic":"method"}],"defaultValue":[{"__symbolic":"method"}],"loadStateKey":[{"__symbolic":"method"}],"loadStateName":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}},"UsersState":{"__symbolic":"class","members":{}},"HamburgerMenuComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":4,"character":1},"arguments":[{"selector":"lcu-hamburger-menu","template":"<!-- <nav class=\"hamburger-nav\"> -->\r\n <button class=\"hamburger-menu\" mat-icon-button [matMenuTriggerFor]=\"menu\">\r\n <mat-icon [inline]=\"true\">menu</mat-icon>\r\n </button>\r\n <!-- Builds the hamburger menu from the item in the constants.ts file-->\r\n <mat-menu #menu=\"matMenu\">\r\n <button class=\"item-button\" mat-menu-item *ngFor= \"let item of MenuItems\" [disabled]= item.Disabled routerLink={{item.Url}}>\r\n <mat-icon>{{ item.Icon }}</mat-icon>\r\n <span>{{ item.Label }}</span>\r\n </button>\r\n </mat-menu>\r\n<!-- </nav> -->","styles":[".hamburger-menu{background-color:transparent;border-width:0;outline:0;font-size:30px}"]}]}],"members":{"ngOnInit":[{"__symbolic":"method"}]}},"LandingPageComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"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}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}]}},"Constants":{"__symbolic":"class","members":{},"statics":{"VAR_NAMES_MENU":[{"Label":"Home","Icon":"home","Url":"/home","Disabled":"false"},{"Label":"My Atlas","Icon":"public","Url":"/map","Disabled":"false"},{"Label":"My Itenerarries","Icon":"map","Url":"www","Disabled":"true"},{"Label":"My Top Lists","Icon":"sort","Url":"www","Disabled":"true"},{"Label":"My Albums","Icon":"photo_library","Url":"www","Disabled":"true"},{"Label":"My Friends","Icon":"group","Url":"www","Disabled":"true"},{"Label":"My Profile","Icon":"person","Url":"www","Disabled":"true"}]}},"HamburgerMenuModel":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"string"}]}]}},"LcuAmblOnModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":19,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"LandingPageComponent"},{"__symbolic":"reference","name":"HamburgerMenuComponent"},{"__symbolic":"reference","name":"MapComponent"},{"__symbolic":"reference","name":"AddMapMarkerComponent"},{"__symbolic":"reference","name":"MyAtlasComponent"},{"__symbolic":"reference","name":"LegendComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":22,"character":4},{"__symbolic":"reference","module":"@angular/flex-layout","name":"FlexLayoutModule","line":23,"character":4},{"__symbolic":"reference","module":"@angular/platform-browser/animations","name":"BrowserAnimationsModule","line":24,"character":4},{"__symbolic":"reference","module":"@angular/material/menu","name":"MatMenuModule","line":25,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatIconModule","line":26,"character":4},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@agm/core","name":"AgmCoreModule","line":27,"character":4},"member":"forRoot"},"arguments":[{"apiKey":"AIzaSyCvvqYY9pMUpRSKl721rPEiN4KlKIpCImg"}]},{"__symbolic":"reference","module":"@angular/material","name":"MatIconModule","line":28,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatSelectModule","line":29,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatDialogModule","line":30,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatButtonModule","line":31,"character":4},{"__symbolic":"reference","module":"@angular/forms","name":"ReactiveFormsModule","line":32,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatInputModule","line":33,"character":4},{"__symbolic":"reference","module":"@angular/material","name":"MatFormFieldModule","line":34,"character":4},{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":35,"character":4}],"exports":[{"__symbolic":"reference","name":"LandingPageComponent"},{"__symbolic":"reference","name":"HamburgerMenuComponent"},{"__symbolic":"reference","name":"MapComponent"},{"__symbolic":"reference","name":"AddMapMarkerComponent"},{"__symbolic":"reference","module":"@angular/material","name":"MatIconModule","line":37,"character":95},{"__symbolic":"reference","name":"MyAtlasComponent"},{"__symbolic":"reference","name":"LegendComponent"}],"entryComponents":[{"__symbolic":"reference","name":"LandingPageComponent"},{"__symbolic":"reference","name":"HamburgerMenuComponent"},{"__symbolic":"reference","name":"AddMapMarkerComponent"},{"__symbolic":"reference","name":"LegendComponent"},{"__symbolic":"reference","name":"MyAtlasComponent"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbolic":"reference","name":"LcuAmblOnModule"},"providers":[{"__symbolic":"reference","name":"UsersStateManagerContext"}]}}}},"MyAtlasComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"lcu-my-atlas","template":"<p>\r\n my-atlas works!\r\n</p>\r\n","styles":[""]}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}]}},"LegendComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"lcu-legend","template":"<button class=\"chevron-legend\" mat-icon-button [matMenuTriggerFor]=\"legend\">\r\n <mat-icon [inline]=\"true\">chevron_left</mat-icon>\r\n</button>\r\n<mat-menu #legend=\"matMenu\"></mat-menu>\r\n","styles":[".chevron-legend{background-color:transparent;border-width:0;outline:0;font-size:30px}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}]}},"IndividualMap":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"IndividualMap"}]}]}},"MapMarker":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"MapMarker"}]}]}},"MapComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":7,"character":1},"arguments":[{"selector":"lcu-map","template":"<div class=\"icon-list\">\r\n <div>\r\n <div class=\"top-icon-set\">\r\n <mat-icon class=\"hamburger-icon\">menu</mat-icon>\r\n <mat-icon class=\"chevron-icon\">chevron_left</mat-icon>\r\n </div>\r\n <div class=\"bottom-icon-set\" fxLayoutAlign.lt-sm=\"flex-start\" fxLayoutAlign=\"space-around\" fxLayoutGap.lt-sm=\"50px\">\r\n <mat-icon>search</mat-icon>\r\n <mat-icon >add</mat-icon>\r\n <mat-icon>layers</mat-icon>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<agm-map [latitude]=\"CurrentMapModel.origin.lat\" [longitude]=\"CurrentMapModel.origin.lng\" [title]=\"CurrentMapModel.title\" [zoom]=\"CurrentMapModel.zoom\"\r\n (mapDblClick)=\"OnMapDoubleClicked($event)\" (mapClick)=\"OnChoseLocation($event)\">\r\n <div *ngFor=\"let marker of CurrentMapModel.locationList\">\r\n <agm-marker [latitude]=\"marker.lat\" [longitude]=\"marker.lng\" [title]=\"marker.title\" [iconUrl]=\"marker.icon\"></agm-marker>\r\n </div>\r\n</agm-map>\r\n\r\n","styles":["mat-icon{font-size:30px}.icon-list{padding:5px}.hamburger-icon{position:absolute;left:10px}@media (max-width:600px){.hamburger-icon{position:relative}}.chevron-icon{position:absolute;right:10px}.bottom-icon-set{width:80%;margin:auto}@media (max-width:600px){.bottom-icon-set{margin-left:10px}}agm-map{height:700px}"]}]}],"members":{"mapModel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":29,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/material","name":"MatDialog","line":48,"character":30},{"__symbolic":"reference","name":"ɵa"}]}],"ngOnInit":[{"__symbolic":"method"}],"OnChoseLocation":[{"__symbolic":"method"}],"OnMapDoubleClicked":[{"__symbolic":"method"}]}},"AddMapMarkerComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":6,"character":1},"arguments":[{"selector":"lcu-add-map-marker","template":"<h1 mat-dialog-title>Add a marker here?</h1>\r\n\r\n\r\n<mat-dialog-content>\r\n <form fxLayout=\"column\" fxLayoutAlign=\"center center\" [formGroup]=\"NewMarkerForm\" fxLayoutGap=\"30px\">\r\n <h4>Marker Title:</h4>\r\n <mat-form-field>\r\n <input type=\"text\" matInput formControlName=\"title\">\r\n <mat-hint>The title for the map marker</mat-hint>\r\n <mat-error>Invalid or missing title</mat-error>\r\n </mat-form-field>\r\n\r\n <h4>Choose Icon:</h4>\r\n <mat-form-field>\r\n <mat-label>Icon</mat-label>\r\n <mat-select formControlName=\"icon\">\r\n <mat-option *ngFor=\"let icon of IconList\" [value]=\"icon\">{{icon}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n\r\n </form>\r\n</mat-dialog-content>\r\n\r\n\r\n<button mat-raised-button color=\"primary\" [mat-dialog-close]=\"NewMarker\" (click)=\"SetMarkerData()\"\r\n [disabled]=\"NewMarkerForm.invalid\">Add Marker</button>\r\n<button mat-raised-button color=\"accent\" [mat-dialog-close]=\"false\">Cancel</button>","styles":[""]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":32,"character":15},"arguments":[{"__symbolic":"reference","module":"@angular/material","name":"MAT_DIALOG_DATA","line":32,"character":22}]}],null],"parameters":[{"__symbolic":"reference","name":"any"},{"__symbolic":"reference","name":"ɵa"}]}],"ngOnInit":[{"__symbolic":"method"}],"SetMarkerData":[{"__symbolic":"method"}]}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":2,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"ConvertIconUrl":[{"__symbolic":"method"}]},"statics":{"ngInjectableDef":{}}}},"origins":{"UsersStateManagerContext":"./lib/state/users/users-state-manager.context","UsersState":"./lib/state/users/users-state.model","HamburgerMenuComponent":"./lib/controls/hamburger-menu/hamburger-menu.component","LandingPageComponent":"./lib/controls/landing-page/landing-page.component","Constants":"./lib/utils/constants/constants","HamburgerMenuModel":"./lib/models/hamburger-menu.model","LcuAmblOnModule":"./lib/lcu-ambl-on.module","MyAtlasComponent":"./lib/controls/my-atlas/my-atlas.component","LegendComponent":"./lib/controls/legend/legend.component","IndividualMap":"./lib/models/individual-map.model","MapMarker":"./lib/models/map-marker.model","MapComponent":"./lib/controls/map/map.component","AddMapMarkerComponent":"./lib/controls/map/add-map-marker/add-map-marker.component","ɵa":"./lib/services/map.service"},"importAs":"@ambl-on/lcu-ambl-on-common"} |
@@ -460,2 +460,4 @@ (function (global, factory) { | ||
// PROPERTIES | ||
this.isDoubleClick = false; | ||
this.expectedDoubleClickElapsedTime = 500; | ||
/** | ||
@@ -529,22 +531,48 @@ * The map model object (IndividualMap model) containing all the settings for the map to be displayed | ||
var _this = this; | ||
/** @type {?} */ | ||
var dialogRef = this.dialog.open(AddMapMarkerComponent, { | ||
data: { | ||
lat: event.coords.lat, | ||
lng: event.coords.lng | ||
} | ||
}); | ||
dialogRef.afterClosed().subscribe(( /** | ||
* @param {?} res | ||
setTimeout(( /** | ||
* @param {?} x | ||
* @return {?} | ||
*/function (res) { | ||
if (res) { | ||
_this.CurrentMapModel.locationList.push(res); | ||
*/function (x) { | ||
if (!_this.isDoubleClick) { | ||
/** @type {?} */ | ||
var dialogRef = _this.dialog.open(AddMapMarkerComponent, { | ||
data: { | ||
lat: event.coords.lat, | ||
lng: event.coords.lng | ||
} | ||
}); | ||
dialogRef.afterClosed().subscribe(( /** | ||
* @param {?} res | ||
* @return {?} | ||
*/function (res) { | ||
if (res) { | ||
_this.CurrentMapModel.locationList.push(res); | ||
} | ||
})); | ||
} | ||
})); | ||
}), this.expectedDoubleClickElapsedTime); | ||
}; | ||
/** | ||
* @param {?} event | ||
* @return {?} | ||
*/ | ||
MapComponent.prototype.OnMapDoubleClicked = /** | ||
* @param {?} event | ||
* @return {?} | ||
*/ | ||
function (event) { | ||
var _this = this; | ||
this.isDoubleClick = true; | ||
console.log('double clicked'); | ||
setTimeout(( /** | ||
* @param {?} x | ||
* @return {?} | ||
*/function (x) { | ||
_this.isDoubleClick = false; | ||
}), 500); // about after enough time it takes to zoom, turn off the "double-clicked" flag | ||
}; | ||
MapComponent.decorators = [ | ||
{ type: i0.Component, args: [{ | ||
selector: 'lcu-map', | ||
template: "<div class=\"icon-list\">\r\n <div>\r\n <div class=\"top-icon-set\">\r\n <mat-icon class=\"hamburger-icon\">menu</mat-icon>\r\n <mat-icon class=\"chevron-icon\">chevron_left</mat-icon>\r\n </div>\r\n <div class=\"bottom-icon-set\" fxLayoutAlign.lt-sm=\"flex-start\" fxLayoutAlign=\"space-around\" fxLayoutGap.lt-sm=\"50px\">\r\n <mat-icon>search</mat-icon>\r\n <mat-icon >add</mat-icon>\r\n <mat-icon>layers</mat-icon>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<agm-map [latitude]=\"CurrentMapModel.origin.lat\" [longitude]=\"CurrentMapModel.origin.lng\" [title]=\"CurrentMapModel.title\" [zoom]=\"CurrentMapModel.zoom\"\r\n (mapClick)=\"OnChoseLocation($event)\">\r\n <div *ngFor=\"let marker of CurrentMapModel.locationList\">\r\n <agm-marker [latitude]=\"marker.lat\" [longitude]=\"marker.lng\" [title]=\"marker.title\" [iconUrl]=\"marker.icon\"></agm-marker>\r\n </div>\r\n</agm-map>\r\n\r\n", | ||
template: "<div class=\"icon-list\">\r\n <div>\r\n <div class=\"top-icon-set\">\r\n <mat-icon class=\"hamburger-icon\">menu</mat-icon>\r\n <mat-icon class=\"chevron-icon\">chevron_left</mat-icon>\r\n </div>\r\n <div class=\"bottom-icon-set\" fxLayoutAlign.lt-sm=\"flex-start\" fxLayoutAlign=\"space-around\" fxLayoutGap.lt-sm=\"50px\">\r\n <mat-icon>search</mat-icon>\r\n <mat-icon >add</mat-icon>\r\n <mat-icon>layers</mat-icon>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<agm-map [latitude]=\"CurrentMapModel.origin.lat\" [longitude]=\"CurrentMapModel.origin.lng\" [title]=\"CurrentMapModel.title\" [zoom]=\"CurrentMapModel.zoom\"\r\n (mapDblClick)=\"OnMapDoubleClicked($event)\" (mapClick)=\"OnChoseLocation($event)\">\r\n <div *ngFor=\"let marker of CurrentMapModel.locationList\">\r\n <agm-marker [latitude]=\"marker.lat\" [longitude]=\"marker.lng\" [title]=\"marker.title\" [iconUrl]=\"marker.icon\"></agm-marker>\r\n </div>\r\n</agm-map>\r\n\r\n", | ||
styles: ["mat-icon{font-size:30px}.icon-list{padding:5px}.hamburger-icon{position:absolute;left:10px}@media (max-width:600px){.hamburger-icon{position:relative}}.chevron-icon{position:absolute;right:10px}.bottom-icon-set{width:80%;margin:auto}@media (max-width:600px){.bottom-icon-set{margin-left:10px}}agm-map{height:700px}"] | ||
@@ -551,0 +579,0 @@ }] } |
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@lcu-ide/common"),require("@angular/common"),require("@angular/material/menu"),require("@angular/flex-layout"),require("@angular/platform-browser/animations"),require("@agm/core"),require("@angular/material"),require("@angular/forms"),require("@angular/router"),require("@angular/core")):"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","@agm/core","@angular/material","@angular/forms","@angular/router","@angular/core"],e):e((t["ambl-on"]=t["ambl-on"]||{},t["ambl-on"]["lcu-ambl-on-common"]={}),t.common,t.ng.common,t.ng.material.menu,t.ng["flex-layout"],t.ng.platformBrowser.animations,t.core,t.ng.material,t.ng.forms,t.ng.router,t.ng.core)}(this,function(t,e,n,r,o,a,i,l,c,u,s){"use strict";var m=function(t,e){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function d(e,i,l,c){return new(l||(l=Promise))(function(t,n){function r(t){try{a(c.next(t))}catch(e){n(e)}}function o(t){try{a(c["throw"](t))}catch(e){n(e)}}function a(e){e.done?t(e.value):new l(function(t){t(e.value)}).then(r,o)}a((c=c.apply(e,i||[])).next())})}function p(r,o){var a,i,l,t,c={label:0,sent:function(){if(1&l[0])throw l[1];return l[1]},trys:[],ops:[]};return t={next:e(0),"throw":e(1),"return":e(2)},"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(e){return function(t){return function n(t){if(a)throw new TypeError("Generator is already executing.");for(;c;)try{if(a=1,i&&(l=2&t[0]?i["return"]:t[0]?i["throw"]||((l=i["return"])&&l.call(i),0):i.next)&&!(l=l.call(i,t[1])).done)return l;switch(i=0,l&&(t=[2&t[0],l.value]),t[0]){case 0:case 1:l=t;break;case 4:return c.label++,{value:t[1],done:!1};case 5:c.label++,i=t[1],t=[0];continue;case 7:t=c.ops.pop(),c.trys.pop();continue;default:if(!(l=0<(l=c.trys).length&&l[l.length-1])&&(6===t[0]||2===t[0])){c=0;continue}if(3===t[0]&&(!l||t[1]>l[0]&&t[1]<l[3])){c.label=t[1];break}if(6===t[0]&&c.label<l[1]){c.label=l[1],l=t;break}if(l&&c.label<l[2]){c.label=l[2],c.ops.push(t);break}l[2]&&c.ops.pop(),c.trys.pop();continue}t=o.call(r,c)}catch(e){t=[6,e],i=0}finally{a=l=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([e,t])}}}var g,f=(function T(t,e){function n(){this.constructor=t}m(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(h,g=e.StateManagerContext),h.prototype.SetActive=function(){},h.prototype.defaultValue=function(){return{Loading:!0}},h.prototype.loadStateKey=function(){return d(this,void 0,void 0,function(){return p(this,function(t){return[2,"main"]})})},h.prototype.loadStateName=function(){return d(this,void 0,void 0,function(){return p(this,function(t){return[2,"users "]})})},h.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],h.ctorParameters=function(){return[{type:s.Injector}]},h.ngInjectableDef=s.defineInjectable({factory:function(){return new h(s.inject(s.INJECTOR))},token:h,providedIn:"root"}),h);function h(t){var e=g.call(this,t)||this;return e.injector=t,e}function b(){}var y=(M.VAR_NAMES_MENU=[{Label:"Home",Icon:"home",Url:"/home",Disabled:"false"},{Label:"My Atlas",Icon:"public",Url:"/map",Disabled:"false"},{Label:"My Itenerarries",Icon:"map",Url:"www",Disabled:"true"},{Label:"My Top Lists",Icon:"sort",Url:"www",Disabled:"true"},{Label:"My Albums",Icon:"photo_library",Url:"www",Disabled:"true"},{Label:"My Friends",Icon:"group",Url:"www",Disabled:"true"},{Label:"My Profile",Icon:"person",Url:"www",Disabled:"true"}],M);function M(){}var v=(w.prototype.ngOnInit=function(){this.MenuItems=y.VAR_NAMES_MENU},w.decorators=[{type:s.Component,args:[{selector:"lcu-hamburger-menu",template:'\x3c!-- <nav class="hamburger-nav"> --\x3e\r\n <button class="hamburger-menu" mat-icon-button [matMenuTriggerFor]="menu">\r\n <mat-icon [inline]="true">menu</mat-icon>\r\n </button>\r\n \x3c!-- Builds the hamburger menu from the item in the constants.ts file--\x3e\r\n <mat-menu #menu="matMenu">\r\n <button class="item-button" mat-menu-item *ngFor= "let item of MenuItems" [disabled]= item.Disabled routerLink={{item.Url}}>\r\n <mat-icon>{{ item.Icon }}</mat-icon>\r\n <span>{{ item.Label }}</span>\r\n </button>\r\n </mat-menu>\r\n\x3c!-- </nav> --\x3e',styles:[".hamburger-menu{background-color:transparent;border-width:0;outline:0;font-size:30px}"]}]}],w);function w(){}var x=(k.prototype.ngOnInit=function(){},k.decorators=[{type:s.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}"]}]}],k.ctorParameters=function(){return[]},k);function k(){this.Title="Ambl On",this.Slogan="Down the Road, Around the World!"}function I(t,e,n,r){this.Label=t,this.Icon=e,this.Url=n,this.Disabled=r}var C=(L.prototype.ConvertIconUrl=function(t){return{url:"./assets/"+t+".png",scaledSize:{width:40,height:60}}},L.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],L.ctorParameters=function(){return[]},L.ngInjectableDef=s.defineInjectable({factory:function(){return new L},token:L,providedIn:"root"}),L);function L(){}var A=(N.prototype.ngOnInit=function(){this.NewMarkerForm=new c.FormGroup({title:new c.FormControl("",{validators:[c.Validators.required]}),icon:new c.FormControl("",{validators:[c.Validators.required]})}),this.NewMarker={title:"",icon:null,lat:40,lng:-100},this.IconList=["bar","brewery","golf course","lodging","museum","national park","restaurant","ski area","UNESCO","vineyard"]},N.prototype.SetMarkerData=function(){this.NewMarker.title=this.NewMarkerForm.value.title,this.NewMarker.icon=this.NewMarkerForm.value.icon,this.NewMarker.lat=this.passedData.lat,this.NewMarker.lng=this.passedData.lng,this.NewMarker.icon=this.mapService.ConvertIconUrl(this.NewMarker.icon)},N.decorators=[{type:s.Component,args:[{selector:"lcu-add-map-marker",template:'<h1 mat-dialog-title>Add a marker here?</h1>\r\n\r\n\r\n<mat-dialog-content>\r\n <form fxLayout="column" fxLayoutAlign="center center" [formGroup]="NewMarkerForm" fxLayoutGap="30px">\r\n <h4>Marker Title:</h4>\r\n <mat-form-field>\r\n <input type="text" matInput formControlName="title">\r\n <mat-hint>The title for the map marker</mat-hint>\r\n <mat-error>Invalid or missing title</mat-error>\r\n </mat-form-field>\r\n\r\n <h4>Choose Icon:</h4>\r\n <mat-form-field>\r\n <mat-label>Icon</mat-label>\r\n <mat-select formControlName="icon">\r\n <mat-option *ngFor="let icon of IconList" [value]="icon">{{icon}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n\r\n </form>\r\n</mat-dialog-content>\r\n\r\n\r\n<button mat-raised-button color="primary" [mat-dialog-close]="NewMarker" (click)="SetMarkerData()"\r\n [disabled]="NewMarkerForm.invalid">Add Marker</button>\r\n<button mat-raised-button color="accent" [mat-dialog-close]="false">Cancel</button>',styles:[""]}]}],N.ctorParameters=function(){return[{type:undefined,decorators:[{type:s.Inject,args:[l.MAT_DIALOG_DATA]}]},{type:C}]},N);function N(t,e){this.passedData=t,this.mapService=e}var S=(D.prototype.ngOnInit=function(){var e=this;this.CurrentMapModel=this.mapModel,this.CurrentMapModel.locationList.forEach(function(t){t.icon=e.mapService.ConvertIconUrl(t.icon)})},D.prototype.OnChoseLocation=function(t){var e=this;this.dialog.open(A,{data:{lat:t.coords.lat,lng:t.coords.lng}}).afterClosed().subscribe(function(t){t&&e.CurrentMapModel.locationList.push(t)})},D.decorators=[{type:s.Component,args:[{selector:"lcu-map",template:'<div class="icon-list">\r\n <div>\r\n <div class="top-icon-set">\r\n <mat-icon class="hamburger-icon">menu</mat-icon>\r\n <mat-icon class="chevron-icon">chevron_left</mat-icon>\r\n </div>\r\n <div class="bottom-icon-set" fxLayoutAlign.lt-sm="flex-start" fxLayoutAlign="space-around" fxLayoutGap.lt-sm="50px">\r\n <mat-icon>search</mat-icon>\r\n <mat-icon >add</mat-icon>\r\n <mat-icon>layers</mat-icon>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<agm-map [latitude]="CurrentMapModel.origin.lat" [longitude]="CurrentMapModel.origin.lng" [title]="CurrentMapModel.title" [zoom]="CurrentMapModel.zoom"\r\n (mapClick)="OnChoseLocation($event)">\r\n <div *ngFor="let marker of CurrentMapModel.locationList">\r\n <agm-marker [latitude]="marker.lat" [longitude]="marker.lng" [title]="marker.title" [iconUrl]="marker.icon"></agm-marker>\r\n </div>\r\n</agm-map>\r\n\r\n',styles:["mat-icon{font-size:30px}.icon-list{padding:5px}.hamburger-icon{position:absolute;left:10px}@media (max-width:600px){.hamburger-icon{position:relative}}.chevron-icon{position:absolute;right:10px}.bottom-icon-set{width:80%;margin:auto}@media (max-width:600px){.bottom-icon-set{margin-left:10px}}agm-map{height:700px}"]}]}],D.ctorParameters=function(){return[{type:l.MatDialog},{type:C}]},D.propDecorators={mapModel:[{type:s.Input}]},D);function D(t,e){this.dialog=t,this.mapService=e,this.mapModel={title:"Default Map",origin:{lat:40.037757,lng:-105.278324},zoom:13,locationList:[{title:"Favorite steak house",lat:40.017557,lng:-105.278199,icon:"restaurant"},{title:"Favorite UNESCO",lat:40.027657,lng:-105.288199,icon:"UNESCO"},{title:"Nice museum",lat:40.037757,lng:-105.298199,icon:"museum"},{title:"Good brewery",lat:40.047857,lng:-105.268199,icon:"brewery"},{title:"Favorite ski area",lat:40.057557,lng:-105.288199,icon:"ski area"},{title:"Favorite vineyard",lat:40.060657,lng:-105.298199,icon:"vineyard"},{title:"Nice golf course",lat:40.037757,lng:-105.258199,icon:"golf course"},{title:"Good lodging",lat:40.037757,lng:-105.278199,icon:"lodging"},{title:"Nice national park",lat:40.060657,lng:-105.278199,icon:"national park"},{title:"Good bar",lat:40.017557,lng:-105.288199,icon:"bar"}]}}var F=(U.prototype.ngOnInit=function(){},U.decorators=[{type:s.Component,args:[{selector:"lcu-my-atlas",template:"<p>\r\n my-atlas works!\r\n</p>\r\n",styles:[""]}]}],U.ctorParameters=function(){return[]},U);function U(){}var O=(_.prototype.ngOnInit=function(){},_.decorators=[{type:s.Component,args:[{selector:"lcu-legend",template:'<button class="chevron-legend" mat-icon-button [matMenuTriggerFor]="legend">\r\n <mat-icon [inline]="true">chevron_left</mat-icon>\r\n</button>\r\n<mat-menu #legend="matMenu"></mat-menu>\r\n',styles:[".chevron-legend{background-color:transparent;border-width:0;outline:0;font-size:30px}"]}]}],_.ctorParameters=function(){return[]},_);function _(){}var j=(P.forRoot=function(){return{ngModule:P,providers:[f]}},P.decorators=[{type:s.NgModule,args:[{declarations:[x,v,S,A,F,O],imports:[n.CommonModule,o.FlexLayoutModule,a.BrowserAnimationsModule,r.MatMenuModule,l.MatIconModule,i.AgmCoreModule.forRoot({apiKey:"AIzaSyCvvqYY9pMUpRSKl721rPEiN4KlKIpCImg"}),l.MatIconModule,l.MatSelectModule,l.MatDialogModule,l.MatButtonModule,c.ReactiveFormsModule,l.MatInputModule,l.MatFormFieldModule,u.RouterModule],exports:[x,v,S,A,l.MatIconModule,F,O],entryComponents:[x,v,A,O,F]}]}],P);function P(){}function q(t){this.title=t.title,this.origin=t.origin,this.zoom=t.zoom,this.locationList=t.locationList}function E(t){this.title=t.title,this.icon=t.icon,this.lat=t.lat,this.lng=t.lng}t.UsersStateManagerContext=f,t.UsersState=b,t.HamburgerMenuComponent=v,t.LandingPageComponent=x,t.Constants=y,t.HamburgerMenuModel=I,t.LcuAmblOnModule=j,t.MyAtlasComponent=F,t.LegendComponent=O,t.IndividualMap=q,t.MapMarker=E,t.MapComponent=S,t.AddMapMarkerComponent=A,t.ɵa=C,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@lcu-ide/common"),require("@angular/common"),require("@angular/material/menu"),require("@angular/flex-layout"),require("@angular/platform-browser/animations"),require("@agm/core"),require("@angular/material"),require("@angular/forms"),require("@angular/router"),require("@angular/core")):"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","@agm/core","@angular/material","@angular/forms","@angular/router","@angular/core"],e):e((t["ambl-on"]=t["ambl-on"]||{},t["ambl-on"]["lcu-ambl-on-common"]={}),t.common,t.ng.common,t.ng.material.menu,t.ng["flex-layout"],t.ng.platformBrowser.animations,t.core,t.ng.material,t.ng.forms,t.ng.router,t.ng.core)}(this,function(t,e,n,r,o,a,i,l,c,u,s){"use strict";var m=function(t,e){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function d(e,i,l,c){return new(l||(l=Promise))(function(t,n){function r(t){try{a(c.next(t))}catch(e){n(e)}}function o(t){try{a(c["throw"](t))}catch(e){n(e)}}function a(e){e.done?t(e.value):new l(function(t){t(e.value)}).then(r,o)}a((c=c.apply(e,i||[])).next())})}function p(r,o){var a,i,l,t,c={label:0,sent:function(){if(1&l[0])throw l[1];return l[1]},trys:[],ops:[]};return t={next:e(0),"throw":e(1),"return":e(2)},"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(e){return function(t){return function n(t){if(a)throw new TypeError("Generator is already executing.");for(;c;)try{if(a=1,i&&(l=2&t[0]?i["return"]:t[0]?i["throw"]||((l=i["return"])&&l.call(i),0):i.next)&&!(l=l.call(i,t[1])).done)return l;switch(i=0,l&&(t=[2&t[0],l.value]),t[0]){case 0:case 1:l=t;break;case 4:return c.label++,{value:t[1],done:!1};case 5:c.label++,i=t[1],t=[0];continue;case 7:t=c.ops.pop(),c.trys.pop();continue;default:if(!(l=0<(l=c.trys).length&&l[l.length-1])&&(6===t[0]||2===t[0])){c=0;continue}if(3===t[0]&&(!l||t[1]>l[0]&&t[1]<l[3])){c.label=t[1];break}if(6===t[0]&&c.label<l[1]){c.label=l[1],l=t;break}if(l&&c.label<l[2]){c.label=l[2],c.ops.push(t);break}l[2]&&c.ops.pop(),c.trys.pop();continue}t=o.call(r,c)}catch(e){t=[6,e],i=0}finally{a=l=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([e,t])}}}var g,f=(function E(t,e){function n(){this.constructor=t}m(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(h,g=e.StateManagerContext),h.prototype.SetActive=function(){},h.prototype.defaultValue=function(){return{Loading:!0}},h.prototype.loadStateKey=function(){return d(this,void 0,void 0,function(){return p(this,function(t){return[2,"main"]})})},h.prototype.loadStateName=function(){return d(this,void 0,void 0,function(){return p(this,function(t){return[2,"users "]})})},h.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],h.ctorParameters=function(){return[{type:s.Injector}]},h.ngInjectableDef=s.defineInjectable({factory:function(){return new h(s.inject(s.INJECTOR))},token:h,providedIn:"root"}),h);function h(t){var e=g.call(this,t)||this;return e.injector=t,e}function b(){}var y=(M.VAR_NAMES_MENU=[{Label:"Home",Icon:"home",Url:"/home",Disabled:"false"},{Label:"My Atlas",Icon:"public",Url:"/map",Disabled:"false"},{Label:"My Itenerarries",Icon:"map",Url:"www",Disabled:"true"},{Label:"My Top Lists",Icon:"sort",Url:"www",Disabled:"true"},{Label:"My Albums",Icon:"photo_library",Url:"www",Disabled:"true"},{Label:"My Friends",Icon:"group",Url:"www",Disabled:"true"},{Label:"My Profile",Icon:"person",Url:"www",Disabled:"true"}],M);function M(){}var v=(k.prototype.ngOnInit=function(){this.MenuItems=y.VAR_NAMES_MENU},k.decorators=[{type:s.Component,args:[{selector:"lcu-hamburger-menu",template:'\x3c!-- <nav class="hamburger-nav"> --\x3e\r\n <button class="hamburger-menu" mat-icon-button [matMenuTriggerFor]="menu">\r\n <mat-icon [inline]="true">menu</mat-icon>\r\n </button>\r\n \x3c!-- Builds the hamburger menu from the item in the constants.ts file--\x3e\r\n <mat-menu #menu="matMenu">\r\n <button class="item-button" mat-menu-item *ngFor= "let item of MenuItems" [disabled]= item.Disabled routerLink={{item.Url}}>\r\n <mat-icon>{{ item.Icon }}</mat-icon>\r\n <span>{{ item.Label }}</span>\r\n </button>\r\n </mat-menu>\r\n\x3c!-- </nav> --\x3e',styles:[".hamburger-menu{background-color:transparent;border-width:0;outline:0;font-size:30px}"]}]}],k);function k(){}var w=(x.prototype.ngOnInit=function(){},x.decorators=[{type:s.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}"]}]}],x.ctorParameters=function(){return[]},x);function x(){this.Title="Ambl On",this.Slogan="Down the Road, Around the World!"}function C(t,e,n,r){this.Label=t,this.Icon=e,this.Url=n,this.Disabled=r}var I=(L.prototype.ConvertIconUrl=function(t){return{url:"./assets/"+t+".png",scaledSize:{width:40,height:60}}},L.decorators=[{type:s.Injectable,args:[{providedIn:"root"}]}],L.ctorParameters=function(){return[]},L.ngInjectableDef=s.defineInjectable({factory:function(){return new L},token:L,providedIn:"root"}),L);function L(){}var D=(A.prototype.ngOnInit=function(){this.NewMarkerForm=new c.FormGroup({title:new c.FormControl("",{validators:[c.Validators.required]}),icon:new c.FormControl("",{validators:[c.Validators.required]})}),this.NewMarker={title:"",icon:null,lat:40,lng:-100},this.IconList=["bar","brewery","golf course","lodging","museum","national park","restaurant","ski area","UNESCO","vineyard"]},A.prototype.SetMarkerData=function(){this.NewMarker.title=this.NewMarkerForm.value.title,this.NewMarker.icon=this.NewMarkerForm.value.icon,this.NewMarker.lat=this.passedData.lat,this.NewMarker.lng=this.passedData.lng,this.NewMarker.icon=this.mapService.ConvertIconUrl(this.NewMarker.icon)},A.decorators=[{type:s.Component,args:[{selector:"lcu-add-map-marker",template:'<h1 mat-dialog-title>Add a marker here?</h1>\r\n\r\n\r\n<mat-dialog-content>\r\n <form fxLayout="column" fxLayoutAlign="center center" [formGroup]="NewMarkerForm" fxLayoutGap="30px">\r\n <h4>Marker Title:</h4>\r\n <mat-form-field>\r\n <input type="text" matInput formControlName="title">\r\n <mat-hint>The title for the map marker</mat-hint>\r\n <mat-error>Invalid or missing title</mat-error>\r\n </mat-form-field>\r\n\r\n <h4>Choose Icon:</h4>\r\n <mat-form-field>\r\n <mat-label>Icon</mat-label>\r\n <mat-select formControlName="icon">\r\n <mat-option *ngFor="let icon of IconList" [value]="icon">{{icon}}</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n\r\n </form>\r\n</mat-dialog-content>\r\n\r\n\r\n<button mat-raised-button color="primary" [mat-dialog-close]="NewMarker" (click)="SetMarkerData()"\r\n [disabled]="NewMarkerForm.invalid">Add Marker</button>\r\n<button mat-raised-button color="accent" [mat-dialog-close]="false">Cancel</button>',styles:[""]}]}],A.ctorParameters=function(){return[{type:undefined,decorators:[{type:s.Inject,args:[l.MAT_DIALOG_DATA]}]},{type:I}]},A);function A(t,e){this.passedData=t,this.mapService=e}var N=(S.prototype.ngOnInit=function(){var e=this;this.CurrentMapModel=this.mapModel,this.CurrentMapModel.locationList.forEach(function(t){t.icon=e.mapService.ConvertIconUrl(t.icon)})},S.prototype.OnChoseLocation=function(e){var n=this;setTimeout(function(t){n.isDoubleClick||n.dialog.open(D,{data:{lat:e.coords.lat,lng:e.coords.lng}}).afterClosed().subscribe(function(t){t&&n.CurrentMapModel.locationList.push(t)})},this.expectedDoubleClickElapsedTime)},S.prototype.OnMapDoubleClicked=function(t){var e=this;this.isDoubleClick=!0,console.log("double clicked"),setTimeout(function(t){e.isDoubleClick=!1},500)},S.decorators=[{type:s.Component,args:[{selector:"lcu-map",template:'<div class="icon-list">\r\n <div>\r\n <div class="top-icon-set">\r\n <mat-icon class="hamburger-icon">menu</mat-icon>\r\n <mat-icon class="chevron-icon">chevron_left</mat-icon>\r\n </div>\r\n <div class="bottom-icon-set" fxLayoutAlign.lt-sm="flex-start" fxLayoutAlign="space-around" fxLayoutGap.lt-sm="50px">\r\n <mat-icon>search</mat-icon>\r\n <mat-icon >add</mat-icon>\r\n <mat-icon>layers</mat-icon>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<agm-map [latitude]="CurrentMapModel.origin.lat" [longitude]="CurrentMapModel.origin.lng" [title]="CurrentMapModel.title" [zoom]="CurrentMapModel.zoom"\r\n (mapDblClick)="OnMapDoubleClicked($event)" (mapClick)="OnChoseLocation($event)">\r\n <div *ngFor="let marker of CurrentMapModel.locationList">\r\n <agm-marker [latitude]="marker.lat" [longitude]="marker.lng" [title]="marker.title" [iconUrl]="marker.icon"></agm-marker>\r\n </div>\r\n</agm-map>\r\n\r\n',styles:["mat-icon{font-size:30px}.icon-list{padding:5px}.hamburger-icon{position:absolute;left:10px}@media (max-width:600px){.hamburger-icon{position:relative}}.chevron-icon{position:absolute;right:10px}.bottom-icon-set{width:80%;margin:auto}@media (max-width:600px){.bottom-icon-set{margin-left:10px}}agm-map{height:700px}"]}]}],S.ctorParameters=function(){return[{type:l.MatDialog},{type:I}]},S.propDecorators={mapModel:[{type:s.Input}]},S);function S(t,e){this.dialog=t,this.mapService=e,this.isDoubleClick=!1,this.expectedDoubleClickElapsedTime=500,this.mapModel={title:"Default Map",origin:{lat:40.037757,lng:-105.278324},zoom:13,locationList:[{title:"Favorite steak house",lat:40.017557,lng:-105.278199,icon:"restaurant"},{title:"Favorite UNESCO",lat:40.027657,lng:-105.288199,icon:"UNESCO"},{title:"Nice museum",lat:40.037757,lng:-105.298199,icon:"museum"},{title:"Good brewery",lat:40.047857,lng:-105.268199,icon:"brewery"},{title:"Favorite ski area",lat:40.057557,lng:-105.288199,icon:"ski area"},{title:"Favorite vineyard",lat:40.060657,lng:-105.298199,icon:"vineyard"},{title:"Nice golf course",lat:40.037757,lng:-105.258199,icon:"golf course"},{title:"Good lodging",lat:40.037757,lng:-105.278199,icon:"lodging"},{title:"Nice national park",lat:40.060657,lng:-105.278199,icon:"national park"},{title:"Good bar",lat:40.017557,lng:-105.288199,icon:"bar"}]}}var F=(O.prototype.ngOnInit=function(){},O.decorators=[{type:s.Component,args:[{selector:"lcu-my-atlas",template:"<p>\r\n my-atlas works!\r\n</p>\r\n",styles:[""]}]}],O.ctorParameters=function(){return[]},O);function O(){}var U=(_.prototype.ngOnInit=function(){},_.decorators=[{type:s.Component,args:[{selector:"lcu-legend",template:'<button class="chevron-legend" mat-icon-button [matMenuTriggerFor]="legend">\r\n <mat-icon [inline]="true">chevron_left</mat-icon>\r\n</button>\r\n<mat-menu #legend="matMenu"></mat-menu>\r\n',styles:[".chevron-legend{background-color:transparent;border-width:0;outline:0;font-size:30px}"]}]}],_.ctorParameters=function(){return[]},_);function _(){}var j=(T.forRoot=function(){return{ngModule:T,providers:[f]}},T.decorators=[{type:s.NgModule,args:[{declarations:[w,v,N,D,F,U],imports:[n.CommonModule,o.FlexLayoutModule,a.BrowserAnimationsModule,r.MatMenuModule,l.MatIconModule,i.AgmCoreModule.forRoot({apiKey:"AIzaSyCvvqYY9pMUpRSKl721rPEiN4KlKIpCImg"}),l.MatIconModule,l.MatSelectModule,l.MatDialogModule,l.MatButtonModule,c.ReactiveFormsModule,l.MatInputModule,l.MatFormFieldModule,u.RouterModule],exports:[w,v,N,D,l.MatIconModule,F,U],entryComponents:[w,v,D,U,F]}]}],T);function T(){}function P(t){this.title=t.title,this.origin=t.origin,this.zoom=t.zoom,this.locationList=t.locationList}function q(t){this.title=t.title,this.icon=t.icon,this.lat=t.lat,this.lng=t.lng}t.UsersStateManagerContext=f,t.UsersState=b,t.HamburgerMenuComponent=v,t.LandingPageComponent=w,t.Constants=y,t.HamburgerMenuModel=C,t.LcuAmblOnModule=j,t.MyAtlasComponent=F,t.LegendComponent=U,t.IndividualMap=P,t.MapMarker=q,t.MapComponent=N,t.AddMapMarkerComponent=D,t.ɵa=I,Object.defineProperty(t,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=ambl-on-lcu-ambl-on-common.umd.min.js.map |
@@ -20,2 +20,4 @@ /** | ||
// PROPERTIES | ||
this.isDoubleClick = false; | ||
this.expectedDoubleClickElapsedTime = 500; | ||
/** | ||
@@ -66,19 +68,42 @@ * The map model object (IndividualMap model) containing all the settings for the map to be displayed | ||
OnChoseLocation(event) { | ||
/** @type {?} */ | ||
const dialogRef = this.dialog.open(AddMapMarkerComponent, { | ||
data: { | ||
lat: event.coords.lat, | ||
lng: event.coords.lng | ||
} | ||
}); | ||
dialogRef.afterClosed().subscribe((/** | ||
* @param {?} res | ||
setTimeout((/** | ||
* @param {?} x | ||
* @return {?} | ||
*/ | ||
res => { | ||
if (res) { | ||
this.CurrentMapModel.locationList.push(res); | ||
x => { | ||
if (!this.isDoubleClick) { | ||
/** @type {?} */ | ||
const dialogRef = this.dialog.open(AddMapMarkerComponent, { | ||
data: { | ||
lat: event.coords.lat, | ||
lng: event.coords.lng | ||
} | ||
}); | ||
dialogRef.afterClosed().subscribe((/** | ||
* @param {?} res | ||
* @return {?} | ||
*/ | ||
res => { | ||
if (res) { | ||
this.CurrentMapModel.locationList.push(res); | ||
} | ||
})); | ||
} | ||
})); | ||
}), this.expectedDoubleClickElapsedTime); | ||
} | ||
/** | ||
* @param {?} event | ||
* @return {?} | ||
*/ | ||
OnMapDoubleClicked(event) { | ||
this.isDoubleClick = true; | ||
console.log('double clicked'); | ||
setTimeout((/** | ||
* @param {?} x | ||
* @return {?} | ||
*/ | ||
x => { | ||
this.isDoubleClick = false; | ||
}), 500); // about after enough time it takes to zoom, turn off the "double-clicked" flag | ||
} | ||
} | ||
@@ -88,3 +113,3 @@ MapComponent.decorators = [ | ||
selector: 'lcu-map', | ||
template: "<div class=\"icon-list\">\r\n <div>\r\n <div class=\"top-icon-set\">\r\n <mat-icon class=\"hamburger-icon\">menu</mat-icon>\r\n <mat-icon class=\"chevron-icon\">chevron_left</mat-icon>\r\n </div>\r\n <div class=\"bottom-icon-set\" fxLayoutAlign.lt-sm=\"flex-start\" fxLayoutAlign=\"space-around\" fxLayoutGap.lt-sm=\"50px\">\r\n <mat-icon>search</mat-icon>\r\n <mat-icon >add</mat-icon>\r\n <mat-icon>layers</mat-icon>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<agm-map [latitude]=\"CurrentMapModel.origin.lat\" [longitude]=\"CurrentMapModel.origin.lng\" [title]=\"CurrentMapModel.title\" [zoom]=\"CurrentMapModel.zoom\"\r\n (mapClick)=\"OnChoseLocation($event)\">\r\n <div *ngFor=\"let marker of CurrentMapModel.locationList\">\r\n <agm-marker [latitude]=\"marker.lat\" [longitude]=\"marker.lng\" [title]=\"marker.title\" [iconUrl]=\"marker.icon\"></agm-marker>\r\n </div>\r\n</agm-map>\r\n\r\n", | ||
template: "<div class=\"icon-list\">\r\n <div>\r\n <div class=\"top-icon-set\">\r\n <mat-icon class=\"hamburger-icon\">menu</mat-icon>\r\n <mat-icon class=\"chevron-icon\">chevron_left</mat-icon>\r\n </div>\r\n <div class=\"bottom-icon-set\" fxLayoutAlign.lt-sm=\"flex-start\" fxLayoutAlign=\"space-around\" fxLayoutGap.lt-sm=\"50px\">\r\n <mat-icon>search</mat-icon>\r\n <mat-icon >add</mat-icon>\r\n <mat-icon>layers</mat-icon>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<agm-map [latitude]=\"CurrentMapModel.origin.lat\" [longitude]=\"CurrentMapModel.origin.lng\" [title]=\"CurrentMapModel.title\" [zoom]=\"CurrentMapModel.zoom\"\r\n (mapDblClick)=\"OnMapDoubleClicked($event)\" (mapClick)=\"OnChoseLocation($event)\">\r\n <div *ngFor=\"let marker of CurrentMapModel.locationList\">\r\n <agm-marker [latitude]=\"marker.lat\" [longitude]=\"marker.lng\" [title]=\"marker.title\" [iconUrl]=\"marker.icon\"></agm-marker>\r\n </div>\r\n</agm-map>\r\n\r\n", | ||
styles: ["mat-icon{font-size:30px}.icon-list{padding:5px}.hamburger-icon{position:absolute;left:10px}@media (max-width:600px){.hamburger-icon{position:relative}}.chevron-icon{position:absolute;right:10px}.bottom-icon-set{width:80%;margin:auto}@media (max-width:600px){.bottom-icon-set{margin-left:10px}}agm-map{height:700px}"] | ||
@@ -108,2 +133,12 @@ }] } | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
MapComponent.prototype.isDoubleClick; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
MapComponent.prototype.expectedDoubleClickElapsedTime; | ||
/** | ||
* The map model object (IndividualMap model) containing all the settings for the map to be displayed | ||
@@ -124,2 +159,2 @@ * @type {?} | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFwLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BhbWJsLW9uL2xjdS1hbWJsLW9uLWNvbW1vbi8iLCJzb3VyY2VzIjpbImxpYi9jb250cm9scy9tYXAvbWFwLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLFNBQVMsRUFBVSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekQsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLG1DQUFtQyxDQUFDO0FBRWxFLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQztBQUM5QyxPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSwyQ0FBMkMsQ0FBQztBQUNsRixPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sNEJBQTRCLENBQUM7QUFPeEQsTUFBTSxPQUFPLFlBQVk7Ozs7OztJQWlDdkIsWUFBb0IsTUFBaUIsRUFBVSxVQUFzQjtRQUFqRCxXQ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AgICAgZGlhbG9nUmVmLmFmdGVyQ2xvc2VkKCkuc3Vic2NyaWJlKHJlcyA9PiB7XHJcbiAgICAgICAgICBpZiAocmVzKSB7XHJcbiAgICAgICAgICAgIHRoaXMuQ3VycmVudE1hcE1vZGVsLmxvY2F0aW9uTGlzdC5wdXNoKHJlcyk7XHJcbiAgICAgICAgICB9XHJcbiAgICAgICAgfSk7XHJcbiAgICAgIH1cclxuICAgIH0sIHRoaXMuZXhwZWN0ZWREb3VibGVDbGlja0VsYXBzZWRUaW1lKTtcclxuICB9XHJcblxyXG4gIHB1YmxpYyBPbk1hcERvdWJsZUNsaWNrZWQoZXZlbnQpIHtcclxuICAgIHRoaXMuaXNEb3VibGVDbGljayA9IHRydWU7XHJcbiAgICBjb25zb2xlLmxvZygnZG91YmxlIGNsaWNrZWQnKTtcclxuICAgIHNldFRpbWVvdXQoeCA9PiB7XHJcbiAgICAgIHRoaXMuaXNEb3VibGVDbGljayA9IGZhbHNlO1xyXG4gICAgfSw1MDApOyAvLyBhYm91dCBhZnRlciBlbm91Z2ggdGltZSBpdCB0YWtlcyB0byB6b29tLCB0dXJuIG9mZiB0aGUgXCJkb3VibGUtY2xpY2tlZFwiIGZsYWdcclxuICB9XHJcbiAgLy8gSEVMUEVSU1xyXG59XHJcbiJdfQ== |
@@ -16,2 +16,4 @@ /** | ||
// PROPERTIES | ||
this.isDoubleClick = false; | ||
this.expectedDoubleClickElapsedTime = 500; | ||
/** | ||
@@ -86,23 +88,51 @@ * The map model object (IndividualMap model) containing all the settings for the map to be displayed | ||
var _this = this; | ||
/** @type {?} */ | ||
var dialogRef = this.dialog.open(AddMapMarkerComponent, { | ||
data: { | ||
lat: event.coords.lat, | ||
lng: event.coords.lng | ||
} | ||
}); | ||
dialogRef.afterClosed().subscribe((/** | ||
* @param {?} res | ||
setTimeout((/** | ||
* @param {?} x | ||
* @return {?} | ||
*/ | ||
function (res) { | ||
if (res) { | ||
_this.CurrentMapModel.locationList.push(res); | ||
function (x) { | ||
if (!_this.isDoubleClick) { | ||
/** @type {?} */ | ||
var dialogRef = _this.dialog.open(AddMapMarkerComponent, { | ||
data: { | ||
lat: event.coords.lat, | ||
lng: event.coords.lng | ||
} | ||
}); | ||
dialogRef.afterClosed().subscribe((/** | ||
* @param {?} res | ||
* @return {?} | ||
*/ | ||
function (res) { | ||
if (res) { | ||
_this.CurrentMapModel.locationList.push(res); | ||
} | ||
})); | ||
} | ||
})); | ||
}), this.expectedDoubleClickElapsedTime); | ||
}; | ||
/** | ||
* @param {?} event | ||
* @return {?} | ||
*/ | ||
MapComponent.prototype.OnMapDoubleClicked = /** | ||
* @param {?} event | ||
* @return {?} | ||
*/ | ||
function (event) { | ||
var _this = this; | ||
this.isDoubleClick = true; | ||
console.log('double clicked'); | ||
setTimeout((/** | ||
* @param {?} x | ||
* @return {?} | ||
*/ | ||
function (x) { | ||
_this.isDoubleClick = false; | ||
}), 500); // about after enough time it takes to zoom, turn off the "double-clicked" flag | ||
}; | ||
MapComponent.decorators = [ | ||
{ type: Component, args: [{ | ||
selector: 'lcu-map', | ||
template: "<div class=\"icon-list\">\r\n <div>\r\n <div class=\"top-icon-set\">\r\n <mat-icon class=\"hamburger-icon\">menu</mat-icon>\r\n <mat-icon class=\"chevron-icon\">chevron_left</mat-icon>\r\n </div>\r\n <div class=\"bottom-icon-set\" fxLayoutAlign.lt-sm=\"flex-start\" fxLayoutAlign=\"space-around\" fxLayoutGap.lt-sm=\"50px\">\r\n <mat-icon>search</mat-icon>\r\n <mat-icon >add</mat-icon>\r\n <mat-icon>layers</mat-icon>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<agm-map [latitude]=\"CurrentMapModel.origin.lat\" [longitude]=\"CurrentMapModel.origin.lng\" [title]=\"CurrentMapModel.title\" [zoom]=\"CurrentMapModel.zoom\"\r\n (mapClick)=\"OnChoseLocation($event)\">\r\n <div *ngFor=\"let marker of CurrentMapModel.locationList\">\r\n <agm-marker [latitude]=\"marker.lat\" [longitude]=\"marker.lng\" [title]=\"marker.title\" [iconUrl]=\"marker.icon\"></agm-marker>\r\n </div>\r\n</agm-map>\r\n\r\n", | ||
template: "<div class=\"icon-list\">\r\n <div>\r\n <div class=\"top-icon-set\">\r\n <mat-icon class=\"hamburger-icon\">menu</mat-icon>\r\n <mat-icon class=\"chevron-icon\">chevron_left</mat-icon>\r\n </div>\r\n <div class=\"bottom-icon-set\" fxLayoutAlign.lt-sm=\"flex-start\" fxLayoutAlign=\"space-around\" fxLayoutGap.lt-sm=\"50px\">\r\n <mat-icon>search</mat-icon>\r\n <mat-icon >add</mat-icon>\r\n <mat-icon>layers</mat-icon>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<agm-map [latitude]=\"CurrentMapModel.origin.lat\" [longitude]=\"CurrentMapModel.origin.lng\" [title]=\"CurrentMapModel.title\" [zoom]=\"CurrentMapModel.zoom\"\r\n (mapDblClick)=\"OnMapDoubleClicked($event)\" (mapClick)=\"OnChoseLocation($event)\">\r\n <div *ngFor=\"let marker of CurrentMapModel.locationList\">\r\n <agm-marker [latitude]=\"marker.lat\" [longitude]=\"marker.lng\" [title]=\"marker.title\" [iconUrl]=\"marker.icon\"></agm-marker>\r\n </div>\r\n</agm-map>\r\n\r\n", | ||
styles: ["mat-icon{font-size:30px}.icon-list{padding:5px}.hamburger-icon{position:absolute;left:10px}@media (max-width:600px){.hamburger-icon{position:relative}}.chevron-icon{position:absolute;right:10px}.bottom-icon-set{width:80%;margin:auto}@media (max-width:600px){.bottom-icon-set{margin-left:10px}}agm-map{height:700px}"] | ||
@@ -129,2 +159,12 @@ }] } | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
MapComponent.prototype.isDoubleClick; | ||
/** | ||
* @type {?} | ||
* @private | ||
*/ | ||
MapComponent.prototype.expectedDoubleClickElapsedTime; | ||
/** | ||
* The map model object (IndividualMap model) containing all the settings for the map to be displayed | ||
@@ -145,2 +185,2 @@ * @type {?} | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2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VxyXG4gICAgICAgIH0pO1xyXG4gICAgICB9XHJcbiAgICB9LCB0aGlzLmV4cGVjdGVkRG91YmxlQ2xpY2tFbGFwc2VkVGltZSk7XHJcbiAgfVxyXG5cclxuICBwdWJsaWMgT25NYXBEb3VibGVDbGlja2VkKGV2ZW50KSB7XHJcbiAgICB0aGlzLmlzRG91YmxlQ2xpY2sgPSB0cnVlO1xyXG4gICAgY29uc29sZS5sb2coJ2RvdWJsZSBjbGlja2VkJyk7XHJcbiAgICBzZXRUaW1lb3V0KHggPT4ge1xyXG4gICAgICB0aGlzLmlzRG91YmxlQ2xpY2sgPSBmYWxzZTtcclxuICAgIH0sNTAwKTsgLy8gYWJvdXQgYWZ0ZXIgZW5vdWdoIHRpbWUgaXQgdGFrZXMgdG8gem9vbSwgdHVybiBvZmYgdGhlIFwiZG91YmxlLWNsaWNrZWRcIiBmbGFnXHJcbiAgfVxyXG4gIC8vIEhFTFBFUlNcclxufVxyXG4iXX0= |
@@ -297,2 +297,4 @@ import { __awaiter } from 'tslib'; | ||
// PROPERTIES | ||
this.isDoubleClick = false; | ||
this.expectedDoubleClickElapsedTime = 500; | ||
/** | ||
@@ -343,19 +345,42 @@ * The map model object (IndividualMap model) containing all the settings for the map to be displayed | ||
OnChoseLocation(event) { | ||
/** @type {?} */ | ||
const dialogRef = this.dialog.open(AddMapMarkerComponent, { | ||
data: { | ||
lat: event.coords.lat, | ||
lng: event.coords.lng | ||
} | ||
}); | ||
dialogRef.afterClosed().subscribe((/** | ||
* @param {?} res | ||
setTimeout((/** | ||
* @param {?} x | ||
* @return {?} | ||
*/ | ||
res => { | ||
if (res) { | ||
this.CurrentMapModel.locationList.push(res); | ||
x => { | ||
if (!this.isDoubleClick) { | ||
/** @type {?} */ | ||
const dialogRef = this.dialog.open(AddMapMarkerComponent, { | ||
data: { | ||
lat: event.coords.lat, | ||
lng: event.coords.lng | ||
} | ||
}); | ||
dialogRef.afterClosed().subscribe((/** | ||
* @param {?} res | ||
* @return {?} | ||
*/ | ||
res => { | ||
if (res) { | ||
this.CurrentMapModel.locationList.push(res); | ||
} | ||
})); | ||
} | ||
})); | ||
}), this.expectedDoubleClickElapsedTime); | ||
} | ||
/** | ||
* @param {?} event | ||
* @return {?} | ||
*/ | ||
OnMapDoubleClicked(event) { | ||
this.isDoubleClick = true; | ||
console.log('double clicked'); | ||
setTimeout((/** | ||
* @param {?} x | ||
* @return {?} | ||
*/ | ||
x => { | ||
this.isDoubleClick = false; | ||
}), 500); // about after enough time it takes to zoom, turn off the "double-clicked" flag | ||
} | ||
} | ||
@@ -365,3 +390,3 @@ MapComponent.decorators = [ | ||
selector: 'lcu-map', | ||
template: "<div class=\"icon-list\">\r\n <div>\r\n <div class=\"top-icon-set\">\r\n <mat-icon class=\"hamburger-icon\">menu</mat-icon>\r\n <mat-icon class=\"chevron-icon\">chevron_left</mat-icon>\r\n </div>\r\n <div class=\"bottom-icon-set\" fxLayoutAlign.lt-sm=\"flex-start\" fxLayoutAlign=\"space-around\" fxLayoutGap.lt-sm=\"50px\">\r\n <mat-icon>search</mat-icon>\r\n <mat-icon >add</mat-icon>\r\n <mat-icon>layers</mat-icon>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<agm-map [latitude]=\"CurrentMapModel.origin.lat\" [longitude]=\"CurrentMapModel.origin.lng\" [title]=\"CurrentMapModel.title\" [zoom]=\"CurrentMapModel.zoom\"\r\n (mapClick)=\"OnChoseLocation($event)\">\r\n <div *ngFor=\"let marker of CurrentMapModel.locationList\">\r\n <agm-marker [latitude]=\"marker.lat\" [longitude]=\"marker.lng\" [title]=\"marker.title\" [iconUrl]=\"marker.icon\"></agm-marker>\r\n </div>\r\n</agm-map>\r\n\r\n", | ||
template: "<div class=\"icon-list\">\r\n <div>\r\n <div class=\"top-icon-set\">\r\n <mat-icon class=\"hamburger-icon\">menu</mat-icon>\r\n <mat-icon class=\"chevron-icon\">chevron_left</mat-icon>\r\n </div>\r\n <div class=\"bottom-icon-set\" fxLayoutAlign.lt-sm=\"flex-start\" fxLayoutAlign=\"space-around\" fxLayoutGap.lt-sm=\"50px\">\r\n <mat-icon>search</mat-icon>\r\n <mat-icon >add</mat-icon>\r\n <mat-icon>layers</mat-icon>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<agm-map [latitude]=\"CurrentMapModel.origin.lat\" [longitude]=\"CurrentMapModel.origin.lng\" [title]=\"CurrentMapModel.title\" [zoom]=\"CurrentMapModel.zoom\"\r\n (mapDblClick)=\"OnMapDoubleClicked($event)\" (mapClick)=\"OnChoseLocation($event)\">\r\n <div *ngFor=\"let marker of CurrentMapModel.locationList\">\r\n <agm-marker [latitude]=\"marker.lat\" [longitude]=\"marker.lng\" [title]=\"marker.title\" [iconUrl]=\"marker.icon\"></agm-marker>\r\n </div>\r\n</agm-map>\r\n\r\n", | ||
styles: ["mat-icon{font-size:30px}.icon-list{padding:5px}.hamburger-icon{position:absolute;left:10px}@media (max-width:600px){.hamburger-icon{position:relative}}.chevron-icon{position:absolute;right:10px}.bottom-icon-set{width:80%;margin:auto}@media (max-width:600px){.bottom-icon-set{margin-left:10px}}agm-map{height:700px}"] | ||
@@ -368,0 +393,0 @@ }] } |
@@ -11,3 +11,3 @@ import { __extends, __awaiter, __generator } from 'tslib'; | ||
import { RouterModule } from '@angular/router'; | ||
import { Injectable, Injector, NgModule, Component, Input, Inject, defineInjectable, inject, INJECTOR } from '@angular/core'; | ||
import { Injectable, Injector, NgModule, Component, Inject, Input, defineInjectable, inject, INJECTOR } from '@angular/core'; | ||
@@ -365,2 +365,4 @@ /** | ||
// PROPERTIES | ||
this.isDoubleClick = false; | ||
this.expectedDoubleClickElapsedTime = 500; | ||
/** | ||
@@ -435,23 +437,51 @@ * The map model object (IndividualMap model) containing all the settings for the map to be displayed | ||
var _this = this; | ||
/** @type {?} */ | ||
var dialogRef = this.dialog.open(AddMapMarkerComponent, { | ||
data: { | ||
lat: event.coords.lat, | ||
lng: event.coords.lng | ||
} | ||
}); | ||
dialogRef.afterClosed().subscribe((/** | ||
* @param {?} res | ||
setTimeout((/** | ||
* @param {?} x | ||
* @return {?} | ||
*/ | ||
function (res) { | ||
if (res) { | ||
_this.CurrentMapModel.locationList.push(res); | ||
function (x) { | ||
if (!_this.isDoubleClick) { | ||
/** @type {?} */ | ||
var dialogRef = _this.dialog.open(AddMapMarkerComponent, { | ||
data: { | ||
lat: event.coords.lat, | ||
lng: event.coords.lng | ||
} | ||
}); | ||
dialogRef.afterClosed().subscribe((/** | ||
* @param {?} res | ||
* @return {?} | ||
*/ | ||
function (res) { | ||
if (res) { | ||
_this.CurrentMapModel.locationList.push(res); | ||
} | ||
})); | ||
} | ||
})); | ||
}), this.expectedDoubleClickElapsedTime); | ||
}; | ||
/** | ||
* @param {?} event | ||
* @return {?} | ||
*/ | ||
MapComponent.prototype.OnMapDoubleClicked = /** | ||
* @param {?} event | ||
* @return {?} | ||
*/ | ||
function (event) { | ||
var _this = this; | ||
this.isDoubleClick = true; | ||
console.log('double clicked'); | ||
setTimeout((/** | ||
* @param {?} x | ||
* @return {?} | ||
*/ | ||
function (x) { | ||
_this.isDoubleClick = false; | ||
}), 500); // about after enough time it takes to zoom, turn off the "double-clicked" flag | ||
}; | ||
MapComponent.decorators = [ | ||
{ type: Component, args: [{ | ||
selector: 'lcu-map', | ||
template: "<div class=\"icon-list\">\r\n <div>\r\n <div class=\"top-icon-set\">\r\n <mat-icon class=\"hamburger-icon\">menu</mat-icon>\r\n <mat-icon class=\"chevron-icon\">chevron_left</mat-icon>\r\n </div>\r\n <div class=\"bottom-icon-set\" fxLayoutAlign.lt-sm=\"flex-start\" fxLayoutAlign=\"space-around\" fxLayoutGap.lt-sm=\"50px\">\r\n <mat-icon>search</mat-icon>\r\n <mat-icon >add</mat-icon>\r\n <mat-icon>layers</mat-icon>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<agm-map [latitude]=\"CurrentMapModel.origin.lat\" [longitude]=\"CurrentMapModel.origin.lng\" [title]=\"CurrentMapModel.title\" [zoom]=\"CurrentMapModel.zoom\"\r\n (mapClick)=\"OnChoseLocation($event)\">\r\n <div *ngFor=\"let marker of CurrentMapModel.locationList\">\r\n <agm-marker [latitude]=\"marker.lat\" [longitude]=\"marker.lng\" [title]=\"marker.title\" [iconUrl]=\"marker.icon\"></agm-marker>\r\n </div>\r\n</agm-map>\r\n\r\n", | ||
template: "<div class=\"icon-list\">\r\n <div>\r\n <div class=\"top-icon-set\">\r\n <mat-icon class=\"hamburger-icon\">menu</mat-icon>\r\n <mat-icon class=\"chevron-icon\">chevron_left</mat-icon>\r\n </div>\r\n <div class=\"bottom-icon-set\" fxLayoutAlign.lt-sm=\"flex-start\" fxLayoutAlign=\"space-around\" fxLayoutGap.lt-sm=\"50px\">\r\n <mat-icon>search</mat-icon>\r\n <mat-icon >add</mat-icon>\r\n <mat-icon>layers</mat-icon>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<agm-map [latitude]=\"CurrentMapModel.origin.lat\" [longitude]=\"CurrentMapModel.origin.lng\" [title]=\"CurrentMapModel.title\" [zoom]=\"CurrentMapModel.zoom\"\r\n (mapDblClick)=\"OnMapDoubleClicked($event)\" (mapClick)=\"OnChoseLocation($event)\">\r\n <div *ngFor=\"let marker of CurrentMapModel.locationList\">\r\n <agm-marker [latitude]=\"marker.lat\" [longitude]=\"marker.lng\" [title]=\"marker.title\" [iconUrl]=\"marker.icon\"></agm-marker>\r\n </div>\r\n</agm-map>\r\n\r\n", | ||
styles: ["mat-icon{font-size:30px}.icon-list{padding:5px}.hamburger-icon{position:absolute;left:10px}@media (max-width:600px){.hamburger-icon{position:relative}}.chevron-icon{position:absolute;right:10px}.bottom-icon-set{width:80%;margin:auto}@media (max-width:600px){.bottom-icon-set{margin-left:10px}}agm-map{height:700px}"] | ||
@@ -458,0 +488,0 @@ }] } |
@@ -12,2 +12,4 @@ import { OnInit } from '@angular/core'; | ||
CurrentMapModel: IndividualMap; | ||
private isDoubleClick; | ||
private expectedDoubleClickElapsedTime; | ||
/** | ||
@@ -26,2 +28,3 @@ * The map model object (IndividualMap model) containing all the settings for the map to be displayed | ||
OnChoseLocation(event: any): void; | ||
OnMapDoubleClicked(event: any): void; | ||
} |
{ | ||
"name": "@ambl-on/lcu-ambl-on-common", | ||
"version": "0.1.43-my-atlas", | ||
"version": "0.1.44-integration", | ||
"peerDependencies": { | ||
@@ -5,0 +5,0 @@ "@angular/common": "^7.2.0", |
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
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
374342
3628