Download and copy the desired .mbtiles
in the ./src/map
folder
cd src/map
docker run -it -v $(pwd):/data -p 8080:8080 maptiler/tileserver-gl:v4.6.6 --verbose
You can access localhost:8080 to see if the map was loaded correctly
cd src
cp template.env .env
# modify OPENAI_API_KEY with your OPENAI_API_KEY
Modify .env
with the initial position to be loaded
# MADRID -> 41.65606, -0.87734
# NAPLES -> 40.85216, 14.26811
INITIAL_LATITUDE=40.85216
INITIAL_LONGITUDE=14.26811
INITIAL_ZOOM=10
cd src
npm install
npm run build
cd src
docker compose up -d
cd src/data
./generated_provision_{city}.sh # city you loaded the map
Open index.html and start playing...