Skip to content

Commit 0150cdf

Browse files
authored
show globe on landing (#377)
1 parent f333905 commit 0150cdf

File tree

3 files changed

+22
-28
lines changed

3 files changed

+22
-28
lines changed

package-lock.json

Lines changed: 14 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"@igor.dvlpr/astro-post-excerpt": "^3.0.4",
2020
"astro": "^5.1.0",
2121
"bootstrap": "^5.3.3",
22-
"maplibre-gl": "^4.7.1",
22+
"maplibre-gl": "^5.0.0",
2323
"sass": "1.76.0",
2424
"solid-js": "^1.9.3"
2525
},

src/components/LandingPageMap.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const LandingPageMap = (props: any) => {
77
onMount(() => {
88
map = new Map({
99
container: "home-map",
10-
style: "https://demotiles.maplibre.org/style.json",
10+
style: "https://demotiles.maplibre.org/globe.json",
1111
center: [0, 0],
1212
zoom: 1,
1313
attributionControl: false,
@@ -20,7 +20,7 @@ export const LandingPageMap = (props: any) => {
2020
lng: -0.08411085041984734,
2121
lat: 7.115464377381386,
2222
Zoom: 1.3295073440521066,
23-
Duration: 0,
23+
Duration: 3000,
2424
Pause: 0,
2525
Rotation: 0,
2626
Pitch: 0,
@@ -29,7 +29,7 @@ export const LandingPageMap = (props: any) => {
2929
lng: 15.44385629163537,
3030
lat: 41.56277698075792,
3131
Zoom: 3.4916772106200415,
32-
Duration: 5000,
32+
Duration: 3000,
3333
Pause: 3000,
3434
Rotation: 0,
3535
Pitch: 0,
@@ -38,17 +38,17 @@ export const LandingPageMap = (props: any) => {
3838
lng: 5.388541216098361,
3939
lat: 45.57339756361293,
4040
Zoom: 2.15010124013107,
41-
Duration: 10000,
42-
Pause: 8000,
41+
Duration: 3000,
42+
Pause: 6000,
4343
Rotation: 0,
4444
Pitch: 0,
4545
},
4646
{
4747
lng: -0.08411085041984734,
4848
lat: 7.115464377381386,
4949
Zoom: 1.3295073440521066,
50-
Duration: 10000,
51-
Pause: 8000,
50+
Duration: 3000,
51+
Pause: 9000,
5252
Rotation: 0,
5353
Pitch: 0,
5454
},

0 commit comments

Comments
 (0)