From 63e54ecf799d29041c71bf6606d04956bbb9e4f2 Mon Sep 17 00:00:00 2001 From: Chris Veilleux Date: Thu, 20 Dec 2018 14:18:59 -0600 Subject: [PATCH] removed leaflet code --- .../profile/personal/personal.component.ts | 28 +------------------ .../account/src/app/profile/profile.module.ts | 2 -- 2 files changed, 1 insertion(+), 29 deletions(-) diff --git a/frontend/internet/projects/account/src/app/profile/personal/personal.component.ts b/frontend/internet/projects/account/src/app/profile/personal/personal.component.ts index ab30bbcb..a8a70e57 100644 --- a/frontend/internet/projects/account/src/app/profile/personal/personal.component.ts +++ b/frontend/internet/projects/account/src/app/profile/personal/personal.component.ts @@ -1,39 +1,13 @@ import { Component, OnInit } from '@angular/core'; -import { icon, latLng, marker, tileLayer } from 'leaflet'; -import { LatLng, Marker } from 'leaflet'; - -const streetMaps = tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { - detectRetina: true, - attribution: '© OpenStreetMap contributors' -}); - -const markerIcon = icon({ - iconSize: [ 25, 41 ], - iconAnchor: [ 13, 41 ], - iconUrl: 'leaflet/marker-icon.png', - shadowUrl: 'leaflet/marker-shadow.png' -}); - @Component({ selector: 'account-personal', templateUrl: './personal.component.html', styleUrls: ['./personal.component.scss'] }) export class PersonalComponent implements OnInit { - // Default user location to the Kansas City office for users that have not specified - public userLocation: Marker = marker([ 39.0572, -94.5825 ], { draggable: true, icon: markerIcon }); - public userCoordinate: LatLng; - public leafletOptions = { - layers: [ streetMaps, this.userLocation ], - zoom: 7, - center: latLng([ 39.1139, -94.5284 ]) - }; constructor() { } - ngOnInit() { - this.userLocation.on('dragend', () => { this.userCoordinate = this.userLocation.getLatLng(); }); - // this.leafletOptions.layers.push(this.userLocation); - } + ngOnInit() { } } diff --git a/frontend/internet/projects/account/src/app/profile/profile.module.ts b/frontend/internet/projects/account/src/app/profile/profile.module.ts index ab0400af..32cd2b18 100644 --- a/frontend/internet/projects/account/src/app/profile/profile.module.ts +++ b/frontend/internet/projects/account/src/app/profile/profile.module.ts @@ -1,7 +1,6 @@ import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FlexLayoutModule } from '@angular/flex-layout'; -import { LeafletModule } from '@asymmetrik/ngx-leaflet'; import { FontAwesomeModule } from '@fortawesome/angular-fontawesome'; import { @@ -40,7 +39,6 @@ import { AgreementsComponent } from './agreements/agreements.component'; CommonModule, FlexLayoutModule, FontAwesomeModule, - LeafletModule, MatButtonModule, MatButtonToggleModule, MatCardModule,