diff --git a/service-thorntail/src/main/java/com/maptology/service/thorntail/MaptologyThorntail.java b/service-thorntail/src/main/java/com/maptology/service/thorntail/MaptologyThorntail.java index e3c202d..e8781f0 100644 --- a/service-thorntail/src/main/java/com/maptology/service/thorntail/MaptologyThorntail.java +++ b/service-thorntail/src/main/java/com/maptology/service/thorntail/MaptologyThorntail.java @@ -56,7 +56,6 @@ public class MaptologyThorntail { * @throws Exception Thrown if something is wrong. */ public static void main(String[] args) throws Exception{ - // System.setProperty(SwarmProperties.DEBUG_BOOTSTRAP, "true"); StringBuilder repositories = new StringBuilder(); for (String repo: THORNTAIL_MAVEN_REPOSITORIES) { diff --git a/web-angular/src/app/layouts/inside.component.html b/web-angular/src/app/layouts/inside.component.html index dc035cf..3a84ab9 100644 --- a/web-angular/src/app/layouts/inside.component.html +++ b/web-angular/src/app/layouts/inside.component.html @@ -12,7 +12,7 @@ - + diff --git a/web-angular/src/app/services/resource.service.ts b/web-angular/src/app/services/resource.service.ts index 057a775..414952c 100644 --- a/web-angular/src/app/services/resource.service.ts +++ b/web-angular/src/app/services/resource.service.ts @@ -87,7 +87,7 @@ export class ResourceService { 'share_dialog_placeholder': 'Freigabelink', 'share_dialog_success': 'Die Freigabe wurde erfolgreich hinzugefügt.', 'share_dialog_error': 'Die Freigabe konnte nicht erstellt werden. Hast Du den Freigabelink vollständig eingegeben?', - 'tile_map_attribution': 'Maptology', + 'tile_map_attribution': 'Kartendaten: © OpenStreetMap | Visualisierung: © Locoslab GmbH', // views 'export_title' : 'Export', 'export_explain_title' : 'Daten exportieren', @@ -506,7 +506,7 @@ export class ResourceService { 'share_dialog_placeholder': 'Sharing link', 'share_dialog_success': 'The share was added successfully.', 'share_dialog_error': 'Unable to add the sharing link. Did you type it in correctly?', - 'tile_map_attribution': 'Maptology', + 'tile_map_attribution': 'Map data: © OpenStreetMap | Visualization: © Locoslab GmbH', // views 'export_title' : 'Export', 'export_explain_title' : 'Export data', diff --git a/web-angular/src/app/views/reset.component.html b/web-angular/src/app/views/reset.component.html index cca498c..c34efde 100644 --- a/web-angular/src/app/views/reset.component.html +++ b/web-angular/src/app/views/reset.component.html @@ -1,24 +1,27 @@ -
- - - {{ res.strings('reset_title') }} - {{ res.strings('reset_subtitle') }} - - -
- -
-
- - - - - - - - -
-
\ No newline at end of file +
+
+ + + {{ res.strings('reset_title') }} + {{ res.strings('reset_subtitle') }} + + +
+ +
+
+ + + + + + + + +
+
+
\ No newline at end of file diff --git a/web-angular/src/app/widgets/marker-map.component.html b/web-angular/src/app/widgets/marker-map.component.html index b28cd69..0a4e3ed 100644 --- a/web-angular/src/app/widgets/marker-map.component.html +++ b/web-angular/src/app/widgets/marker-map.component.html @@ -1,4 +1,4 @@ -
+
diff --git a/web-angular/src/app/widgets/tile-map.component.ts b/web-angular/src/app/widgets/tile-map.component.ts index 93f8dfa..5cd82b5 100644 --- a/web-angular/src/app/widgets/tile-map.component.ts +++ b/web-angular/src/app/widgets/tile-map.component.ts @@ -1,4 +1,4 @@ -import { Component, OnInit, ElementRef, ViewChild } from '@angular/core'; +import { Component, OnInit, ElementRef, ViewChild, DoCheck } from '@angular/core'; import * as L from 'leaflet'; import { ResourceService } from '../services/resource.service'; @@ -6,7 +6,7 @@ import { ResourceService } from '../services/resource.service'; selector: 'app-tile-map', templateUrl: './tile-map.component.html' }) -export class TileMapComponent implements OnInit { +export class TileMapComponent implements OnInit, DoCheck { private static readonly DEFAULT_LOCATION = new L.LatLng(51.461663, 7.016645); private static readonly DEFAULT_ZOOM = 13; @@ -23,6 +23,7 @@ export class TileMapComponent implements OnInit { map: L.Map; layer: L.TileLayer; + attribution: L.Control; readonly iconNormal: L.Icon; readonly iconSelected: L.Icon; @@ -35,6 +36,13 @@ export class TileMapComponent implements OnInit { } + ngDoCheck() { + this.map.removeControl(this.attribution); + this.attribution = L.control.attribution({ position: 'bottomleft' }); + this.map.addControl(this.attribution); + this.map.invalidateSize(); + } + getWidth(): number { if (this.mapElement) { return this.mapElement.nativeElement.clientWidth; @@ -52,12 +60,17 @@ export class TileMapComponent implements OnInit { } ngOnInit() { - this.map = new L.Map('map'); + const object = this; + this.map = new L.Map('map', { attributionControl: false }); this.map.setView(TileMapComponent.DEFAULT_LOCATION, TileMapComponent.DEFAULT_ZOOM); + this.attribution = L.control.attribution({ position: 'bottomleft' }); + this.map.addControl(this.attribution); this.layer = new L.TileLayer(TileMapComponent.DEFAULT_TILE_URL, { - attribution: this.res.strings('tile_map_attribution'), maxZoom: 18 }).addTo(this.map); + this.layer.getAttribution = function(): string { + return object.res.strings('tile_map_attribution'); + }; } private createMarkerIcon(url: string): L.Icon {