修复地图变黑的问题

This commit is contained in:
wlx 2012-04-26 00:17:40 +00:00
parent af8dea6734
commit e8d2da02eb
1 changed files with 2 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>
@ -29,10 +24,10 @@ window.onunload=GUnload();
</div>
<script type="text/javascript" charset="utf-8">
var tm;
$(window).bind("load", function() { var timeout = setTimeout(function() { initLoader(); }, 100);});
$(window).bind("load", function() { var timeout = setTimeout(function() { initLoader(); }, 10);});
//$(window).bind("load", function() { var timeout = setTimeout(function() { gmaploaded(); }, 1000);});
function loadMaps() {
google.load("maps", "2", {"callback" : tmloaded,"base_domain": "maps.google.com"});
google.load("maps", "2", {"callback" : tmloaded,"base_domain": "google.com"});
}
function initLoader() {