首次提交
| 
						 | 
					@ -0,0 +1,81 @@
 | 
				
			||||||
 | 
					# BIM 组件
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## 工作
 | 
				
			||||||
 | 
					[√] cesium 包装
 | 
				
			||||||
 | 
					[√] 自定义绘制面
 | 
				
			||||||
 | 
					[√] 自定义customInfobox
 | 
				
			||||||
 | 
					[√] 自定义popup
 | 
				
			||||||
 | 
					[X] 量算内容添加
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# 使用步骤
 | 
				
			||||||
 | 
					需要将 cesium 地址装配到项目后使用
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## step1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					拷贝目录下的 cesium 到 public
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## step2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					> 全局引用
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```javascript
 | 
				
			||||||
 | 
					Vue.use(install, {
 | 
				
			||||||
 | 
					  cesiumPath: '/Cesium',
 | 
				
			||||||
 | 
					});
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					> 单独引用
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```javascript
 | 
				
			||||||
 | 
					import { Bim } from 'bimland';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					<Bim  cesiumPath="/Cesium" :scene-infos="sceneInfos" :key="sceneInfos.length" @pick="pickHandle" @action="actionHandle" tianditu
 | 
				
			||||||
 | 
					      tianditu-token="4a00a1dc5387b8ed8adba3374bd87e5e" :polygonsSource="polygonsSource" @polygon="polygonHandle"
 | 
				
			||||||
 | 
					      ref="bim"/>
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					配置样式
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```scss
 | 
				
			||||||
 | 
					--color: #b5bfca;
 | 
				
			||||||
 | 
					--background-color: #070a41;
 | 
				
			||||||
 | 
					--headerHeight: 50px;
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### 属性
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					> scene-infos 默认值 []
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					| 字段           | 备注             | 必须 |
 | 
				
			||||||
 | 
					| -------------- | ---------------- | ---- |
 | 
				
			||||||
 | 
					| `dataUrl`      | 数据服务地址     |
 | 
				
			||||||
 | 
					| `id`           | 唯一 id          |
 | 
				
			||||||
 | 
					| `layerUrl`     | 场景图层服务地址 | √    |
 | 
				
			||||||
 | 
					| `name`         | 名称             |
 | 
				
			||||||
 | 
					| `workEffortId` | 项目 id          |
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					> polygonsSource 默认值 []
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					| 字段        | 备注                    | 必须 |
 | 
				
			||||||
 | 
					| ----------- | ----------------------- | ---- |
 | 
				
			||||||
 | 
					| `positions` | 标点信息                | √    |
 | 
				
			||||||
 | 
					| `color`     | 颜色                    | √    |
 | 
				
			||||||
 | 
					| `data`      | 其他数据 再@pick 中返回 |
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					> bim-tianditu 天地图 默认值 true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					布尔值
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					> bim-tianditu-token 默认值 4a00a1dc5387b8ed8adba3374bd87e5e
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					字符串
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### ref 内容
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					> draw({color:'rgba()',data:any}) 绘制一个覆盖内容
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					> cancelDraw() 取消绘制
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					> addPolygon() 添加一个覆盖绘制内容
 | 
				
			||||||
| 
		 After Width: | Height: | Size: 18 KiB  | 
| 
		 After Width: | Height: | Size: 4.1 KiB  | 
| 
		 After Width: | Height: | Size: 7.5 KiB  | 
| 
		 After Width: | Height: | Size: 5.9 KiB  | 
| 
		 After Width: | Height: | Size: 8.6 KiB  | 
| 
		 After Width: | Height: | Size: 203 KiB  | 
| 
		 After Width: | Height: | Size: 111 KiB  | 
| 
		 After Width: | Height: | Size: 191 KiB  | 
| 
		 After Width: | Height: | Size: 12 KiB  | 
| 
		 After Width: | Height: | Size: 14 KiB  | 
| 
		 After Width: | Height: | Size: 7.1 KiB  | 
| 
		 After Width: | Height: | Size: 11 KiB  | 
| 
		 After Width: | Height: | Size: 10 KiB  | 
| 
		 After Width: | Height: | Size: 13 KiB  | 
| 
		 After Width: | Height: | Size: 9.4 KiB  | 
| 
		 After Width: | Height: | Size: 15 KiB  | 
| 
		 After Width: | Height: | Size: 10 KiB  | 
| 
		 After Width: | Height: | Size: 13 KiB  | 
| 
		 After Width: | Height: | Size: 8.0 KiB  | 
| 
		 After Width: | Height: | Size: 9.1 KiB  | 
| 
		 After Width: | Height: | Size: 7.7 KiB  | 
| 
		 After Width: | Height: | Size: 10 KiB  | 
| 
		 After Width: | Height: | Size: 7.7 KiB  | 
| 
		 After Width: | Height: | Size: 6.7 KiB  | 
| 
		 After Width: | Height: | Size: 11 KiB  | 
| 
		 After Width: | Height: | Size: 16 KiB  | 
| 
		 After Width: | Height: | Size: 10 KiB  | 
| 
		 After Width: | Height: | Size: 12 KiB  | 
| 
		 After Width: | Height: | Size: 12 KiB  | 
| 
		 After Width: | Height: | Size: 15 KiB  | 
| 
		 After Width: | Height: | Size: 9.3 KiB  | 
| 
		 After Width: | Height: | Size: 10 KiB  | 
| 
		 After Width: | Height: | Size: 11 KiB  | 
| 
		 After Width: | Height: | Size: 10 KiB  | 
| 
		 After Width: | Height: | Size: 8.3 KiB  | 
| 
		 After Width: | Height: | Size: 12 KiB  | 
| 
		 After Width: | Height: | Size: 16 KiB  | 
| 
		 After Width: | Height: | Size: 12 KiB  | 
| 
		 After Width: | Height: | Size: 7.4 KiB  | 
| 
		 After Width: | Height: | Size: 10 KiB  | 
| 
		 After Width: | Height: | Size: 16 KiB  | 
| 
		 After Width: | Height: | Size: 12 KiB  | 
| 
		 After Width: | Height: | Size: 6.5 KiB  | 
| 
		 After Width: | Height: | Size: 11 KiB  | 
| 
		 After Width: | Height: | Size: 16 KiB  | 
| 
		 After Width: | Height: | Size: 12 KiB  | 
| 
		 After Width: | Height: | Size: 8.8 KiB  | 
| 
		 After Width: | Height: | Size: 13 KiB  | 
| 
		 After Width: | Height: | Size: 11 KiB  | 
| 
		 After Width: | Height: | Size: 12 KiB  | 
| 
						 | 
					@ -0,0 +1,14 @@
 | 
				
			||||||
 | 
					<?xml version="1.0" encoding="utf-8"?>
 | 
				
			||||||
 | 
					    <TileMap version="1.0.0" tilemapservice="http://tms.osgeo.org/1.0.0">
 | 
				
			||||||
 | 
					      <Title>NE2_HR_LC_SR_W_DR_recolored.tif</Title>
 | 
				
			||||||
 | 
					      <Abstract></Abstract>
 | 
				
			||||||
 | 
					      <SRS>EPSG:4326</SRS>
 | 
				
			||||||
 | 
					      <BoundingBox miny="-90.00000000000000" minx="-180.00000000000000" maxy="90.00000000000000" maxx="180.00000000000000"/>
 | 
				
			||||||
 | 
					      <Origin y="-90.00000000000000" x="-180.00000000000000"/>
 | 
				
			||||||
 | 
					      <TileFormat width="256" height="256" mime-type="image/jpg" extension="jpg"/>
 | 
				
			||||||
 | 
					      <TileSets profile="geodetic">
 | 
				
			||||||
 | 
					        <TileSet href="0" units-per-pixel="0.70312500000000" order="0"/>
 | 
				
			||||||
 | 
					        <TileSet href="1" units-per-pixel="0.35156250000000" order="1"/>
 | 
				
			||||||
 | 
					        <TileSet href="2" units-per-pixel="0.17578125000000" order="2"/>
 | 
				
			||||||
 | 
					      </TileSets>
 | 
				
			||||||
 | 
					    </TileMap>
 | 
				
			||||||
| 
		 After Width: | Height: | Size: 6.5 KiB  | 
| 
		 After Width: | Height: | Size: 131 KiB  | 
| 
		 After Width: | Height: | Size: 164 KiB  | 
| 
		 After Width: | Height: | Size: 179 KiB  | 
| 
		 After Width: | Height: | Size: 135 KiB  | 
| 
		 After Width: | Height: | Size: 165 KiB  | 
| 
		 After Width: | Height: | Size: 165 KiB  | 
| 
		 After Width: | Height: | Size: 18 KiB  | 
| 
		 After Width: | Height: | Size: 15 KiB  | 
| 
		 After Width: | Height: | Size: 414 KiB  | 
| 
		 After Width: | Height: | Size: 526 KiB  | 
| 
		 After Width: | Height: | Size: 258 KiB  | 
| 
		 After Width: | Height: | Size: 725 KiB  | 
| 
		 After Width: | Height: | Size: 1.2 KiB  | 
| 
		 After Width: | Height: | Size: 1.5 KiB  | 
| 
		 After Width: | Height: | Size: 1.3 KiB  | 
| 
		 After Width: | Height: | Size: 2.5 KiB  | 
| 
		 After Width: | Height: | Size: 3.1 KiB  |