111
Showing
1 changed file
with
4 additions
and
2 deletions
1 | <template> | 1 | <template> |
2 | <div class="home"> | 2 | <div class="home"> |
3 | <div id="cesiumContainer" style="width: 1000px; height:600px"></div> | 3 | <div id="cesiumContainer" style="width:100%;height:100%;"></div> |
4 | </div> | 4 | </div> |
5 | </template> | 5 | </template> |
6 | <script> | 6 | <script> |
... | @@ -16,7 +16,9 @@ | ... | @@ -16,7 +16,9 @@ |
16 | }, | 16 | }, |
17 | mounted() { | 17 | mounted() { |
18 | Cesium.Ion.defaultAccessToken = this.config.mapToken; | 18 | Cesium.Ion.defaultAccessToken = this.config.mapToken; |
19 | var viewer = new Cesium.Viewer('cesiumContainer'); | 19 | var viewer = new Cesium.Viewer('cesiumContainer', { |
20 | fullscreenButton: true, | ||
21 | }); | ||
20 | }, | 22 | }, |
21 | methods: { | 23 | methods: { |
22 | 24 | ... | ... |
-
Please register or sign in to post a comment