| | |
| | | <template> |
| | | <div class="map-container" ref="mapContainer"> |
| | | |
| | | <div class="map-container" > |
| | | <canvas class="world" ref="worldContainer"></canvas> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import World from './world/world'; |
| | | import Experience from './experience/index'; |
| | | let world = null; |
| | | export default { |
| | | name: 'ScreenMapThree', |
| | | mounted() { |
| | | world = new World(this.$refs.mapContainer); |
| | | world = new Experience(this.$refs.worldContainer); |
| | | } |
| | | } |
| | | </script> |
| | |
| | | .map-container { |
| | | width: 100%; |
| | | height: 100%; |
| | | position: absolute; |
| | | left: 0; |
| | | top: 0; |
| | | z-index: 0; |
| | | .world { |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | } |
| | | </style> |