Skip to content

Commit

Permalink
First Draft of Offline Mapping Using PA Imagery
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNextTesla committed Mar 21, 2023
1 parent 8e80c07 commit 3f564a1
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 7 deletions.
9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,12 @@ services:
platform: "linux/amd64"
device_cgroup_rules:
- "c *:* rmw"
tileserver:
image: maptiler/tileserver-gl
volumes:
- "./maps:/data"
stdin_open: true # docker run -i
tty: true # docker run -t
command: ["-p", "80", "-c", "/data/conf.json"]
ports:
- "8080:80"
8 changes: 8 additions & 0 deletions maps/conf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"data": {
"v3": {
"mbtiles": "pa_campus_17-20.mbtiles"
}
}
}

Binary file added maps/pa_campus_17-20.mbtiles
Binary file not shown.
4 changes: 2 additions & 2 deletions setup_dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# Run to spin up docker containers and set aliases
docker compose down # kill all running containers
docker compose build
docker compose --env-file .env.dev up &
docker compose --env-file .env.dev up -d

sleep 0.5

echo "DEBUG: Buggy Docker Container Up!"
echo "Run docker_exec in order to go into the Docker container"
echo "Run docker_exec in order to go into the Docker container"
4 changes: 2 additions & 2 deletions setup_prod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# Run to spin up docker containers and set aliases
docker kill $(docker ps -q) # kill all running containers
docker compose build
docker compose --env-file .env.prod up &
docker compose --env-file .env.prod up -d

sleep 0.5

echo "DEBUG: Buggy Docker Container Up!"
echo "Run docker_exec in order to go into the Docker container"
echo "Run docker_exec in order to go into the Docker container"
7 changes: 4 additions & 3 deletions telematics_layout.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,16 @@
"lat": 40.43935344174364,
"lon": -79.94659781455995
},
"customTileUrl": "",
"customTileUrl": "http://192.168.1.217:8080/data/v3/{z}/{x}/{y}.png",
"disabledTopics": [],
"followTopic": "",
"layer": "map",
"topicColors": {
"/gnss1/fix": "#e34f4f",
"/gnss2/fix": "#4fd5e3"
},
"zoomLevel": 17
"zoomLevel": 17,
"maxNativeZoom": 20
},
"ImageViewPanel!3mnp456": {
"cameraTopic": "",
Expand Down Expand Up @@ -136,4 +137,4 @@
},
"splitPercentage": 24.83335061432977
}
}
}

0 comments on commit 3f564a1

Please sign in to comment.