(id: string)
| 36 | } |
| 37 | |
| 38 | entity<T extends iD.OsmEntity>(id: string) { |
| 39 | var entity = this.entities[id]; |
| 40 | |
| 41 | if (!entity) { |
| 42 | throw new Error('entity ' + id + ' not found'); |
| 43 | } |
| 44 | return entity as T; |
| 45 | } |
| 46 | |
| 47 | geometry(id: string) { |
| 48 | return this.entity(id).geometry(this); |
no outgoing calls
no test coverage detected