本文介绍了我怎么能在joomla中添加api谷歌地图键太cm团购组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我在localhost中有一个joomla网站 在这个网站我用的是cmgroupbuying组件 但是这个不显示地图 那是什么api谷歌键,我不知道怎么也添加api google key intoo 请帮帮我 我尝试了什么: 我将我的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 localhostin this website i used from cmgroupbuying componentBut this dont show mapthats nead api google key and i don know how too add api google key intoo thatplease help meWhat 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.phpand 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团购组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-11 13:57