summaryrefslogtreecommitdiff
path: root/ab_openstreetmap
diff options
context:
space:
mode:
Diffstat (limited to 'ab_openstreetmap')
-rw-r--r--ab_openstreetmap/static/src/js/googlemap_widget.js25
1 files changed, 14 insertions, 11 deletions
diff --git a/ab_openstreetmap/static/src/js/googlemap_widget.js b/ab_openstreetmap/static/src/js/googlemap_widget.js
index e13fac61..cdbd376c 100644
--- a/ab_openstreetmap/static/src/js/googlemap_widget.js
+++ b/ab_openstreetmap/static/src/js/googlemap_widget.js
@@ -23,17 +23,20 @@ odoo.define("ab_openstreetmap.googlemap_widget", function (require) {
},
async _loadGoogle() {
- const apiKey = await rpc.query({
- model: "ir.config_parameter",
- method: "get_param",
- args: ["google.maps.api_key"],
- });
- const mapId = await rpc.query({
- model: "ir.config_parameter",
- method: "get_param",
- args: ["google.maps.map_id"],
- });
-
+ // const apiKey = await rpc.query({
+ // model: "ir.config_parameter",
+ // method: "get_param",
+ // args: ["google.maps.api_key"],
+ // });
+ // const mapId = await rpc.query({
+ // model: "ir.config_parameter",
+ // method: "get_param",
+ // args: ["google.maps.map_id"],
+ // });
+
+ const apiKey = "AIzaSyD1b2e4g3f8a9c5d6e7f8g9h0i1j2k3l4m"; // Ganti dengan API Key Anda
+ const mapId = "1af072c8d80a2adec8057f34";
+ // Ganti dengan Map ID Anda
if (!window.google || !window.google.maps) {
const script = document.createElement("script");
script.src = `https://maps.googleapis.com/maps/api/js?key=${apiKey}&v=weekly&libraries=places,marker`;