@totvs-agro/core-mobile
Version:
Core Mobile Totvs Agro (Front-End) para utilização dos estilos do T-Faces
15 lines (14 loc) • 843 B
TypeScript
import { ILatLng, Polygon } from "@ionic-native/google-maps";
export declare class PolygonUtil {
static findPolygonCenter(polygon: Polygon): ILatLng;
private static findCenterTurf;
private static findCenterTurfReduce;
static calcPolygonAreaHa(polygon: Polygon): Number;
static coordsGoogleToTurf(coordsGoogle: ILatLng[]): number[][];
static coordsTurfToGoogle(coordsTurf: number[][]): ILatLng[];
static isPointInsidePolygon(point: ILatLng, polygon: ILatLng[]): boolean;
static pointInPolygons(point: ILatLng, polygons: ILatLng[][]): number[];
static findReferenceNearestPolygonPoint(polygon: ILatLng[], reference: ILatLng): ILatLng;
static getMarkerImage(text: string, backgroundColor?: string): string;
static getShapeImage(points: ILatLng[], size: number, color?: string): string;
}