Implemented range rings

This commit is contained in:
Pax1601
2023-10-05 13:51:13 +02:00
parent b08a3835dc
commit d462bd16b5
5 changed files with 7929 additions and 7305 deletions

View File

@@ -208,12 +208,10 @@ export function nmToM(nm: number) {
return nm / 0.000539957;
}
export function nmToFt(nm: number) {
return nm * 6076.12;
}
export function polyContains(latlng: LatLng, polygon: Polygon) {
var poly = polygon.toGeoJSON();
return turf.inside(turf.point([latlng.lng, latlng.lat]), poly);