Update redefinition of interestingNode to match leaflet-osm

This commit is contained in:
Tom Hughes 2025-01-07 08:38:51 +00:00
parent f946797520
commit 70012abd8b

View file

@ -312,13 +312,11 @@ L.OSM.Map = L.Map.extend({
}
});
map._objectLayer.interestingNode = function (node, ways, relations) {
map._objectLayer.interestingNode = function (node, wayNodes, relationNodes) {
if (object.type === "node") {
return true;
} else if (object.type === "relation") {
for (var i = 0; i < relations.length; i++) {
if (relations[i].members.indexOf(node) !== -1) return true;
}
if (relationNodes[node.id]) return true;
} else {
return false;
}