问题标签 [drupal-gmap]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
825 浏览

google-maps - 如何在 drupal 6 中更新到 google map api 版本 3

在我的 drupal 站点中,我已经安装了 gmap 模块。但那是在版本 2.115 中。现在我收到一封来自谷歌的邮件,更新了谷歌 API 版本。我已经生成了 API 密钥版本 3。但不知道将它们实现到模块文件中。drupal_set_html_head('$query))) .'" type="text/javascript">');

这个我改成了 drupal_set_html_head('');

同样在 gmap.js obj.map = new GMap2(elem, obj.opts); 改为 obj.map = new google.maps.Map(elem, obj.opts);

但添加后,需要 Javascript 才能查看此地图。正在显示。请帮我