Skip to content

Commit

Permalink
initially open menu in locales example
Browse files Browse the repository at this point in the history
  • Loading branch information
warm-coolguy committed Jan 31, 2024
1 parent d5faaad commit 7cdf492
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pages/examples/locales.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@
.addEventListener('change', (event) => {
const target = event.target
const { value } = target
console.warn(mapClient)
mapClient.$i18next.changeLanguage(value).then(() => {
target[0].innerHTML = value === 'en' ? 'English' : 'Englisch'
target[1].innerHTML = value === 'en' ? 'German' : 'Deutsch'
Expand All @@ -145,7 +144,9 @@
target[0].innerHTML = value === 'en' ? 'English' : 'Englisch'
target[1].innerHTML = value === 'en' ? 'German' : 'Deutsch'
})`)
}

mapClient.$store.dispatch('plugin/iconMenu/openMenuById', 'layerChooser')
}
})
</script>
</html>

0 comments on commit 7cdf492

Please sign in to comment.