@totvs-agro/mobile-components
Version:
Componentes Mobile Totvs (Front-End) para utilização dos estilos do T-Faces e Ionic v3
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;
}