mirror of
https://git.rezel.net/LudoTech/traque.git
synced 2026-02-09 10:20:16 +01:00
Map resize correction + player focus + cleaning
This commit is contained in:
35
traque-front/util/configurations.js
Normal file
35
traque-front/util/configurations.js
Normal file
@@ -0,0 +1,35 @@
|
||||
import { ZoneTypes } 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: '© <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 © Esri'
|
||||
},
|
||||
}
|
||||
|
||||
export const defaultZoneSettings = {
|
||||
circle: {type: ZoneTypes.CIRCLE, min: null, max: null, reductionCount: 4, duration: 10},
|
||||
polygon: {type: ZoneTypes.POLYGON, polygons: []}
|
||||
}
|
||||
|
||||
export const teamStatus = {
|
||||
playing: { label: "En jeu", color: "text-custom-green" },
|
||||
captured: { label: "Capturée", color: "text-custom-red" },
|
||||
outofzone: { label: "Hors zone", color: "text-custom-orange" },
|
||||
ready: { label: "Placée", color: "text-custom-green" },
|
||||
notready: { label: "Non placée", color: "text-custom-red" },
|
||||
waiting: { label: "En attente", color: "text-custom-grey" },
|
||||
}
|
||||
Reference in New Issue
Block a user