diff --git a/application/default/controllers/WaterController.php b/application/default/controllers/WaterController.php index df1bfa41..fcb7c017 100644 --- a/application/default/controllers/WaterController.php +++ b/application/default/controllers/WaterController.php @@ -190,7 +190,7 @@ class WaterController extends DataController function timemapAction() { - $sql="select id,uuid,west,south,north,east,title,timebegin,timeend from metadata where source='0595169a-279e-4b95-819f-129d0ba4280d' and timebegin is not null"; + $sql="select id,uuid,west,south,north,east,title,timebegin,timeend from metadata where source='0595169a-279e-4b95-819f-129d0ba4280d' and timebegin is not null and timebegin::date>date('2007-01-01')"; $this->view->rows=$this->db->fetchAll($sql); } diff --git a/application/default/views/scripts/water/timemap.phtml b/application/default/views/scripts/water/timemap.phtml index 0b3b5da5..a0018bf0 100644 --- a/application/default/views/scripts/water/timemap.phtml +++ b/application/default/views/scripts/water/timemap.phtml @@ -10,6 +10,7 @@ $this->breadcrumb('黑河综合遥感联合试验'); $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('http://maps.google.com/maps?file=api&v=3&key=ABQIAAAACD-MqkkoOm60o_dvwdcKVhThiRESR0xRCe9JKd36EL3glTk0OxTsRzifkUWmTTrYWaE7dY1lYUlGxA'); $this->headScript()->appendFile('/js/timeline_var.js'); $this->headScript()->appendFile('/js/timeline_js/timeline-api.js'); $this->headScript()->appendFile('/js/timemap/timemap.js'); @@ -18,22 +19,22 @@ $this->headScript()->captureStart(); var tm; window.onload=function() { tm = TimeMap.init({ - mapId: "map", // Id of map div element (required) + mapId: "watermap", // Id of map div element (required) timelineId: "timeline", // Id of timeline div element (required) + scrollTo: "earliest", options: { - eventIconPath: "../images/" + eventIconPath: "../images/", + mapType:G_SATELLITE_MAP, + mapCenter: new GLatLng(39,100), }, datasets: [ { - id: "artists", - title: "Artists", + data:{ theme: "orange", // note that the lines below are now the preferred syntax type: "basic", - options: { - items: [ - rows as $row) : ?> + value: [ + rows as $row) : ?> { "start" : "", @@ -44,27 +45,31 @@ window.onload=function() { "lat" : , "lon" : }, - "title" : "", + "title" : "", "options" : { // set the full HTML for the info window - "infoHtml": ">
/>" - } + "infoHtml": ">
/>", + "theme":"orange" + } }, - - ] + + ] } } ], bandIntervals: [ - Timeline.DateTime.WEEK, - Timeline.DateTime.YEAR + Timeline.DateTime.DAY, + Timeline.DateTime.MONTH ] }); // manipulate the timemap further here if you like + var map=tm.map; + map.setCenter(new GLatLng(39,100),7); } window.onunload=GUnload(); headScript()->captureEnd(); ?>
-
-
-
+
+
+ + \ No newline at end of file diff --git a/application/default/views/scripts/water/view.phtml b/application/default/views/scripts/water/view.phtml index 76bd7123..e127cdab 100755 --- a/application/default/views/scripts/water/view.phtml +++ b/application/default/views/scripts/water/view.phtml @@ -9,6 +9,10 @@ $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('/js/prototype.js'); $this->headScript()->appendFile('/js/OpenLayers.js'); $this->headScript()->appendFile('/js/window.js'); @@ -102,7 +106,7 @@ else

位置图

-
+

联系信息

@@ -236,13 +240,8 @@ function reportError(request)
- - -