Region and Language
Use the region and language options to localize your map.
For more information
- Go to the language tutorial.
- Check the supported languages.
- Visit the region localization.
main.ts
import { createGmapVuePlugin } from "@gmap-vue/v3";
import "@gmap-vue/v3/dist/style.css";
import { createApp } from "vue";
import App from "./App.vue";
import "./style.css";
createApp(App)
.use(
createGmapVuePlugin({
load: {
key: import.meta.env.VITE_GOOGLE_MAPS_API_KEY,
region: "VI",
language: "vi",
},
}),
)
.mount("#app");
warning
The API key is still bundled into browser code. Restrict it by HTTP referrer and enable only the APIs your application needs.