UNPKG

bentley-ottman-sweepline

Version:

Bentley-Ottman segments intersection algorithm

15 lines (13 loc) 478 B
var tests = { '01': [37.565505169406585, 55.71366864747661], '10': [37.565505169406585, 55.775571379661294], '02': [37.609906886866035, 55.73133494107268], '20': [37.609906886866035, 55.73493266931589], '12': [37.609906886866035, 55.73133494107268], '21': [37.609906886866035, 55.746443673821574] } for (var key in tests) { if (tests.hasOwnProperty(key)) { L.marker(L.latLng(tests[key].slice().reverse())).bindPopup(key).addTo(map); } }