Commit 5e7dcd01 authored by Fawad Mirzad's avatar Fawad Mirzad
Browse files

Use the api provided in the options for loading maps

parent aa06b309
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -6,7 +6,8 @@

<script>
import { Loader } from "../utils/load-google-maps";
import { ref, provide } from "vue";
import { ref, provide, inject } from "vue";

export default {
  props: {
    center: {
@@ -35,8 +36,12 @@ export default {
  setup: function(props) {
    const mapContainer = ref(null);

    const apiKey = inject(
        "apiKey"
    );

    const mapsLoader = new Loader({
      apiKey: "",
      apiKey: apiKey,
      version: "weekly",
      libraries: [
        "places",