UNPKG

a429-flight-display

Version:

React components for ARINC 429 Flight Display with primary flight instruments

59 lines (58 loc) 1.93 kB
import { FlightPath } from '../types/googleMaps'; export declare const mapUtils: { /** * Convert lat/lng coordinates to screen coordinates using Mercator projection */ latLngToScreen: (lat: number, lng: number, mapCenter: { lat: number; lng: number; }, zoom: number, width: number, height: number) => { x: number; y: number; }; /** * Generate SVG path string from flight path points */ generateFlightPathSVG: (flightPath: FlightPath[], mapCenter: { lat: number; lng: number; }, zoom: number, width: number, height: number) => string; /** * Create aircraft marker icon configuration for Google Maps */ createAircraftIcon: (rotation: number) => { path: string; fillColor: string; fillOpacity: number; strokeColor: string; strokeWeight: number; scale: number; rotation: number; anchor: any; }; /** * Create flight path polyline configuration for Google Maps */ createFlightPathPolyline: (map: any) => any; /** * Format aircraft tooltip text */ formatAircraftTooltip: (altitude: number, groundspeed: number) => string; /** * Handle Google Maps API loading errors */ handleGoogleMapsError: (setMapError: (error: string) => void, setUseSimulatedMap: (use: boolean) => void, setIsMapLoaded: (loaded: boolean) => void) => { onScriptError: () => void; onAuthFailure: () => void; onTimeout: () => void; }; /** * Update Google Maps aircraft marker */ updateGoogleMapsMarker: (marker: any, lat: number, lng: number, rotation: number, altitude: number, groundspeed: number) => void; /** * Update Google Maps flight path */ updateGoogleMapsFlightPath: (polyline: any, flightPath: FlightPath[]) => void; }; //# sourceMappingURL=mapUtils.d.ts.map