Snap to
This commit is contained in:
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);
|
console.warn('No glueindex : ' + latlng.__vertex);
|
||||||
}
|
}
|
||||||
let distance = latlng.distanceTo(eventLatlng)
|
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})
|
layers.push({d: distance, l: layer, latlng: latlng.__vertex.latlng, glueindex: latlng.glueindex})
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user