remove useless code in index

This commit is contained in:
jack 2018-06-23 17:28:05 +08:00
parent 81abafcf46
commit 125272cfe3
2 changed files with 10 additions and 4 deletions

View File

@ -13,7 +13,6 @@
<?= $this->headScript() ?> <?= $this->headScript() ?>
<?= $this->headLink() ?> <?= $this->headLink() ?>
<?= $this->headStyle() ?> <?= $this->headStyle() ?>
<link rel="shortcut icon" href="/favicon.ico"/> <link rel="shortcut icon" href="/favicon.ico"/>
<link rel="alternate" type="application/rss+xml" title="WestDC RSS Feed" href="/data/feed"/> <link rel="alternate" type="application/rss+xml" title="WestDC RSS Feed" href="/data/feed"/>
<!--[if lte IE 9]> <!--[if lte IE 9]>
@ -28,5 +27,4 @@
<?= $this->layout()->content ?> <?= $this->layout()->content ?>
<?= $this->render('sanji-footer.phtml') ?> <?= $this->render('sanji-footer.phtml') ?>
</body> </body>
<script>setPage();</script>
</html> </html>

View File

@ -1,5 +1,6 @@
var center = [10744901.632441472, 4296908.3669983465]; var center = [10744901.632441472, 4296908.3669983465];
var WESTDC_TILE_SERVER = 'http://210.77.68.221:27011'; var WESTDC_TILE_SERVER = 'http://210.77.68.221:27011';
var WESTDC_MAP_SERVER = "http://210.77.79.190:20015";
var view = new ol.View({ var view = new ol.View({
projection: 'EPSG:3857', projection: 'EPSG:3857',
@ -67,8 +68,15 @@ var layers = {
"boundChangjiang": { "boundChangjiang": {
title: "长江园区", title: "长江园区",
layer: new ol.layer.Tile({ layer: new ol.layer.Tile({
source: new ol.source.XYZ({ source: new ol.source.TileWMS({
url: WESTDC_TILE_SERVER + '/sjypark_changjiang/{z}/{x}/{y}' url: WESTDC_MAP_SERVER + '/geoserver/Antarctic/wms',
params: {'FORMAT': 'image/png',
'VERSION': '1.1.1',
tiled: true,
STYLES: '',
LAYERS: 'Antarctic:Seamask_medium_res_polygon',
tilesOrigin: -4524537.706531357 + "," + -4524537.706531357
}
}), }),
visible: true visible: true
}), }),