Files
traque/traque-front/util/configurations.js
2025-09-18 01:27:44 +02:00

39 lines
1.4 KiB
JavaScript

import { ZoneTypes, Colors } from "./types";
export const mapLocations = {
paris: [48.86, 2.33]
}
export const mapZooms = {
low: 4,
high: 15,
}
export const mapStyles = {
default: {
url: "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>'
},
satellite: {
url: "https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",
attribution: 'Tiles &copy; Esri'
},
}
export const defaultZoneSettings = {
circle: {type: ZoneTypes.CIRCLE, min: null, max: null, reductionCount: 4, duration: 10},
polygon: {type: ZoneTypes.POLYGON, polygons: []}
}
export const teamStatus = {
default: { label: "Indisponible", color: Colors.black },
playing: { label: "En jeu", color: Colors.green },
captured: { label: "Capturée", color: Colors.red },
outofzone: { label: "Hors zone", color: Colors.orange },
ready: { label: "Placée", color: Colors.green },
notready: { label: "Non placée", color: Colors.red },
waiting: { label: "En attente", color: Colors.grey },
victory: { label: "Victoire", color: Colors.green },
defeat: { label: "Défaite", color: Colors.red },
}