Skip to content

Commit

Permalink
fix: v2.0 can not zoom (#492)
Browse files Browse the repository at this point in the history
* This commit do these things,
cause react update to 18 there is a serious bug for
react-map-gl, so we deside to update it to v7.
for v7 there's a lot of break change, we fix them as follows:
- bring mapbox css to the file.
- change the api that break
- add two packages in it to fit the change
- change viewport name to viewState to fit the api change

* fix: git ignore

* style:
* line blur to smooth
* mapStyle using dark-v10 to solve the language problem
* FullscreenButton style fix

---------

Co-authored-by: ben_29 <[email protected]>
  • Loading branch information
yihong0618 and ben-29 authored Sep 17, 2023
1 parent 9ca343b commit 3a089e3
Show file tree
Hide file tree
Showing 11 changed files with 893 additions and 144 deletions.
1 change: 1 addition & 0 deletions .vercelignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
requirements.txt
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-helmet-async": "^1.3.0",
"react-map-gl": "^5.1.22",
"react-map-gl": "^7.1.6",
"react-router-dom": "^6.15.0",
"sass": "^1.52.3",
"sass-mq": "^6.0.0",
"tachyons": "^4.12.0",
"tachyons-sass": "git+https://github.com/tachyons-css/tachyons-sass.git",
"viewport-mercator-project": "^7.0.4",
"vite": "^4.3.9",
"vite-plugin-svgr": "^3.2.0",
"vite-tsconfig-paths": "^4.2.0"
Expand Down
Loading

0 comments on commit 3a089e3

Please sign in to comment.