简体   繁体   English

Drupal 7 Gmap模块-javascript错误“需要Javascript才能查看此地图。”

[英]Drupal 7 Gmap module - javascript error “Javascript is required to view this map.”

I am using GMap module in Drupal 7. I have generated the macro code, pasted into contact page, added macro filtering to Filtered HTML text format. 我在Drupal 7中使用GMap模块。我已经生成了宏代码,粘贴到联系人页面中,并向“已过滤HTML”文本格式添加了宏过滤功能。 It has worked correctly for about 3-4 hours and then suddenly stopped displaying google map. 它已经正常运行了大约3-4个小时,然后突然停止显示google map。 Instead of map I see the message "Javascript is required to view this map.". 而不是地图,我看到消息“需要Javascript才能查看此地图。”。 Google maps is displayed correctly on Gmap configuration page. Google地图在Gmap配置页上正确显示。 It does not display on the page where I added it as macro. 它不会显示在我将其添加为宏的页面上。 All necessary js files seem to be loaded. 所有必需的js文件似乎都已加载。 Any ideas? 有任何想法吗?

Have you created API key for rendering Google map? 您是否创建了用于渲染Google地图的API密钥? This error usually occurs because of incorrect API key. 通常由于错误的API密钥而发生此错误。 Try to edit the existing one or create a new API browser key in https://code.google.com/apis/console/ 尝试在https://code.google.com/apis/console/中编辑现有的浏览器或创建新的API浏览器密钥。

sitename.com 
sitename.com/* 
www.sitename.com 
www.sitename.com/* 
*.sitename.com 
*.sitename.com/*

Hope this helps.. 希望这可以帮助..

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM