update coord for copy/cut coord
This commit is contained in:
parent
8b52d69ae9
commit
94012aed45
5 changed files with 22 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,2 +1,3 @@
|
||||||
|
|
||||||
*.zip
|
*.zip
|
||||||
|
*.sql
|
||||||
|
|
|
||||||
17
Dockerfile
17
Dockerfile
|
|
@ -12,4 +12,21 @@ EXPOSE 3000
|
||||||
|
|
||||||
WORKDIR /app/server
|
WORKDIR /app/server
|
||||||
|
|
||||||
|
# Ajout du serveur MySQL
|
||||||
|
FROM mysql:latest
|
||||||
|
|
||||||
|
ENV MYSQL_ROOT_PASSWORD=CHANGEIT
|
||||||
|
ENV MYSQL_DATABASE=ac2re
|
||||||
|
|
||||||
|
# Copie du fichier SQL
|
||||||
|
COPY db.sql /docker-entrypoint-initdb.d/
|
||||||
|
|
||||||
|
# Exécution du fichier SQL lors du démarrage du conteneur
|
||||||
|
CMD ["mysqld", "--init-file", "/docker-entrypoint-initdb.d/db.sql"]
|
||||||
|
|
||||||
|
# Retour au répertoire node
|
||||||
|
FROM node:latest
|
||||||
|
|
||||||
|
WORKDIR /app/server
|
||||||
|
|
||||||
CMD ["npm", "start"]
|
CMD ["npm", "start"]
|
||||||
|
|
@ -15,4 +15,4 @@ map.on("click", function (ev) {
|
||||||
});
|
});
|
||||||
|
|
||||||
//Interval Player Overlay
|
//Interval Player Overlay
|
||||||
setInterval(InitOverlayPlayer, 5000);
|
//setInterval(InitOverlayPlayer, 5000);
|
||||||
|
|
@ -21,7 +21,7 @@ export function coordToCardinal(lat, lng) {
|
||||||
let directionLng = lng < CENTER ? "W" : "E";
|
let directionLng = lng < CENTER ? "W" : "E";
|
||||||
|
|
||||||
// Retourner la chaîne de caractères résultante
|
// Retourner la chaîne de caractères résultante
|
||||||
return cardinalLat.toFixed(1) + " " + directionLat + " - " + cardinalLng.toFixed(1) + " " + directionLng;
|
return cardinalLat.toFixed(1) + "" + directionLat + " " + cardinalLng.toFixed(1) + "" + directionLng;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function GetLandBlockId(ev, map) {
|
export function GetLandBlockId(ev, map) {
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,8 @@ var coordOverlay = L.control({ position: "bottomleft" });
|
||||||
coordOverlay.onAdd = function (map) {
|
coordOverlay.onAdd = function (map) {
|
||||||
this._div = L.DomUtil.create("div", "coordinates-overlay");
|
this._div = L.DomUtil.create("div", "coordinates-overlay");
|
||||||
this._div.innerHTML = "Cliquez sur la carte pour voir les coordonnées";
|
this._div.innerHTML = "Cliquez sur la carte pour voir les coordonnées";
|
||||||
|
// Empêcher la propagation des clics sur l'overlay à la carte
|
||||||
|
L.DomEvent.disableClickPropagation(this._div);
|
||||||
return this._div;
|
return this._div;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue