From e683c1a024ade39e505a94b127d35d8e578d4d8d Mon Sep 17 00:00:00 2001 From: Tomxuetao <1127513120@qq.com> Date: Tue, 27 Aug 2019 17:40:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=A6=81=E7=B4=A0=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E7=B4=A2=E5=BC=95=E7=9A=84=E7=AC=94=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/geo/featureIndex.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/geo/featureIndex.js b/src/geo/featureIndex.js index 22d9b34610..37b9a7532c 100644 --- a/src/geo/featureIndex.js +++ b/src/geo/featureIndex.js @@ -2,7 +2,7 @@ import rbush from 'rbush'; import turfBox from '@turf/bbox'; export default class FeatureIndex { constructor(data) { - this.tree = rbush(); + this.tree = new rbush(); this.rawData = data; data.features.forEach(feature => { this.insert(feature);