Skip to content

Commit

Permalink
Merge branch 'njam:master' into feature/tiling
Browse files Browse the repository at this point in the history
  • Loading branch information
lmichaelis-fhg authored May 21, 2024
2 parents 2b080be + ea89b8f commit 6fa39c9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: test

on: [ push ]
on:
- push
- pull_request

jobs:
build:
Expand Down
7 changes: 7 additions & 0 deletions src/citygml/CityObject.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ class CityObject {
return this.getEnvelope().getBoundingBox().getCenter()
}

/**
* @returns {String} This object's ID ("gml:id")
*/
get id() {
return this.cityNode.getAttribute('gml:id')
}

/**
* @returns {TriangleMesh}
*/
Expand Down

0 comments on commit 6fa39c9

Please sign in to comment.