Load marker library
authorCyperghost <olaf_schmitz_1@t-online.de>
Thu, 24 Oct 2024 10:56:39 +0000 (12:56 +0200)
committerCyperghost <olaf_schmitz_1@t-online.de>
Thu, 24 Oct 2024 10:56:39 +0000 (12:56 +0200)
ts/WoltLabSuite/Core/Component/GoogleMaps/woltlab-core-google-maps.ts
wcfsetup/install/files/js/WoltLabSuite/Core/Component/GoogleMaps/woltlab-core-google-maps.js

index a285db866c8549ffa6338426f48011c2bf2e3ab8..2108ebf2596aab6b0b13ec605997d099661f40f7 100644 (file)
@@ -18,7 +18,7 @@ const loadGoogleMaps = (apiKey: string): Promise<void> => {
     script.src =
       "https://maps.googleapis.com/maps/api/js?" +
       (apiKey ? `key=${apiKey}&` : "") +
-      "callback=woltlab_core_google_maps_callback";
+      "callback=woltlab_core_google_maps_callback&libraries=marker";
     document.head.appendChild(script);
     initCalled = true;
   }
index 1e57a774a5564a8650c1e945a115ea7190b18960..fbddf7c93074af85c441a8b4aa9c2eeb5a3a0032 100644 (file)
@@ -20,7 +20,7 @@ define(["require", "exports"], function (require, exports) {
             script.src =
                 "https://maps.googleapis.com/maps/api/js?" +
                     (apiKey ? `key=${apiKey}&` : "") +
-                    "callback=woltlab_core_google_maps_callback";
+                    "callback=woltlab_core_google_maps_callback&libraries=marker";
             document.head.appendChild(script);
             initCalled = true;
         }