Merge pull request #20 from Tomxuetao/master

修复要素创建索引的笔误
This commit is contained in:
@thinkinggis 2019-08-27 18:10:50 +08:00 committed by GitHub
commit 7df9a645c9
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ import rbush from 'rbush';
import turfBox from '@turf/bbox'; import turfBox from '@turf/bbox';
export default class FeatureIndex { export default class FeatureIndex {
constructor(data) { constructor(data) {
this.tree = rbush(); this.tree = new rbush();
this.rawData = data; this.rawData = data;
data.features.forEach(feature => { data.features.forEach(feature => {
this.insert(feature); this.insert(feature);