webgl_rxdz.html 1.4 KB

12345678910111213141516171819202122
  1. <div class="map" style="position: absolute;width: 100%;height: 100vh;z-index: 1;">
  2. <mynavbar :barData='navbar'/>
  3. <!-- 提交按钮 -->
  4. <div class="submit-btn" @click="submitHouse" v-if="styleType==1">提交</div>
  5. <div id="mapDiv" ref="webgl"></div>
  6. <canvas id="glcanvas" width="100vw" height="100vh" ref="glcanvas"
  7. :style="{'height':canvasHeight+'px'}">
  8. 你的浏览器似乎不支持或者禁用了 HTML5 <code>&lt;canvas&gt;</code> 元素。
  9. </canvas>
  10. <!-- 主要操作视图 -->
  11. <viewShell pageType="1" :overChange="overChange" :houseList="houseList" :houseObj="curHouseObj" :curHouseType="curHouseType" @curSpaceChange="curSpaceChange" @curHouseTypeChange="curHouseTypeChange" @curHouseFloorChange="curHouseFloorChange"></viewShell>
  12. <div v-show="showLables && gltf.text.length>0" v-for="(gltf,index) in lableItem" :key="index" class="word-view"
  13. :style="{'transform':gltf.transform}" @click="goRoam(gltf)">
  14. <div v-if="styleType==2" user-select="false" :class="['number-view ',(index+1)>9?'number-more':'',currentChangeSpaceId==gltf.spaceId?' active':'']">{{gltf.spaceIndex+1}}</div>
  15. <div v-else user-select="false" class="word" :class="currentChangeSpaceId==gltf.spaceId?'active':''">{{gltf.text}}></div>
  16. </div>
  17. <!-- <div id="labels"></div> -->
  18. <!-- 左侧操作区域 -->
  19. <!-- <left-operate-comp @operateHandle="operateHandle"></left-operate-comp> -->
  20. </div>