@aibee/crc-bmap 0.8.36 → 0.8.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/bmap.cjs.min.js +8 -8
- package/lib/bmap.esm.js +19 -19
- package/lib/bmap.esm.min.js +6 -6
- package/lib/bmap.min.js +8 -8
- package/lib/src/plugins/mul-floors/mul-floors.js +4 -3
- package/lib/src/utils/road2.js +0 -1
- package/package.json +1 -1
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { Plugin } from "../base";
|
|
2
2
|
import { PoiLayer2 } from "../../layer";
|
|
3
|
-
import { Group, Box3 } from "three";
|
|
3
|
+
import { Group, Box3, Vector3 } from "three";
|
|
4
4
|
export class MulFloors extends Plugin {
|
|
5
5
|
show(floors) {
|
|
6
|
-
let height =
|
|
6
|
+
let height = 0;
|
|
7
7
|
floors.forEach((floor)=>{
|
|
8
8
|
floor.poiLayer2.pois.forEach((poi)=>{
|
|
9
|
-
|
|
9
|
+
const z = new Vector3().setFromMatrixPosition(poi.matrixWorld).z;
|
|
10
|
+
poi.position.setZ(z + height);
|
|
10
11
|
poi.options.depth_test = true;
|
|
11
12
|
this.poiLayer.pushPoi(poi);
|
|
12
13
|
});
|
package/lib/src/utils/road2.js
CHANGED
|
@@ -197,7 +197,6 @@ export class RoadNetwork2 {
|
|
|
197
197
|
}
|
|
198
198
|
// 正寻的车位线是不标注方向的,默认都是双向通行
|
|
199
199
|
if ((fromPoint.type === "parkingSpace" || toPoint.type === "parkingSpace") && item.direction === "noDir") {
|
|
200
|
-
console.log("到车位的线");
|
|
201
200
|
this.addLineItem(fromKey, toKey, distance, this.forwardLineMap);
|
|
202
201
|
this.addLineItem(toKey, fromKey, distance, this.forwardLineMap);
|
|
203
202
|
}
|