This app is used to overlay swisstopo aerial imagery with the SITN basemap.
The base URL requires three parameters:
url: the orthophoto URL as provided in the swisstopo metadata (see links on that page: https://www.swisstopo.admin.ch/fr/imagesaerienne-en-telechargement-20241120)east: the east coordinate of the image centernorth: the north coordinate of the image center
Hence, the called URL would be something like:
- Docker: http://localhost:5024/?east=2559158.53&north=1203713.73&url=https://data.geo.admin.ch/ch.swisstopo.lubis-luftbilder_schwarzweiss/lubis-luftbilder_schwarzweiss_000-321-260/lubis-luftbilder_schwarzweiss_000-321-260_op_2056.tif
- Dev mode: http://localhost:5173/?east=2559158.53&north=1203713.73&url=https://data.geo.admin.ch/ch.swisstopo.lubis-luftbilder_schwarzweiss/lubis-luftbilder_schwarzweiss_000-321-260/lubis-luftbilder_schwarzweiss_000-321-260_op_2056.tif
Start a terminal (e.g. Windows PowerShell) and navigate to the project directory:
cd sitn-luftbilderCopy the sample environment file and rename it to .env:
cp .env.sample .envNote: the environment variables are prefixed with VITE_ as required by Vite for client-side usage. Modify them if needed.
Install using npm:
npm installBuild the app with:
npm run buildRun the app locally (on localhost) with:
npm startTo just build locally:
cp .env.sample .env
docker compose buildTo build and run locally:
docker compose up -d --buildTo build and run on remote server:
Set the DOCKER_HOST environment variable and launch the build/run:
docker compose build
docker compose push
$env:DOCKER_HOST="<PATH_TO_REMOTE_HOST>"
docker compose pull
docker compose up -d