Skip to content

Commit b0a37af

Browse files
authored
Update buildingpart.js
1 parent 9a4340f commit b0a37af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/buildingpart.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ class BuildingPart {
270270
const options = {
271271
center: center,
272272
angle: angle / 180 * Math.PI,
273-
depth: this.options.roof.height,
273+
depth: this.options.roof.height ?? 3,
274274
};
275275
const geometry = new WedgeGeometry(this.shape, options);
276276

@@ -434,7 +434,7 @@ class BuildingPart {
434434

435435
/**
436436
* OSM compass degrees are 0-360 clockwise.
437-
*
437+
* 0 degrees is North.
438438
* @return {number} degrees
439439
*/
440440
static atanRadToCompassDeg(rad) {

0 commit comments

Comments
 (0)