fixed dispatch eslint errors
This commit is contained in:
@@ -36,6 +36,7 @@ export function findClosestPolygon(
|
||||
const polygon = toPolygonFeature(way.nodes);
|
||||
if (!polygon) continue;
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
const center = centroid(polygon as any).geometry.coordinates; // [lon, lat]
|
||||
|
||||
const newDistance = distance([referencePoint.lon, referencePoint.lat], center);
|
||||
|
||||
Reference in New Issue
Block a user