Skip to content

Commit

Permalink
This duplicate feature is no longer necessary.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisLoer committed Apr 11, 2018
1 parent 51dfef8 commit 7ee20e7
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/data/feature_index.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,7 @@ class FeatureIndex {
const matching = this.grid.query(minX - queryPadding, minY - queryPadding, maxX + queryPadding, maxY + queryPadding);
matching.sort(topDownFeatureComparator);
const result = {};
let previousIndex;
for (let k = 0; k < matching.length; k++) {
const index = matching[k];

// don't check the same feature more than once
if (index === previousIndex) continue;
previousIndex = index;

for (const index of matching) {
const match = this.featureIndexArray.get(index);
let geometry = null;
this.generateGeoJSONFeature(
Expand Down

0 comments on commit 7ee20e7

Please sign in to comment.