Skip to content

Commit

Permalink
#6 - Removing not needed stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
eamador committed Apr 18, 2017
1 parent ddaaa6b commit b3dd9b7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 36 deletions.
9 changes: 0 additions & 9 deletions src/services/MapService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,8 @@ import {Map} from 'mapbox-gl';
@Injectable()
export class MapService {
map: Map;
baseMaps: any;

constructor() {
(mapboxgl as any).accessToken = 'pk.eyJ1IjoiY2F5ZXRhbm9idiIsImEiOiJEMWUzLVpRIn0.PD0U3GevSGwVUPrRCT360Q'

this.baseMaps = [
{ name: 'Street', id: 'street' },
{ name: 'Bright', id: 'bright' },
{ name: 'Light', id: 'light' },
{ name: 'Satellite', id: 'satellite' }
];

}
}
20 changes: 0 additions & 20 deletions src/shared/steps/map/MapStep.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/shared/steps/map/MapStep.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions src/shared/steps/map/MapStep.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Component, Inject, Renderer, ElementRef, AfterViewInit, HostBinding, Input} from "@angular/core";
import {Component, Inject, Renderer, ElementRef, AfterViewInit, HostBinding} from "@angular/core";
import {BaseStepComponent} from "../base/BaseStep";
import {Map, Popup} from 'mapbox-gl';
import {MapService} from "../../../services/MapService";
Expand All @@ -10,11 +10,11 @@ import {WindowService} from "../../../services/WindowService";
templateUrl: '/templates/shared/steps/map/view.html',
})
export class MapStepComponent extends BaseStepComponent {
@Input() activeLayer: any = false;
@Input() zoom: any = 4.5;
@Input() center: any = [15.0, 38.0];
@Input() popup: any = false;
@Input() currentLegend: string = '';
activeLayer: any = false;
zoom: any = 4.5;
center: any = [15.0, 38.0];
popup: any = false;
currentLegend: string = '';

constructor(@Inject(ElementRef) elem: ElementRef,
@Inject(DOCUMENT) protected document: any,
Expand Down

0 comments on commit b3dd9b7

Please sign in to comment.