- talas_v5.gis_lines Update nach Marker innerhalb der Linie -> position ändern->idLD && idModul Zusammengesetzte PK
- Darstellung soll wie Marker mouseover Popup (tooltip)
This commit is contained in:
@@ -671,7 +671,7 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
|
||||
|
||||
marker.bindPopup(`
|
||||
<div class=" bg-white rounded-lg ">
|
||||
<p class="text-lg font-semibold text-gray-900">${station.LD_Name}</p>
|
||||
<span class="text-lg font-semibold text-gray-900">${station.LD_Name}</span>
|
||||
<span class="text-md font-bold text-gray-800"> ${station.Device}</span><br>
|
||||
<span class="text-gray-800"><strong> ${station.Area_Short} </strong>(${station.Area_Name})</span><br>
|
||||
<span class="text-gray-800"><strong>${station.Location_Short} </strong> (${station.Location_Name})</span>
|
||||
@@ -2179,16 +2179,15 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
|
||||
if (matchingLine) {
|
||||
colorsByModule[matchingLine.idModul] = stat.PrioColor;
|
||||
newTooltipContents[matchingLine.idModul] = `
|
||||
<div class="p-0 rounded-lg bg-white bg-opacity-90">
|
||||
<div class="font-bold text-sm text-black">
|
||||
<span>DpName: ${stat.DpName || "Unknown"}</span>
|
||||
</div>
|
||||
<div class="font-bold text-xxs text-blue-700">
|
||||
<span>ModulName : ${stat.ModulName || "N/A"}</span>
|
||||
</div>
|
||||
<div class="font-bold text-xxs text-red-700">
|
||||
<span>Message : ${stat.Message || "N/A"}</span>
|
||||
</div>
|
||||
<div class=" bg-white rounded-lg">
|
||||
<span class="text-lg font-semibold text-gray-900">${stat.DpName || "Unknown"}</span><br>
|
||||
<span class="text-md font-bold text-gray-800">ModulName : ${stat.ModulName || "N/A"}</span><br>
|
||||
<span class="text-gray-800">Message : ${stat.Message || "N/A"}</span><br>
|
||||
<!--<span class="text-gray-800">PrioColor : ${stat.PrioColor || "N/A"}</span><br>-->
|
||||
<span class="text-gray-800">PrioName : ${stat.PrioName || "N/A"}</span><br>
|
||||
<span class="text-gray-800">IdLD : ${stat.IdLD || "N/A"}</span><br>
|
||||
<span class="text-gray-800">Modul : ${stat.Modul || "N/A"}</span><br>
|
||||
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
@@ -2293,7 +2292,7 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
|
||||
);
|
||||
|
||||
updatedPolyline.on("mouseover", () => {
|
||||
updatedPolyline.setStyle({ weight: 12 });
|
||||
updatedPolyline.setStyle({ weight: 10 });
|
||||
updatedPolyline.bringToFront();
|
||||
});
|
||||
updatedPolyline.on("mouseout", () => {
|
||||
@@ -2354,7 +2353,7 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
|
||||
);
|
||||
|
||||
polyline.on("mouseover", () => {
|
||||
polyline.setStyle({ weight: 12 });
|
||||
polyline.setStyle({ weight: 10 });
|
||||
polyline.bringToFront();
|
||||
console.log(
|
||||
`polyline with idLD : ${lineData.idLD}, idModul: ${lineData.idModul}`,
|
||||
|
||||
Reference in New Issue
Block a user