mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-19 06:58:32 +02:00
Remove context.childNodes function
This commit is contained in:
@@ -343,7 +343,7 @@ export function uiFeatureList(context) {
|
||||
context.map().center(d.entity.loc);
|
||||
} else if (d.entity.type === 'way') {
|
||||
var center = context.projection(context.map().center());
|
||||
var edge = geoChooseEdge(context.childNodes(d.entity), center, context.projection);
|
||||
var edge = geoChooseEdge(context.graph().childNodes(d.entity), center, context.projection);
|
||||
context.map().center(edge.loc);
|
||||
}
|
||||
context.enter(modeSelect(context, [d.entity.id]));
|
||||
|
||||
@@ -41,7 +41,7 @@ export function uiFieldAddress(field, context) {
|
||||
(extent[0][0] + extent[1][0]) / 2,
|
||||
(extent[0][1] + extent[1][1]) / 2
|
||||
]);
|
||||
var choice = geoChooseEdge(context.childNodes(d), loc, context.projection);
|
||||
var choice = geoChooseEdge(context.graph().childNodes(d), loc, context.projection);
|
||||
|
||||
return {
|
||||
title: d.tags.name,
|
||||
|
||||
Reference in New Issue
Block a user