-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
55e1e92
commit 75eb851
Showing
2 changed files
with
13 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ import { storeToRefs } from 'pinia' | |
import { useRoute } from 'vue-router' | ||
import { GoogleMap } from 'vue3-google-map' | ||
import { useMap } from '@/stores/map' | ||
import { detectLanguage } from '@/i18n/i18n-setup' | ||
import { i18n } from '@/i18n/i18n-setup' | ||
import { useInitialMapPosition } from '@/composables/useInitialMapPosition' | ||
import MapMarkers from '@/components/elements/MapMarkers.vue' | ||
|
@@ -42,7 +42,7 @@ const mapGestureBehaviour | |
|
||
<template> | ||
<GoogleMap | ||
ref="mapInstance" :language="detectLanguage()" disable-default-ui :gesture-handling="mapGestureBehaviour" :keyboard-shortcuts="false" | ||
ref="mapInstance" :language="i18n.locale" disable-default-ui :gesture-handling="mapGestureBehaviour" :keyboard-shortcuts="false" | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
Albermonte
Author
Member
|
||
class="w-full h-full" :styles="googleMapStyles" :max-zoom="21" :min-zoom="3" :restriction="restriction" :clickable-icons="false" | ||
@idle.once="setInitialMapPosition" | ||
> | ||
|
Did you check if this is reactive?
Meaning, if you change language, it changes the map names?