Replace the broken-looking Leaflet/OSM address picker with a MapLibre GL map using Map.ir vector tiles, plus Map.ir reverse geocoding for fast coordinates -> Persian address. - InteractiveMap: drop react-leaflet/leaflet; init a MapLibre map (Map.ir style via transformRequest x-api-key), a NavigationControl, and a fixed center pin — the map moves under the pin and the centre is reverse- geocoded on moveend (debounced). Wrapped dir=ltr so the map renders correctly inside the RTL page (fixes the scattered-tiles bug). Selected address shown in an overlay chip; city select / geolocation fly the map. - reverse geocoding: Nominatim -> Map.ir (https://map.ir/reverse), which returns proper Persian addresses (Nominatim was weak for Iran and its TOS forbids production use). - default map centre fixed to Tehran (matched the "تهران" selector). - key via VITE_MAPIR_KEY (documented in .env.example; real key in env). - deps: add maplibre-gl, remove leaflet/react-leaflet/@types/leaflet. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
27 lines
808 B
Plaintext
27 lines
808 B
Plaintext
# API Configuration
|
|
# K8s Dev: api.vitrown.abrino.cloud | Production: api.vitrown.com
|
|
VITE_API_BASE_URL=https://api.vitrown.abrino.cloud
|
|
VITE_API_SOCKET_BASE_URL=wss://api.vitrown.abrino.cloud
|
|
VITE_API_URL=https://api.vitrown.abrino.cloud
|
|
|
|
# Application Environment
|
|
VITE_APP_VERSION_TYPE=development
|
|
NODE_ENV=development
|
|
|
|
# Site Configuration
|
|
# K8s Dev: vitrown.abrino.cloud | Production: vitrown.com
|
|
VITE_SITE_URL=https://vitrown.abrino.cloud
|
|
VITE_DOMAIN_URL=https://vitrown.abrino.cloud
|
|
|
|
# Session Secret (REQUIRED - Change in production!)
|
|
REMIX_SECRET=your-secret-key-here
|
|
|
|
# Optional Build Configuration
|
|
VITE_BUILD_TARGET=development
|
|
|
|
# Support Configuration
|
|
VITE_SUPPORT_PHONE=+989223740993
|
|
|
|
# Map.ir key for the address map (MapLibre vector tiles + reverse geocoding)
|
|
VITE_MAPIR_KEY=your_mapir_api_key
|