summaryrefslogtreecommitdiff
path: root/ab_openstreetmap/views/templates.xml
diff options
context:
space:
mode:
authorIndoteknik . <it@fixcomart.co.id>2025-06-12 19:26:46 +0700
committerIndoteknik . <it@fixcomart.co.id>2025-06-12 19:26:46 +0700
commita921017a829ebef8442740fac964260d98566e6a (patch)
tree8954724c74fc7e5cfe6d9387b9113854863e6b82 /ab_openstreetmap/views/templates.xml
parent8ac5d556a6686c6b81d5e9178bff5d308e8f176f (diff)
(andri) try gmaps sebagai pengganti openstreetmaps
Diffstat (limited to 'ab_openstreetmap/views/templates.xml')
-rw-r--r--ab_openstreetmap/views/templates.xml24
1 files changed, 12 insertions, 12 deletions
diff --git a/ab_openstreetmap/views/templates.xml b/ab_openstreetmap/views/templates.xml
index ed82ae84..57357bda 100644
--- a/ab_openstreetmap/views/templates.xml
+++ b/ab_openstreetmap/views/templates.xml
@@ -1,13 +1,13 @@
<odoo>
- <data>
- <template id="assets_backend" inherit_id="web.assets_backend">
- <xpath expr="." position="inside">
- <link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css" integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A==" crossorigin=""/>
- <script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js" integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA==" crossorigin=""></script>
- <link rel="stylesheet" href="https://unpkg.com/leaflet-control-geocoder/dist/Control.Geocoder.css" />
- <script src="https://unpkg.com/leaflet-control-geocoder/dist/Control.Geocoder.js"></script>
- <script type="text/javascript" src="/ab_openstreetmap/static/src/js/openstreetmap_widget.js"/>
- </xpath>
- </template>
- </data>
-</odoo> \ No newline at end of file
+ <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 -->
+ <script type="text/javascript" src="/ab_openstreetmap/static/src/js/googlemap_widget.js"/>
+ </xpath>
+ </template>
+ </data>
+</odoo>