Skip to content

Commit 48358a0

Browse files
authored
Merge pull request #75 from MapGIS/dev
【website站点实例】【cesium-vue】【杨琨】【修改wmsLayer示例】
2 parents 5ec8a22 + 209e6c4 commit 48358a0

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

website/public/static/demo/vue-cesium/example/layer/image/arcgisMap.htm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
:layers="showlayers"
3333
:layer-style="layerStyle"
3434
:options="options"
35-
:tiling-scheme="tilingScheme">
35+
:srs="srs">
3636
</mapgis-3d-arcgis-map-layer>
3737
</mapgis-web-scene>
3838
</div>
@@ -52,7 +52,7 @@
5252
tileWidth:256,
5353
tileHeight:256,
5454
},
55-
tilingScheme:"EPSG:4326"
55+
srs:"EPSG:4326"
5656
};
5757
},
5858
methods: {

website/public/static/demo/vue-cesium/example/layer/image/wms.htm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<mapgis-3d-ogc-wms-layer
2626
:base-url="baseUrl"
2727
:layers="layers"
28-
:tiling-scheme="tilingScheme"
28+
:srs="srs"
2929
:layer-style="layerStyle"></mapgis-3d-ogc-wms-layer>
3030
</mapgis-web-scene>
3131
</div>
@@ -36,7 +36,7 @@
3636
return {
3737
baseUrl: 'http://develop.smaryun.com:6163/igs/rest/ogc/doc/北京市/WMSServer',
3838
layers: '北京市,绿地_1,绿地_2,绿地_3,绿地_4,水域_3,水域_2,水域_1,大学,学校,动物园,高尔夫,观光胜地,果园,住宅用地,医院,商业用地,建筑物,铁路_1,铁路_2,铁路_3,主干道,主干道,高速公路_1,高速公路_1_9-10,三级道路_链接,三级道路,二级道路_链接,二级道路,一级道路_链接,一级道路,主干道_链接,主干道,主干道,高速公路_链接,高速公路_2,高速公路_2,三级道路_链接,三级道路,二级道路_链接,二级道路,一级道路_链接,一级道路,地铁,主干道_链接,主干道,主干道,高速公路_链接,高速公路_2,高速公路_2,地铁站POI,山顶,果园poi,汽车站点POI,大学poi,学校poi,中小学POI,幼儿园POI,医院POI,口腔医院POI,派出所POI,检察院POI,银行POI,邮局POI,体育馆POI,纪念碑POI,博物馆POI,名胜古迹点,动物园poi,观光胜地poi,主题公园POI,宾馆POI,百货店POI,便利店POI,书店POI,快餐POI,咖啡馆POI,电影院POI,高尔夫poi,村庄点,市镇点,区县点,首都点',
39-
tilingScheme: 'EPSG:4326',
39+
srs: 'EPSG:4326',
4040
layerStyle: {
4141
zIndex: 1
4242
}

website/src/views/layout/components/Sidebar/SidebarDemo.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default {
7070
let se = key;
7171
return se;
7272
},
73-
handleOpen (key) {
73+
handleOpen (key,indexPath) {
7474
let href = window.location.href; // .split("/");
7575
let newHref = href.replace('/demo', '/gallery');
7676
const mapmode = this.$route.params.mapmode;
@@ -85,7 +85,7 @@ export default {
8585
match = `/gallery/${mapmode}`;
8686
matchIndex = newHref.indexOf(match);
8787
baseUrl = newHref.slice(0, matchIndex + match.length);
88-
window.location.href = baseUrl + `#${key}`;
88+
window.location.href = baseUrl + `#${indexPath[0]}` +`#${key}`;
8989
}
9090
} else {
9191
match = `/gallery/${mapmode}`;

0 commit comments

Comments
 (0)