From 195a1e64d6eb540c08c001bd0c2b937915410b8d Mon Sep 17 00:00:00 2001 From: wlx Date: Sun, 23 Oct 2011 09:35:50 +0000 Subject: [PATCH] change api key to config.ini --- application/default/views/scripts/heihe/view.phtml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/application/default/views/scripts/heihe/view.phtml b/application/default/views/scripts/heihe/view.phtml index eb34395b..4ed61daf 100755 --- a/application/default/views/scripts/heihe/view.phtml +++ b/application/default/views/scripts/heihe/view.phtml @@ -10,10 +10,7 @@ $this->breadcrumb('数字黑河'); $this->breadcrumb('查看元数据'); $this->breadcrumb()->setSeparator(' > '); - //http://westdc.westgis.ac.cn - //$this->headScript()->appendFile('http://maps.google.com/maps?file=api&v=2&key=ABQIAAAACD-MqkkoOm60o_dvwdcKVhRBSKpgcP88GYi6r2Of16IkMX_4YhSBQsywCi4J2_fh4nBuWmK7gyRjLg'); - //$this->headScript()->appendFile('http://maps.google.com/maps?file=api&v=2&key=ABQIAAAACD-MqkkoOm60o_dvwdcKVhThiRESR0xRCe9JKd36EL3glTk0OxTsRzifkUWmTTrYWaE7dY1lYUlGxA'); - + $this->headScript()->appendFile('http://maps.google.com/maps?file=api&v=2&key='.$this->config->google->maps->api); $this->headScript()->appendFile('/js/prototype.js'); $this->headScript()->appendFile('/js/OpenLayers.js'); $this->headScript()->appendFile('/js/window.js'); @@ -148,8 +145,10 @@ endforeach;