【问题标题】:Comprehensive google map plugin for wordpress not workingwordpress 的综合谷歌地图插件不起作用
【发布时间】:2014-01-13 13:07:17
【问题描述】:

我正在使用 Wordpress 3.8 并使用全面的谷歌地图插件 9.0.19,但它没有在链接页面上显示地图。它只是在控制台中显示错误:

ReferenceError: CGMPGlobal is not defined
[Break On This Error]   

<script type='text/javascript'>CGMPGlobal.language = 'en';</script>

请帮帮我 那怎么办! 谢谢!

【问题讨论】:

    标签: javascript php plugins wordpress


    【解决方案1】:

    您需要一个新密钥:https://developers.google.com/maps/documentation/javascript/tutorial#api_key

    然后您应该使用您的密钥加载 Google 地图:

    <script type="text/javascript"
          src="https://maps.googleapis.com/maps/api/js?key=API_KEY&sensor=SET_TO_TRUE_OR_FALSE">
    </script>
    

    【讨论】:

    • 我必须把生成的 API 密钥放在哪里,我现在很困惑,请把我从这个问题中解救出来。现在我有新的 API 密钥,但有点困惑我把这个密钥放在哪里。跨度>
    猜你喜欢
    • 1970-01-01
    • 2016-12-17
    • 2014-06-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多