add MapComponent and lineColorsAPI after cherry pick. update lines and tooltip ok
This commit is contained in:
2553
components/MapComponent.js
Normal file
2553
components/MapComponent.js
Normal file
File diff suppressed because it is too large
Load Diff
53
pages/api/linesColorApi.js
Normal file
53
pages/api/linesColorApi.js
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
// /pages/api/linesColorApi.js
|
||||||
|
// http://10.10.0.13/talas5/ClientData/WebServiceMap.asmx/GisStationsStatusDistrict
|
||||||
|
//In DB gis_lines idLD und idModul anpassen entsprechend
|
||||||
|
|
||||||
|
export default function handler(req, res) {
|
||||||
|
const response = {
|
||||||
|
Name: "Liste aller Statis der Linien",
|
||||||
|
Zeitstempel: new Date().toISOString(), // Aktuellen Zeitstempel hinzufügen
|
||||||
|
IdMap: "10",
|
||||||
|
Statis: [
|
||||||
|
{
|
||||||
|
IdLD: 50922,
|
||||||
|
Modul: 1,
|
||||||
|
DpName: "KUE01_Ausfall",
|
||||||
|
ModulName: "42 Wippershain Sender",
|
||||||
|
// ModulTyp: "nicht vorhanden",
|
||||||
|
ModulTyp: "KÜ705-FO",
|
||||||
|
Message: "KUEG 01: 42 Wippershain Sender Messwerkausfall kommend",
|
||||||
|
Level: 4,
|
||||||
|
PrioColor: "#FFFF00",
|
||||||
|
PrioName: "system",
|
||||||
|
Value: "?",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
IdLD: 25440,
|
||||||
|
Modul: 3,
|
||||||
|
DpName: "KUE03_Ausfall",
|
||||||
|
ModulName: "42 Solz Sender",
|
||||||
|
//ModulTyp: "nicht vorhanden",
|
||||||
|
ModulTyp: "KÜSS V2",
|
||||||
|
Message: "KUEG 03: 42 Solz Sender Messwerkausfall kommend",
|
||||||
|
Level: 4,
|
||||||
|
PrioColor: "#FF0000",
|
||||||
|
PrioName: "system",
|
||||||
|
Value: "?",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
IdLD: 25440,
|
||||||
|
Modul: 4,
|
||||||
|
DpName: "KUE04_Ausfall",
|
||||||
|
ModulName: "42/13 Bad Hersfeld Gaswerk",
|
||||||
|
ModulTyp: "Kue705-FO",
|
||||||
|
Message: "KUEG 04: 42/13 Bad Hersfeld Gaswerk Messwerkausfall kommend",
|
||||||
|
Level: 4,
|
||||||
|
PrioColor: "#FF00FF",
|
||||||
|
PrioName: "system",
|
||||||
|
Value: "?",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
||||||
|
|
||||||
|
res.status(200).json(response);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user