✨ 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
23 lines
1003 B
TypeScript
23 lines
1003 B
TypeScript
import type { PAGE_TYPES } from '../../../lib/page-types';
|
|
/**
|
|
* Given the absolute path to the pages folder, an absolute file path for a
|
|
* page and the page extensions, this function will return the page path
|
|
* relative to the pages folder. It doesn't consider index tail. Example:
|
|
* - `/Users/rick/my-project/pages/foo/bar/baz.js` -> `/foo/bar/baz`
|
|
*
|
|
* It also handles special metadata routes mapping. Example:
|
|
* - `/Users/rick/my-project/app/sitemap.js` -> `/sitemap/route`
|
|
*
|
|
* @param filepath Absolute path to the page.
|
|
* @param opts.dir Absolute path to the pages/app folder.
|
|
* @param opts.extensions Extensions allowed for the page.
|
|
* @param opts.keepIndex When true the trailing `index` kept in the path.
|
|
* @param opts.pagesType Whether the page is in the pages or app directory.
|
|
*/
|
|
export declare function absolutePathToPage(pagePath: string, options: {
|
|
extensions: string[] | readonly string[];
|
|
keepIndex: boolean;
|
|
dir: string;
|
|
pagesType: PAGE_TYPES;
|
|
}): string;
|