headTitle($this->config->title->site); $this->headTitle($this->config->title->data); $this->headTitle('时空导航'); $this->headTitle()->setSeparator(' - '); $this->headLink()->appendStylesheet('/css/metadata.css'); $this->breadcrumb('首页'); $this->breadcrumb(''.$this->config->title->data.''); $this->breadcrumb('时空导航'); $this->breadcrumb()->setSeparator(' > '); $this->headScript()->appendFile('http://maps.google.com/maps?file=api&v=2&key=ABQIAAAACD-MqkkoOm60o_dvwdcKVhRBSKpgcP88GYi6r2Of16IkMX_4YhSBQsywCi4J2_fh4nBuWmK7gyRjLg'); $this->headScript()->appendFile('/js/timeline_var.js'); $this->headScript()->appendFile('/js/timeline_js/timeline-api.js'); $this->headScript()->appendFile('/js/timemap/timemap.js'); $this->headScript()->captureStart(); ?> var tm; window.onload=function() { tm = TimeMap.init({ mapId: "map", // Id of map div element (required) timelineId: "timeline", // Id of timeline div element (required) options: { eventIconPath: "../images/" }, datasets: [ { id: "artists", title: "Artists", theme: "orange", // note that the lines below are now the preferred syntax type: "basic", options: { items: [ rows as $row) : ?> { "start" : "", "end" : "", "polygon" : [ { "lat" : , "lon" : },{ "lat" : , "lon" : },{ "lat" : , "lon" : },{ "lat" : , "lon" : },{ "lat" : , "lon" : } ], "title" : "", "options" : { // set the full HTML for the info window "infoHtml": ">