From b6e4f41039a98e96eb6601ef320f75afd978e6c0 Mon Sep 17 00:00:00 2001 From: wlx Date: Fri, 18 Dec 2009 13:23:28 +0000 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=8F=98=E7=A9=BA=E9=97=B4=E5=AF=BC?= =?UTF-8?q?=E8=88=AA=E6=A8=A1=E5=BC=8F=EF=BC=8C=E5=8F=AF=E4=BB=A5=E5=BC=B9?= =?UTF-8?q?=E5=87=BA=E7=AA=97=E5=8F=A3=E6=98=BE=E7=A4=BAtitle=E5=92=8Cthum?= =?UTF-8?q?bnail?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../default/controllers/DataController.php | 6 ++- .../default/views/scripts/data/map.phtml | 47 ++++++++++++++----- 2 files changed, 39 insertions(+), 14 deletions(-) diff --git a/application/default/controllers/DataController.php b/application/default/controllers/DataController.php index bed75a44..63b4ec95 100755 --- a/application/default/controllers/DataController.php +++ b/application/default/controllers/DataController.php @@ -263,7 +263,7 @@ class DataController extends Zend_Controller_Action } /* * 时间浏览方式 - * todo:实现xml的缓存 + * todo:实现xml的缓存,基于时间的缓存(每天)?基于元数据修改的缓存,每次导入后都重新生成一次。 */ function timelineAction() { @@ -303,7 +303,7 @@ class DataController extends Zend_Controller_Action $id = (int)$this->_request->getParam('id'); $where=''; if (!empty($id)) { $where=' where id='.$id; } - $sql='select id,west,south,north,east,title from metadata'.$where; + $sql='select id,uuid,west,south,north,east,title from metadata'.$where; $state=$db->query($sql); $rows=$state->fetchAll(); $geomd=new GeoMetaData(); @@ -315,6 +315,8 @@ class DataController extends Zend_Controller_Action $feature=new Geofeature(); $feature->id=$row['id']; $feature->addProperties('title',$row['title']); + $feature->addProperties('uuid',$row['uuid']); + $feature->addProperties('id',$row['id']); $feature->geometry=$box; $geomd->addFeature($feature); } diff --git a/application/default/views/scripts/data/map.phtml b/application/default/views/scripts/data/map.phtml index 6317efe6..2c958130 100755 --- a/application/default/views/scripts/data/map.phtml +++ b/application/default/views/scripts/data/map.phtml @@ -12,15 +12,16 @@ $this->headScript()->appendFile('/js/OpenLayers.js'); $this->headLink()->appendStylesheet('/js/theme/default/style.css'); ?> - + +
partial('data/tools.phtml'); ?>
-
+