MCPcopy
hub / github.com/openstreetmap/iD / replace

Method replace

modules/core/graph.ts:271–278  ·  view source on GitHub ↗
(entity: iD.OsmEntity)

Source from the content-addressed store, hash-verified

269 }
270
271 replace(entity: iD.OsmEntity) {
272 if (this.entities[entity.id] === entity) return this;
273
274 return this.update(function() {
275 this._updateCalculated(this.entities[entity.id], entity);
276 this.entities[entity.id] = entity;
277 });
278 }
279
280 remove(entity: iD.OsmEntity) {
281 return this.update(function() {

Callers 15

osmIntersectionFunction · 0.95
actionFunction · 0.80
actionFunction · 0.80
actionOrthogonalizeFunction · 0.80
actionFunction · 0.80
actionAddMidpointFunction · 0.80
actionDeleteMemberFunction · 0.80
actionChangeMemberFunction · 0.80
actionMoveMemberFunction · 0.80
actionChangeTagsFunction · 0.80
actionFunction · 0.80
actionUpgradeTagsFunction · 0.80

Calls 2

updateMethod · 0.95
_updateCalculatedMethod · 0.95

Tested by

no test coverage detected