✨ 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
41 lines
2.8 KiB
Markdown
41 lines
2.8 KiB
Markdown
# @jridgewell/resolve-uri
|
|
|
|
> Resolve a URI relative to an optional base URI
|
|
|
|
Resolve any combination of absolute URIs, protocol-realtive URIs, absolute paths, or relative paths.
|
|
|
|
## Installation
|
|
|
|
```sh
|
|
npm install @jridgewell/resolve-uri
|
|
```
|
|
|
|
## Usage
|
|
|
|
```typescript
|
|
function resolve(input: string, base?: string): string;
|
|
```
|
|
|
|
```js
|
|
import resolve from '@jridgewell/resolve-uri';
|
|
|
|
resolve('foo', 'https://example.com'); // => 'https://example.com/foo'
|
|
```
|
|
|
|
| Input | Base | Resolution | Explanation |
|
|
|-----------------------|-------------------------|--------------------------------|--------------------------------------------------------------|
|
|
| `https://example.com` | _any_ | `https://example.com/` | Input is normalized only |
|
|
| `//example.com` | `https://base.com/` | `https://example.com/` | Input inherits the base's protocol |
|
|
| `//example.com` | _rest_ | `//example.com/` | Input is normalized only |
|
|
| `/example` | `https://base.com/` | `https://base.com/example` | Input inherits the base's origin |
|
|
| `/example` | `//base.com/` | `//base.com/example` | Input inherits the base's host and remains protocol relative |
|
|
| `/example` | _rest_ | `/example` | Input is normalized only |
|
|
| `example` | `https://base.com/dir/` | `https://base.com/dir/example` | Input is joined with the base |
|
|
| `example` | `https://base.com/file` | `https://base.com/example` | Input is joined with the base without its file |
|
|
| `example` | `//base.com/dir/` | `//base.com/dir/example` | Input is joined with the base's last directory |
|
|
| `example` | `//base.com/file` | `//base.com/example` | Input is joined with the base without its file |
|
|
| `example` | `/base/dir/` | `/base/dir/example` | Input is joined with the base's last directory |
|
|
| `example` | `/base/file` | `/base/example` | Input is joined with the base without its file |
|
|
| `example` | `base/dir/` | `base/dir/example` | Input is joined with the base's last directory |
|
|
| `example` | `base/file` | `base/example` | Input is joined with the base without its file |
|