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'); ?>
-
+