add link to wiki in toolbar
* adjust margin and size of map-frame * add link to gitlab wiki
This commit is contained in:
parent
f69c999f02
commit
4e46674c07
4
projects/project-3/frontend/.gitignore
vendored
4
projects/project-3/frontend/.gitignore
vendored
@ -7,6 +7,10 @@
|
|||||||
# Only exists if Bazel was run
|
# Only exists if Bazel was run
|
||||||
/bazel-out
|
/bazel-out
|
||||||
|
|
||||||
|
# exclude generated css-files
|
||||||
|
/src/app/map/*.css.map
|
||||||
|
/src/app/map/*.css
|
||||||
|
|
||||||
# dependencies
|
# dependencies
|
||||||
/node_modules
|
/node_modules
|
||||||
|
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
import { BrowserModule } from '@angular/platform-browser';
|
import {BrowserModule} from '@angular/platform-browser';
|
||||||
import { NgModule } from '@angular/core';
|
import {NgModule} from '@angular/core';
|
||||||
|
|
||||||
import { AppRoutingModule } from './app-routing.module';
|
import {AppRoutingModule} from './app-routing.module';
|
||||||
import { AppComponent } from './app.component';
|
import {AppComponent} from './app.component';
|
||||||
import { MapComponent } from './map/map.component';
|
import {MapComponent} from './map/map.component';
|
||||||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
|
||||||
import {MatToolbarModule} from '@angular/material/toolbar';
|
import {MatToolbarModule} from '@angular/material/toolbar';
|
||||||
import {FlexLayoutModule} from '@angular/flex-layout';
|
import {FlexLayoutModule} from '@angular/flex-layout';
|
||||||
|
import {MatIconModule} from '@angular/material/icon';
|
||||||
|
import {MatButtonModule} from '@angular/material/button';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
@ -18,9 +20,12 @@ import {FlexLayoutModule} from '@angular/flex-layout';
|
|||||||
AppRoutingModule,
|
AppRoutingModule,
|
||||||
BrowserAnimationsModule,
|
BrowserAnimationsModule,
|
||||||
MatToolbarModule,
|
MatToolbarModule,
|
||||||
|
MatIconModule,
|
||||||
|
MatButtonModule,
|
||||||
FlexLayoutModule
|
FlexLayoutModule
|
||||||
],
|
],
|
||||||
providers: [],
|
providers: [],
|
||||||
bootstrap: [AppComponent]
|
bootstrap: [AppComponent]
|
||||||
})
|
})
|
||||||
export class AppModule { }
|
export class AppModule {
|
||||||
|
}
|
||||||
|
@ -1,18 +1,20 @@
|
|||||||
.mat-toolbar {
|
.toolbar-spacer {
|
||||||
display: flex;
|
flex: 1 1 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.map-container {
|
.map-container {
|
||||||
margin: 30px;
|
margin: 0;
|
||||||
height: 100%;
|
height: 95%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.map-frame {
|
.map-frame {
|
||||||
height: 90%;
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#map {
|
#map {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*# sourceMappingURL=map.component.css.map */
|
/*# sourceMappingURL=map.component.css.map */
|
||||||
|
@ -1 +1 @@
|
|||||||
{"version":3,"sourceRoot":"","sources":["map.component.scss"],"names":[],"mappings":"AAAA;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;;;AAGF;EACE","file":"map.component.css"}
|
{"version":3,"sourceRoot":"","sources":["map.component.scss"],"names":[],"mappings":"AAAA;EACE;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA","file":"map.component.css"}
|
@ -1,10 +1,19 @@
|
|||||||
<mat-toolbar class="mat-toolbar" color="primary">
|
<div class="myApp">
|
||||||
<span>My Application</span>
|
<mat-toolbar class="mat-toolbar" color="primary">
|
||||||
</mat-toolbar>
|
<span>Bike Stations in London</span>
|
||||||
|
<span class="toolbar-spacer"></span>
|
||||||
|
<a class="button-wiki" color="primary"
|
||||||
|
href="https://gitlab.com/marcel.schwarz/geovisualisierung/-/wikis/Projektarbeit%203" mat-flat-button
|
||||||
|
target="_blank">
|
||||||
|
<mat-icon>library_books</mat-icon>
|
||||||
|
Wiki</a>
|
||||||
|
</mat-toolbar>
|
||||||
|
|
||||||
<div class="map-container">
|
<div class="map-container">
|
||||||
<div class="map-frame">
|
<div class="map-frame">
|
||||||
<div id="map"></div>
|
<div id="map"></div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,16 +1,28 @@
|
|||||||
|
.myApp {
|
||||||
|
margin: 0;
|
||||||
|
height: 100vh;
|
||||||
|
width: 100vw;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toolbar-spacer {
|
||||||
|
flex: 1 1 auto;
|
||||||
|
}
|
||||||
|
|
||||||
.mat-toolbar {
|
.mat-toolbar {
|
||||||
display: flex;
|
height: 4%
|
||||||
}
|
}
|
||||||
|
|
||||||
.map-container {
|
.map-container {
|
||||||
margin: 30px;
|
margin: 10px;
|
||||||
height: 100%;
|
height: 94%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.map-frame {
|
.map-frame {
|
||||||
height: 90%;
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#map {
|
#map {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,6 @@ import {MapService} from '../service/map.service';
|
|||||||
styleUrls: ['./map.component.scss']
|
styleUrls: ['./map.component.scss']
|
||||||
})
|
})
|
||||||
export class MapComponent implements AfterViewInit {
|
export class MapComponent implements AfterViewInit {
|
||||||
private map;
|
|
||||||
|
|
||||||
constructor(private service: MapService) {
|
constructor(private service: MapService) {
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user