From 7556df72659e549554bf5695e883e855d944019c Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Mon, 8 Apr 2019 12:28:02 -0400 Subject: [PATCH] Make sure to return the current version of entity from tree.intersects Since d5e427289, the tree head graph will not update if only tags have changed - it requires an addition, deletion, or geometry change. This makes the tree a little more efficient, but we do need to make sure to return the current entities to the caller. --- modules/core/tree.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/tree.js b/modules/core/tree.js index 179cc7d1b..b95185c66 100644 --- a/modules/core/tree.js +++ b/modules/core/tree.js @@ -98,7 +98,7 @@ export function coreTree(head) { } return rtree.search(extent.bbox()) - .map(function(bbox) { return head.entity(bbox.id); }); + .map(function(bbox) { return graph.entity(bbox.id); }); };