add frontend angular

This commit is contained in:
Tykayn 2025-10-02 22:53:50 +02:00 committed by tykayn
parent f34a5f0a83
commit 070e8435d8
36 changed files with 10209 additions and 6 deletions

View file

@ -94,7 +94,7 @@ window.EVENT_TYPES = {
description: 'Fermeture partielle de voie'
},
'traffic.roadwork': {
emoji: '⛑️',
emoji: '<img src="static/cone.png" class="icone cone" />',
label: 'Travaux routiers',
category: 'Circulation',
description: 'Travaux sur la chaussée'
@ -117,6 +117,7 @@ window.EVENT_TYPES = {
category: 'Danger',
description: 'Des pirana attaquent dans cette piscine'
}
// ici ajouter d'autres catégories d'évènements à suggérer
};
// Fonction pour obtenir les suggestions d'autocomplétion

View file

@ -3,7 +3,7 @@ const map = new maplibregl.Map({
container: 'map',
style: 'https://tiles.openfreemap.org/styles/liberty',
center: [2.3522, 48.8566], // Default center (Paris)
zoom: 4
zoom: 3
});
// Add navigation controls

View file

@ -676,6 +676,13 @@ function fillForm(issueType) {
typeSelect.value = 'unscheduled';
break;
case 'traffic_mammoth':
whatInput.value = 'traffic.mammoth';
labelInput.value = 'Obstacle';
descriptionInput.value = 'Circulation dense, mammouth laineux en obstacle';
typeSelect.value = 'unscheduled';
break;
// === RAIL TAB ===
case 'rail_delay':
whatInput.value = 'transport.rail.delay';