diff --git a/common/config/public/ConfigClass.ts b/common/config/public/ConfigClass.ts
index 436269b..29fc7d1 100644
--- a/common/config/public/ConfigClass.ts
+++ b/common/config/public/ConfigClass.ts
@@ -38,6 +38,7 @@ export module ClientConfig {
export interface MapConfig {
enabled: boolean;
+ useImageMarkers: boolean;
mapProvider: MapProviders;
mapboxAccessToken: string;
customLayers: MapLayers[];
@@ -128,6 +129,7 @@ export class PublicConfigClass {
},
Map: {
enabled: true,
+ useImageMarkers: true,
mapProvider: ClientConfig.MapProviders.OpenStreetMap,
mapboxAccessToken: '',
customLayers: [{name: 'street', url: ''}]
diff --git a/frontend/app/ui/gallery/map/lightbox/lightbox.map.gallery.component.ts b/frontend/app/ui/gallery/map/lightbox/lightbox.map.gallery.component.ts
index 33d0019..69e9137 100644
--- a/frontend/app/ui/gallery/map/lightbox/lightbox.map.gallery.component.ts
+++ b/frontend/app/ui/gallery/map/lightbox/lightbox.map.gallery.component.ts
@@ -1,4 +1,4 @@
-import {AfterViewInit, Component, ElementRef, HostListener, Input, OnChanges, OnInit, ViewChild} from '@angular/core';
+import {AfterViewInit, Component, ElementRef, HostListener, Input, OnChanges, ViewChild} from '@angular/core';
import {PhotoDTO} from '../../../../../../common/entities/PhotoDTO';
import {Dimension} from '../../../../model/IRenderable';
import {FullScreenService} from '../../fullscreen.service';
@@ -163,16 +163,18 @@ export class GalleryMapLightboxComponent implements OnChanges, AfterViewInit {
}
};
- if (iconTh.Available === true) {
- FixOrientationPipe.transform(iconTh.Src, p.metadata.orientation).then((icon) => {
- obj.iconUrl = icon;
- });
- } else {
- iconTh.OnLoad = () => {
+ if (Config.Client.Map.useImageMarkers === true) {
+ if (iconTh.Available === true) {
FixOrientationPipe.transform(iconTh.Src, p.metadata.orientation).then((icon) => {
obj.iconUrl = icon;
});
- };
+ } else {
+ iconTh.OnLoad = () => {
+ FixOrientationPipe.transform(iconTh.Src, p.metadata.orientation).then((icon) => {
+ obj.iconUrl = icon;
+ });
+ };
+ }
}
return obj;
});
diff --git a/frontend/app/ui/settings/map/map.settings.component.html b/frontend/app/ui/settings/map/map.settings.component.html
index ab12392..a5b7352 100644
--- a/frontend/app/ui/settings/map/map.settings.component.html
+++ b/frontend/app/ui/settings/map/map.settings.component.html
@@ -19,74 +19,96 @@
Error: {{error}}
+
-
-
@@ -31,11 +31,11 @@
name="passwordProtected"
[switch-on-color]="'primary'"
[switch-disabled]="!settings.enabled"
- [switch-inverse]="'inverse'"
+ [switch-inverse]="true"
[switch-off-text]="text.Disabled"
[switch-on-text]="text.Enabled"
- [switch-handle-width]="'100'"
- [switch-label-width]="'20'"
+ [switch-handle-width]="100"
+ [switch-label-width]="20"
[(ngModel)]="settings.passwordProtected">
Enables password protected sharing links
diff --git a/frontend/app/ui/settings/thumbnail/thumbanil.settings.component.html b/frontend/app/ui/settings/thumbnail/thumbanil.settings.component.html
index abc5be7..2c89138 100644
--- a/frontend/app/ui/settings/thumbnail/thumbanil.settings.component.html
+++ b/frontend/app/ui/settings/thumbnail/thumbanil.settings.component.html
@@ -54,11 +54,11 @@
class="switch"
name="enabled"
[switch-on-color]="'primary'"
- [switch-inverse]="'inverse'"
+ [switch-inverse]="true"
[switch-off-text]="text.Low"
[switch-on-text]="text.High"
- [switch-handle-width]="'100'"
- [switch-label-width]="'20'"
+ [switch-handle-width]="100"
+ [switch-label-width]="20"
[(ngModel)]="settings.server.qualityPriority">
High quality may be slow. Especially with Jimp.
diff --git a/frontend/app/ui/settings/video/video.settings.component.html b/frontend/app/ui/settings/video/video.settings.component.html
index 2a26f42..d84b659 100644
--- a/frontend/app/ui/settings/video/video.settings.component.html
+++ b/frontend/app/ui/settings/video/video.settings.component.html
@@ -7,12 +7,12 @@
class="switch"
name="enabled"
[switch-on-color]="'success'"
- [switch-inverse]="'inverse'"
+ [switch-inverse]="true"
[switch-off-text]="text.Disabled"
[switch-on-text]="text.Enabled"
[switch-disabled]="inProgress"
- [switch-handle-width]="'100'"
- [switch-label-width]="'20'"
+ [switch-handle-width]="100"
+ [switch-label-width]="20"
[(ngModel)]="settings.enabled">