V028
portree_kid 4 years ago
parent 0146ee8623
commit 715f3c968e

@ -788,7 +788,7 @@ You should have received a copy of the GNU General Public License along with FG
console.warn('No glueindex : ' + latlng.__vertex);
}
let distance = latlng.distanceTo(eventLatlng)
if (distance > 0 && distance < snap) {
if (distance >= 0 && distance < snap && latlng.glueindex >=0) {
layers.push({d: distance, l: layer, latlng: latlng.__vertex.latlng, glueindex: latlng.glueindex})
}
} else {

Loading…
Cancel
Save