Skip to content

Commit

Permalink
map data v5 branch merge
Browse files Browse the repository at this point in the history
  • Loading branch information
iiiii7d committed Jul 26, 2024
1 parent cc34961 commit 01550d8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/update-warps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
permissions:
contents: write

env:
message: "update"

jobs:
update:
runs-on: ubuntu-latest
Expand All @@ -17,8 +20,9 @@ jobs:
with:
node-version: 18.4.0
- run: "node get-warp-data.js"
- run: |
git config --global user.name "github actions"
git config --global user.email "[email protected]"
- run: git commit -am "Warp update @ $(date +%Y%m%dT%H:%M:%S%Z)"
- run: git push
- run: echo "message=Warp update @ $(date +%Y%m%dT%H:%M:%S%Z)" >> "$GITHUB_ENV"
- uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
message: ${{ env.message }}
pull: '--rebase -Xtheirs'
2 changes: 1 addition & 1 deletion src/map/globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class Buttons {
.setPosition("topright")
.addTo(map);
const streetMap = L.tileLayer(
new URLSearchParams(window.location.search).has("v5") ? "https://raw.githubusercontent.com/MRT-Map/map-data/v5/tiles/{z}/{x}/{y}.webp" : "https://raw.githubusercontent.com/MRT-Map/map-data/main/tiles/{z}/{x}/{y}.webp",
"https://raw.githubusercontent.com/MRT-Map/map-data/main/tiles/{z}/{x}/{y}.webp",
{maxZoom: 9},
);
this.streetMap = L.easyButton(
Expand Down

0 comments on commit 01550d8

Please sign in to comment.