diff --git a/application/default/controllers/DataController.php b/application/default/controllers/DataController.php
index fbf4e877..b4f19921 100755
--- a/application/default/controllers/DataController.php
+++ b/application/default/controllers/DataController.php
@@ -2325,5 +2325,22 @@ order by m.title";
}
}
+ public function mapAction()
+ {
+ $uuid = $this->_request->getParam('uuid');
+ $sql="select d.*,m.title,m.description from datamap d left join normalmetadata m on d.uuid=m.uuid where d.status=1";
+ if (!empty($uuid) && \Helpers\Uuid::test($uuid) !== false)
+ {
+ $sql.=" and d.uuid='$uuid'";
+ $sth = $this->db->prepare($sql);
+ $rs = $sth->execute();
+ $this->view->map = $sth->fetch();
+ } else {
+ $sth = $this->db->prepare($sql);
+ $rs = $sth->execute();
+ view::addPaginator($sth->fetchAll(),$this,10);
+ $this->_helper->viewRenderer('map-list');
+ }
+ }
}
diff --git a/application/default/views/scripts/data/index.phtml b/application/default/views/scripts/data/index.phtml
index a2b9bb3d..33001e17 100755
--- a/application/default/views/scripts/data/index.phtml
+++ b/application/default/views/scripts/data/index.phtml
@@ -24,6 +24,7 @@ $this->headTitle()->setSeparator(' - ');
在线数据清单
离线数据清单
可视化数据
+在线地图数据
- 缩略图浏览
diff --git a/application/default/views/scripts/data/map-list.phtml b/application/default/views/scripts/data/map-list.phtml
new file mode 100644
index 00000000..8b287979
--- /dev/null
+++ b/application/default/views/scripts/data/map-list.phtml
@@ -0,0 +1,37 @@
+headTitle($this->config->title->site);
+$this->headTitle($this->config->title->data);
+$this->headTitle()->setSeparator(' - ');
+$this->headLink()->appendStylesheet('/css/metadata.css');
+$this->nav[] = array('link'=>"/data/map",'title'=>'在线地图数据列表');
+$this->theme->AppendPlus($this,'colorbox');
+?>
+
+ = $this->render('breadcrumbs.phtml') ?>
+ = $this->partial('data/tools.phtml'); ?>
+
+paginator)) : ?>
+
+paginator; ?>
+
+paginator as $md) : ?>
+
+
+
+
400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?>
+
地图查看
+
+
+paginator; ?>
+
+
+
diff --git a/application/default/views/scripts/data/map.phtml b/application/default/views/scripts/data/map.phtml
new file mode 100644
index 00000000..02994be6
--- /dev/null
+++ b/application/default/views/scripts/data/map.phtml
@@ -0,0 +1,262 @@
+headTitle($this->config->title->site);
+$this->headTitle('在线地图');
+$this->headTitle()->setSeparator(' - ');
+$this->headLink()->appendStylesheet('/js/lib/openlayers/ol.css');
+$this->headLink()->appendStylesheet('/css/map.css');
+$this->headScript()->appendFile('/js/lib/openlayers/ol.js');
+$this->headScript()->appendFile('/js/lib/openlayers/ol-layerswitcher.js');
+$this->nav[] = array(
+ 'link' => "/data/map",
+ 'title' => '在线地图'
+);
+?>
+= $this->render('breadcrumbs.phtml') ?>
+
+
\ No newline at end of file