change maps google to google.cn

This commit is contained in:
wlx 2012-04-26 17:30:17 +00:00
parent b0fc6fa531
commit f9e45b9542
2 changed files with 3 additions and 7 deletions

View File

@ -17,11 +17,6 @@ $this->headScript()->appendFile('/js/timemap.2.0.1/timemap.pack.js');
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
$this->headLink()->appendStylesheet('/css/colorbox.css');
?>
var tm;
window.onload=function() {
window.onunload=GUnload();
<?php $this->headScript()->captureEnd(); ?>
<div id='tools'><?= $this->partial('data/tools.phtml'); ?></div>
<div id="timemap" style="clear:both;">
<div id="timeline" style="height:300px;width:100%;"></div>
@ -46,7 +41,8 @@ function tmloaded() {
mapId: "map", // Id of map div element (required)
timelineId: "timeline", // Id of timeline div element (required)
options: {
eventIconPath: "../images/"
eventIconPath: "../images/",
mapType:G_NORMAL_MAP
},
datasets: [
{

View File

@ -347,7 +347,7 @@ function loadMaps() {
function initLoader() {
var script = document.createElement("script");
script.src = "https://www.google.com/jsapi?key=<?php echo $this->config->google->maps->api; ?>&callback=loadMaps";
script.src = "http://www.google.cn/jsapi?key=<?php echo $this->config->google->maps->api; ?>&callback=loadMaps";
script.type = "text/javascript";
document.getElementsByTagName("head")[0].appendChild(script);
}