🎯 MapView v2.0 - Global Deployment Ready

 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
This commit is contained in:
2025-07-20 19:52:16 +07:00
parent 3203463a6a
commit c65cc97a33
64624 changed files with 7199453 additions and 6462 deletions

View File

@@ -0,0 +1,12 @@
// Importing from a ".js" file is a workaround for Node.js "ES Modules"
// importing system which is even uncapable of importing "*.json" files.
import metadata from '../../metadata.min.json.js'
import { AsYouType as _AsYouType } from '../../core/index.js'
export function AsYouType(country) {
return _AsYouType.call(this, country, metadata)
}
AsYouType.prototype = Object.create(_AsYouType.prototype, {})
AsYouType.prototype.constructor = AsYouType

View File

@@ -0,0 +1,12 @@
// Importing from a ".js" file is a workaround for Node.js "ES Modules"
// importing system which is even uncapable of importing "*.json" files.
import metadata from '../../metadata.min.json.js'
import { Metadata as _Metadata } from '../../core/index.js'
export function Metadata() {
return _Metadata.call(this, metadata)
}
Metadata.prototype = Object.create(_Metadata.prototype, {})
Metadata.prototype.constructor = Metadata

View File

@@ -0,0 +1,11 @@
// Importing from a ".js" file is a workaround for Node.js "ES Modules"
// importing system which is even uncapable of importing "*.json" files.
import metadata from '../../metadata.min.json.js'
import { PhoneNumber as _PhoneNumber } from '../../core/index.js'
export function PhoneNumber(number) {
return _PhoneNumber.call(this, number, metadata)
}
PhoneNumber.prototype = Object.create(_PhoneNumber.prototype, {})
PhoneNumber.prototype.constructor = PhoneNumber

View File

@@ -0,0 +1,11 @@
// Importing from a ".js" file is a workaround for Node.js "ES Modules"
// importing system which is even uncapable of importing "*.json" files.
import metadata from '../../metadata.min.json.js'
import { PhoneNumberMatcher as _PhoneNumberMatcher } from '../../core/index.js'
export function PhoneNumberMatcher(text, options) {
return _PhoneNumberMatcher.call(this, text, options, metadata)
}
PhoneNumberMatcher.prototype = Object.create(_PhoneNumberMatcher.prototype, {})
PhoneNumberMatcher.prototype.constructor = PhoneNumberMatcher

View File

@@ -0,0 +1,6 @@
import withMetadataArgument from './withMetadataArgument.js'
import { findNumbers as _findNumbers } from '../../core/index.js'
export function findNumbers() {
return withMetadataArgument(_findNumbers, arguments)
}

View File

@@ -0,0 +1,6 @@
import withMetadataArgument from './withMetadataArgument.js'
import { findPhoneNumbersInText as _findPhoneNumbersInText } from '../../core/index.js'
export function findPhoneNumbersInText() {
return withMetadataArgument(_findPhoneNumbersInText, arguments)
}

View File

@@ -0,0 +1,6 @@
import withMetadataArgument from './withMetadataArgument.js'
import { formatIncompletePhoneNumber as _formatIncompletePhoneNumber } from '../../core/index.js'
export function formatIncompletePhoneNumber() {
return withMetadataArgument(_formatIncompletePhoneNumber, arguments)
}

View File

@@ -0,0 +1,6 @@
import withMetadataArgument from './withMetadataArgument.js'
import { getCountries as _getCountries } from '../../core/index.js'
export function getCountries() {
return withMetadataArgument(_getCountries, arguments)
}

View File

@@ -0,0 +1,6 @@
import withMetadataArgument from './withMetadataArgument.js'
import { getCountryCallingCode as _getCountryCallingCode } from '../../core/index.js'
export function getCountryCallingCode() {
return withMetadataArgument(_getCountryCallingCode, arguments)
}

View File

@@ -0,0 +1,6 @@
import withMetadataArgument from './withMetadataArgument.js'
import { getExampleNumber as _getExampleNumber } from '../../core/index.js'
export function getExampleNumber() {
return withMetadataArgument(_getExampleNumber, arguments)
}

View File

@@ -0,0 +1,6 @@
import withMetadataArgument from './withMetadataArgument.js'
import { getExtPrefix as _getExtPrefix } from '../../core/index.js'
export function getExtPrefix() {
return withMetadataArgument(_getExtPrefix, arguments)
}

View File

@@ -0,0 +1,6 @@
import withMetadataArgument from './withMetadataArgument.js'
import { isPossiblePhoneNumber as _isPossiblePhoneNumber } from '../../core/index.js'
export function isPossiblePhoneNumber() {
return withMetadataArgument(_isPossiblePhoneNumber, arguments)
}

View File

@@ -0,0 +1,6 @@
import withMetadataArgument from './withMetadataArgument.js'
import { isSupportedCountry as _isSupportedCountry } from '../../core/index.js'
export function isSupportedCountry() {
return withMetadataArgument(_isSupportedCountry, arguments)
}

View File

@@ -0,0 +1,6 @@
import withMetadataArgument from './withMetadataArgument.js'
import { isValidPhoneNumber as _isValidPhoneNumber } from '../../core/index.js'
export function isValidPhoneNumber() {
return withMetadataArgument(_isValidPhoneNumber, arguments)
}

View File

@@ -0,0 +1,6 @@
import withMetadataArgument from './withMetadataArgument.js'
import { default as _parsePhoneNumber } from '../../core/index.js'
export function parsePhoneNumber() {
return withMetadataArgument(_parsePhoneNumber, arguments)
}

View File

@@ -0,0 +1,6 @@
import withMetadataArgument from './withMetadataArgument.js'
import { parsePhoneNumberWithError as _parsePhoneNumberWithError } from '../../core/index.js'
export function parsePhoneNumberWithError() {
return withMetadataArgument(_parsePhoneNumberWithError, arguments)
}

View File

@@ -0,0 +1,6 @@
import withMetadataArgument from './withMetadataArgument.js'
import { searchNumbers as _searchNumbers } from '../../core/index.js'
export function searchNumbers() {
return withMetadataArgument(_searchNumbers, arguments)
}

View File

@@ -0,0 +1,6 @@
import withMetadataArgument from './withMetadataArgument.js'
import { searchPhoneNumbersInText as _searchPhoneNumbersInText } from '../../core/index.js'
export function searchPhoneNumbersInText() {
return withMetadataArgument(_searchPhoneNumbersInText, arguments)
}

View File

@@ -0,0 +1,6 @@
import withMetadataArgument from './withMetadataArgument.js'
import { validatePhoneNumberLength as _validatePhoneNumberLength } from '../../core/index.js'
export function validatePhoneNumberLength() {
return withMetadataArgument(_validatePhoneNumberLength, arguments)
}

View File

@@ -0,0 +1,9 @@
// Importing from a ".js" file is a workaround for Node.js "ES Modules"
// importing system which is even uncapable of importing "*.json" files.
import metadata from '../../metadata.min.json.js'
export default function withMetadataArgument(func, _arguments) {
var args = Array.prototype.slice.call(_arguments)
args.push(metadata)
return func.apply(this, args)
}