Skip to content

Commit

Permalink
fix: dynamic loading of google maps
Browse files Browse the repository at this point in the history
  • Loading branch information
raaymax committed Mar 5, 2024
1 parent 65f3c71 commit 8094175
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/core_components/embed/CoreGoogleMaps.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ export default {
<script setup lang="ts">
import { Ref, inject, ref, onMounted, watch, computed } from "vue";
import injectionKeys from "../../injectionKeys";
import { Loader } from "@googlemaps/js-api-loader";
const rootEl: Ref<HTMLElement> = ref(null);
const mapEl: Ref<HTMLElement> = ref(null);
Expand All @@ -105,6 +104,7 @@ const mapType = computed(() =>
const initMap = async () => {
clearMarkers();
const { Loader } = await import("@googlemaps/js-api-loader");
const loader = new Loader({
apiKey: fields.apiKey.value,
version: "weekly",
Expand Down

0 comments on commit 8094175

Please sign in to comment.