mirror of
https://github.com/ArthurDanjou/artsite.git
synced 2026-01-19 10:22:16 +01:00
Implement mapbox and set variables in env
This commit is contained in:
@@ -23,6 +23,8 @@ function adjustZoom(amount: number) {
|
||||
const { t } = useI18n({
|
||||
useScope: 'local'
|
||||
})
|
||||
|
||||
const config = useRuntimeConfig()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -30,7 +32,8 @@ const { t } = useI18n({
|
||||
<div class="relative h-80 md:h-96 w-full">
|
||||
<MapboxMap
|
||||
:options="{
|
||||
style: isDark ? 'mapbox://styles/arthurdanjou/clyor1rad005y01pibypu165j' : 'mapbox://styles/arthurdanjou/clyorg3yl018r01pi6esv8ab8',
|
||||
accessToken: config.public.mapbox.accessToken,
|
||||
style: isDark ? config.public.mapbox.style.dark : config.public.mapbox.style.light,
|
||||
center: coordinates,
|
||||
zoom,
|
||||
projection: 'globe'
|
||||
|
||||
Reference in New Issue
Block a user