✨ 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
56 lines
2.2 KiB
TypeScript
56 lines
2.2 KiB
TypeScript
import type { RouteMatch } from '../route-matches/route-match';
|
|
import type { RouteMatcherProvider } from '../route-matcher-providers/route-matcher-provider';
|
|
import type { LocaleAnalysisResult } from '../helpers/i18n-provider';
|
|
export type MatchOptions = {
|
|
skipDynamic?: boolean;
|
|
/**
|
|
* If defined, this indicates to the matcher that the request should be
|
|
* treated as locale-aware. If this is undefined, it means that this
|
|
* application was not configured for additional locales.
|
|
*/
|
|
i18n?: LocaleAnalysisResult | undefined;
|
|
};
|
|
export interface RouteMatcherManager {
|
|
/**
|
|
* Returns a promise that resolves when the matcher manager has finished
|
|
* reloading.
|
|
*/
|
|
waitTillReady(): Promise<void>;
|
|
/**
|
|
* Pushes in a new matcher for this manager to manage. After all the
|
|
* providers have been pushed, the manager must be reloaded.
|
|
*
|
|
* @param provider the provider for this manager to also manage
|
|
*/
|
|
push(provider: RouteMatcherProvider): void;
|
|
/**
|
|
* Reloads the matchers from the providers. This should be done after all the
|
|
* providers have been added or the underlying providers should be refreshed.
|
|
*/
|
|
reload(): Promise<void>;
|
|
/**
|
|
* Tests the underlying matchers to find a match. It does not return the
|
|
* match.
|
|
*
|
|
* @param pathname the pathname to test for matches
|
|
* @param options the options for the testing
|
|
*/
|
|
test(pathname: string, options: MatchOptions): Promise<boolean>;
|
|
/**
|
|
* Returns the first match for a given request.
|
|
*
|
|
* @param pathname the pathname to match against
|
|
* @param options the options for the matching
|
|
*/
|
|
match(pathname: string, options: MatchOptions): Promise<RouteMatch | null>;
|
|
/**
|
|
* Returns a generator for each match for a given request. This should be
|
|
* consumed in a `for await (...)` loop, when finished, breaking or returning
|
|
* from the loop will terminate the matching operation.
|
|
*
|
|
* @param pathname the pathname to match against
|
|
* @param options the options for the matching
|
|
*/
|
|
matchAll(pathname: string, options: MatchOptions): AsyncGenerator<RouteMatch, null, undefined>;
|
|
}
|