diff --git a/package.json b/package.json index 60a1179..0638632 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "0.0.0", "scripts": { "ng": "ng", - "start": "ng serve --proxy-config proxy.conf.json --port 4201", + "start": "ng serve --proxy-config proxy.conf.json --port 4201 --serve-path /treetrail", "build": "ng build", "watch": "ng build --watch --configuration development", "test": "ng test", diff --git a/proxy.conf.json b/proxy.conf.json index e24d739..7094876 100644 --- a/proxy.conf.json +++ b/proxy.conf.json @@ -1,17 +1,17 @@ { - "/static": { + "/treetrail/static": { "target": "http://127.0.0.1:5002", "secure": false }, - "/v1": { + "/treetrail/v1": { "target": "http://127.0.0.1:5002", "secure": false }, - "/attachment": { + "/treetrail/attachment": { "target": "http://127.0.0.1:5002", "secure": false }, - "/tiles": { + "/treetrail/tiles": { "target": "http://127.0.0.1:5002", "secure": false } diff --git a/src/app/map/map.component.ts b/src/app/map/map.component.ts index fb8a909..2c81158 100644 --- a/src/app/map/map.component.ts +++ b/src/app/map/map.component.ts @@ -80,7 +80,7 @@ export class MapComponent implements AfterContentInit, OnInit { let conf = this.configService.conf.value let bms = conf.background if (conf.bootstrap.baseMapStyles.embedded.indexOf(bms) >= 0) { - this.styleUrl = `/tiles/style/${bms}` + this.styleUrl = `tiles/style/${bms}` } else { this.styleUrl = conf.bootstrap.baseMapStyles.external[bms] diff --git a/src/app/settings/settings.component.html b/src/app/settings/settings.component.html index d1b7a8b..2032ada 100644 --- a/src/app/settings/settings.component.html +++ b/src/app/settings/settings.component.html @@ -40,7 +40,7 @@
Types of zones displayed on the map
+ (change)="configService.setUserPrefValue('showZones', item.key, $event.checked) ; router.navigate(['/map'])"> {{ item.key }}