我怎么能在joomla中添加api谷歌地图键太cm团购组件 [英] How I can add api Google map key too cm group buying component in joomla

查看:132
本文介绍了我怎么能在joomla中添加api谷歌地图键太cm团购组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在localhost中有一个joomla网站

在这个网站我用的是cmgroupbuying组件

但是这个不显示地图

那是什么api谷歌键,我不知道怎么也添加api google key intoo

请帮帮我



< b>我尝试了什么:



我将我的api密钥复制到文件中

< script type =text / javascriptsrc =http://maps.googleapis.com/maps/api/js?key=AIzaSyB4lkyWjGnEX85HvYtEoMe423kXx77HC1o&sensor=true>< / script>

解决方案

转到cmGroupBuying 配置>一般并将谷歌API密钥添加到他的领域。



你可能会遇到问题。解决这个问题必须走这条道路:

public_html / components / com_cmgroupbuying / layouts / dailydeal_groupon / dealmap.php

并将其添加到顶部下面的定义的文档('_ JEXEC')或死;

  


配置 =


this-> configuration;



和编辑这在第20行:

< script type =   text / javascript src =   // maps.googleapis.com/maps/api/js? sensor = false>< / script> 



到此:

< ; script type =   text / javascript src =    // maps.googleapis.com/maps/api/js?key=<?php echo 

i have a joomla web site in localhost
in this website i used from cmgroupbuying component
But this dont show map
thats nead api google key and i don know how too add api google key intoo that
please help me

What I have tried:

I Copy my api key into files
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=AIzaSyB4lkyWjGnEX85HvYtEoMe423kXx77HC1o&sensor=true"></script>

解决方案

go to cmGroupBuying configuration > general and add google API Key to his field.

you may have problem whit Deal Map menu. for solving this must go to this path :
public_html/components/com_cmgroupbuying/layouts/dailydeal_groupon/dealmap.php
and add this in top of doc in below of defined('_JEXEC') or die; :


configuration =


this->configuration;


and than edit this in line 20 :

<script type="text/javascript" src="//maps.googleapis.com/maps/api/js?sensor=false"></script>


to this :

<script type="text/javascript" src="//maps.googleapis.com/maps/api/js?key=<?php echo


这篇关于我怎么能在joomla中添加api谷歌地图键太cm团购组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆