summaryrefslogtreecommitdiff
path: root/ab_openstreetmap/views/templates.xml
diff options
context:
space:
mode:
authorIndoteknik . <it@fixcomart.co.id>2025-06-13 08:44:56 +0700
committerIndoteknik . <it@fixcomart.co.id>2025-06-13 08:44:56 +0700
commit34759639fa2db3b28bac410e24984775ce823ac5 (patch)
tree90a711275a44fa8c3682dcd192ed8fedefa0d710 /ab_openstreetmap/views/templates.xml
parenta921017a829ebef8442740fac964260d98566e6a (diff)
(andri) fix deprecated fungsi maps pada module custom
Diffstat (limited to 'ab_openstreetmap/views/templates.xml')
-rw-r--r--ab_openstreetmap/views/templates.xml8
1 files changed, 4 insertions, 4 deletions
diff --git a/ab_openstreetmap/views/templates.xml b/ab_openstreetmap/views/templates.xml
index 57357bda..bb5cb581 100644
--- a/ab_openstreetmap/views/templates.xml
+++ b/ab_openstreetmap/views/templates.xml
@@ -2,10 +2,10 @@
<data>
<template id="assets_backend" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
- <!-- Tambahkan Google Maps API Key -->
- <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB7bG9aSNAJnSrj0Z7f1abFsqKVoiJfsPE&amp;libraries=places" async="true" defer="true"/>
-
- <!-- Tambahkan JS Widget -->
+ <!-- GANTI dengan versi beta agar mendukung importLibrary (WAJIB untuk AdvancedMarkerElement) -->
+ <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB7bG9aSNAJnSrj0Z7f1abFsqKVoiJfsPE&amp;v=beta&amp;libraries=marker,maps" async="true" defer="true"/>
+
+ <!-- Tambahkan Google Maps Widget JS -->
<script type="text/javascript" src="/ab_openstreetmap/static/src/js/googlemap_widget.js"/>
</xpath>
</template>