# Immo-Ka Maps — intégration Ka Maps **Auteur : Simon-Pierre Boucher — contact@spboucher.ai — Groupe Ka / Ka Maps (intégration Immo-Ka)** Immo-Ka consomme le framework partagé `@groupe-ka/ka-maps` (`file:../../ka-maps`, moteur Mapbox GL, style Standard 3D). Voir `~/Desktop/ka-maps/docs/ka-maps.md`. ## Fichiers de l'intégration | Fichier | Rôle | |---|---| | `frontend/src/kamaps/theme.ts` | thème (encre chocolat, rouge #e23744 ; « bonne affaire » = highlight rouge) | | `frontend/src/kamaps/adapter.ts` | `/api/listings.geojson?bbox=…` → `MapProperty` ; `highlight` = prix ≤ 95 % de l'estimation Vrai-Prix | | `frontend/src/kamaps/config.ts` | jeton public Mapbox | | `frontend/src/components/MapView.tsx` | montage + légende Prix demandé / Sous l'estimation Vrai-Prix | | `frontend/src/components/PropertyMap.tsx` | mini-carte de fiche (fond Ka, anneaux 5/15 min, marqueur-prix) | | `immoka/web.py` | geojson : `bbox`, `limit`, tous les filtres de `/api/listings`, `totalGeocoded/totalMatching` | | `immoka/db.py` | index `idx_listings_geo(lat,lng)` | `src/map/immokaStyle.ts` et `src/map/pills.ts` (ancienne carte MapLibre maison) sont supprimés — remplacés par le framework. ## À savoir - Seulement ~7 % des annonces ont des coordonnées aujourd'hui : lancer `python run.py geocode` (Adresses Québec) et/ou `vraiprix_local` pour peupler la carte. L'affordance « N hors carte » rend ce manque visible. - L'attribution OSM/Mapbox est de retour (l'ancienne carte l'omettait).