MCPcopy Index your code
hub / github.com/openstreetmap/iD / entity

Method entity

modules/core/graph.ts:38–45  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

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);

Callers 15

osmIntersectionFunction · 0.95
geometryMethod · 0.95
parentWaysMethod · 0.95
parentRelationsMethod · 0.95
childNodesMethod · 0.95
groupEntitiesFunction · 0.80
actionFunction · 0.80
actionOrthogonalizeFunction · 0.80
actionAddMidpointFunction · 0.80
actionDeleteMemberFunction · 0.80
actionChangeMemberFunction · 0.80
actionMoveMemberFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected