From d69437a11f05767f9e8bcdfa3286f5e805547d90 Mon Sep 17 00:00:00 2001 From: Stefan Fessler Date: Wed, 16 Feb 2022 16:16:37 -0300 Subject: [PATCH 1/2] feat: test of mapboxgl navigation control --- web_frontend/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web_frontend/index.js b/web_frontend/index.js index 48cf0ba..17c872c 100644 --- a/web_frontend/index.js +++ b/web_frontend/index.js @@ -149,6 +149,9 @@ mapboxgl.accessToken = hash: false, }); + // Add zoom and rotation controls to the map. + map.addControl(new mapboxgl.NavigationControl()); + // We wait for // - download of first batch of routes // - Loading of the map From 3177481b66bb664740405ac225f7b1a4c2fbabbb Mon Sep 17 00:00:00 2001 From: Stefan Fessler Date: Wed, 16 Feb 2022 19:11:48 -0300 Subject: [PATCH 2/2] readme update --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1d4e15c..1a6b4bd 100644 --- a/README.md +++ b/README.md @@ -24,21 +24,21 @@ Also currently we donn't the tour ID and any sharing information, this would be ## TODO's -Currently the Vapor Swift backend is not compiling a x86-64 docker image. This has to solved or the image has to be hosted on some arm64 hoster but e.g. Google cloud run only supports linug/amd64. +Currently the Vapor Swift backend is ~~not~~ compiling a `x86-64` docker image. This has to solved or the image has to be hosted on some `arm64` hoster but e.g. Google cloud run only supports `linux/amd64` witch is `x86-64`. -This solved we can use the API also to provide more dynamic (random) / tour of the day informations and also persist the used ones in postgresql db. +This solved, we could now use the API also to provide more dynamic (random) / tour of the day informations and also persist the used ones in postgresql db. Before building the backend copy the Tour_de.json to `/Resources`. (>100MB -> git lfs) ### Docker -The docker container can be build with: +The docker container can be build with: (inside folder `vapor_backend`) `docker compose build` or multi architecture: -`vapor_backend % docker buildx build --platform linux/amd64 --push -t eu.gcr.io/tourdata/tourdata .` +`docker buildx build --platform linux/amd64 --push -t eu.gcr.io/tourdata/tourdata .` [info](https://www.docker.com/blog/multi-platform-docker-builds/)