UNPKG

leaflet-knn

Version:

next nearest neighbors for leaflet

2 lines (1 loc) 838 B
var squares = {"type":"FeatureCollection","features":[{"type":"Feature","properties":{"name":"Mali"},"geometry":{"type":"Polygon","coordinates":[[[-13.0078125,10.14193168613103],[-13.0078125,24.5271348225978],[5.9765625,24.5271348225978],[5.9765625,10.14193168613103],[-13.0078125,10.14193168613103]]]}},{"type":"Feature","properties":{"name":"United States"},"geometry":{"type":"Polygon","coordinates":[[[-128.32031249999997,22.59372606392931],[-128.32031249999997,51.6180165487737],[-59.4140625,51.6180165487737],[-59.4140625,22.59372606392931],[-128.32031249999997,22.59372606392931]]]}},{"type":"Feature","properties":{"name":"Germany"},"geometry":{"type":"Polygon","coordinates":[[[4.21875,46.07323062540838],[4.21875,55.37911044801047],[18.6328125,55.37911044801047],[18.6328125,46.07323062540838],[4.21875,46.07323062540838]]]}}]}