✨ MAJOR FEATURES: • Auto-zoom intelligence với smart bounds fitting • Enhanced 3D GPS markers với pulsing effects • Professional route display với 6-layer rendering • Status-based parking icons với availability indicators • Production-ready build optimizations 🗺️ AUTO-ZOOM FEATURES: • Smart bounds fitting cho GPS + selected parking • Adaptive padding (50px) cho visual balance • Max zoom control (level 16) để tránh quá gần • Dynamic centering khi không có selection 🎨 ENHANCED VISUALS: • 3D GPS marker với multi-layer pulse effects • Advanced parking icons với status colors • Selection highlighting với animation • Dimming system cho non-selected items 🛣️ ROUTE SYSTEM: • OpenRouteService API integration • Multi-layer route rendering (glow, shadow, main, animated) • Real-time distance & duration calculation • Visual route info trong popup 📱 PRODUCTION READY: • SSR safe với dynamic imports • Build errors resolved • Global deployment via Vercel • Optimized performance 🌍 DEPLOYMENT: • Vercel: https://whatever-ctk2auuxr-phong12hexdockworks-projects.vercel.app • Bundle size: 22.8 kB optimized • Global CDN distribution • HTTPS enabled 💾 VERSION CONTROL: • MapView-v2.0.tsx backup created • MAPVIEW_VERSIONS.md documentation • Full version history tracking
49 lines
1.9 KiB
TypeScript
49 lines
1.9 KiB
TypeScript
import React from 'react';
|
|
declare const VALID_LOADING_VALUES: readonly ["lazy", "eager", undefined];
|
|
type LoadingValue = (typeof VALID_LOADING_VALUES)[number];
|
|
export type ImageLoader = (resolverProps: ImageLoaderProps) => string;
|
|
export type ImageLoaderProps = {
|
|
src: string;
|
|
width: number;
|
|
quality?: number;
|
|
};
|
|
declare const VALID_LAYOUT_VALUES: readonly ["fill", "fixed", "intrinsic", "responsive", undefined];
|
|
type LayoutValue = (typeof VALID_LAYOUT_VALUES)[number];
|
|
type PlaceholderValue = 'blur' | 'empty';
|
|
type OnLoadingComplete = (result: {
|
|
naturalWidth: number;
|
|
naturalHeight: number;
|
|
}) => void;
|
|
type ImgElementStyle = NonNullable<JSX.IntrinsicElements['img']['style']>;
|
|
export interface StaticImageData {
|
|
src: string;
|
|
height: number;
|
|
width: number;
|
|
blurDataURL?: string;
|
|
}
|
|
interface StaticRequire {
|
|
default: StaticImageData;
|
|
}
|
|
type StaticImport = StaticRequire | StaticImageData;
|
|
type SafeNumber = number | `${number}`;
|
|
export type ImageProps = Omit<JSX.IntrinsicElements['img'], 'src' | 'srcSet' | 'ref' | 'width' | 'height' | 'loading'> & {
|
|
src: string | StaticImport;
|
|
width?: SafeNumber;
|
|
height?: SafeNumber;
|
|
layout?: LayoutValue;
|
|
loader?: ImageLoader;
|
|
quality?: SafeNumber;
|
|
priority?: boolean;
|
|
loading?: LoadingValue;
|
|
lazyRoot?: React.RefObject<HTMLElement> | null;
|
|
lazyBoundary?: string;
|
|
placeholder?: PlaceholderValue;
|
|
blurDataURL?: string;
|
|
unoptimized?: boolean;
|
|
objectFit?: ImgElementStyle['objectFit'];
|
|
objectPosition?: ImgElementStyle['objectPosition'];
|
|
onLoadingComplete?: OnLoadingComplete;
|
|
};
|
|
export default function Image({ src, sizes, unoptimized, priority, loading, lazyRoot, lazyBoundary, className, quality, width, height, style, objectFit, objectPosition, onLoadingComplete, placeholder, blurDataURL, ...all }: ImageProps): import("react/jsx-runtime").JSX.Element;
|
|
export {};
|