File tree 2 files changed +5
-10
lines changed
2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -20,16 +20,11 @@ import PlayButton from "@/components/ui/PlayButton";
20
20
21
21
import { usePausableAnimation } from "@/components/ui/utils" ;
22
22
23
+ import { INITIAL_VIEW_STATE } from "./App" ;
24
+
23
25
import "maplibre-gl/dist/maplibre-gl.css" ;
24
26
import "./App.css" ;
25
27
26
- const INITIAL_VIEW_STATE = {
27
- latitude : 51.47 ,
28
- longitude : 0.45 ,
29
- zoom : 0 ,
30
- maxZoom : 1 ,
31
- } ;
32
-
33
28
const MAP_STYLE =
34
29
"https://basemaps.cartocdn.com/gl/positron-gl-style/style.json" ;
35
30
@@ -153,8 +148,8 @@ function App() {
153
148
// maxCacheByteSize: null,
154
149
// maxCacheSize: null,
155
150
// maxRequests: 6,
156
- // maxZoom: 19 ,
157
- // minZoom: 0 ,
151
+ maxZoom : zarrReader . maxZoom ,
152
+ minZoom : zarrReader . minZoom ,
158
153
// onTileError: null,
159
154
// onTileLoad: null,
160
155
// onTileUnload: null,
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import CheckBox from "@/components/ui/Checkbox";
18
18
import "maplibre-gl/dist/maplibre-gl.css" ;
19
19
import "./App.css" ;
20
20
21
- const INITIAL_VIEW_STATE = {
21
+ export const INITIAL_VIEW_STATE = {
22
22
latitude : 51.47 ,
23
23
longitude : 0.45 ,
24
24
zoom : 0 ,
You can’t perform that action at this time.
0 commit comments