Refacoring, but links for polylines and devices in progress

This commit is contained in:
ISA
2024-09-04 08:08:10 +02:00
parent 193d1e2f2f
commit 5ed41642da
5 changed files with 129 additions and 127 deletions

View File

@@ -24,6 +24,7 @@ export const createAndSetDevices = async (systemId, setMarkersFunction, GisSyste
const jsonResponse = await response1.json();
const response2 = await fetch(config.mapGisStationsStatusDistrictUrl);
const statusResponse = await response2.json();
const BASE_URL = process.env.NEXT_PUBLIC_BASE_URL;
const getIdSystemAndAllowValueMap = new Map(GisSystemStatic.map((system) => [system.IdSystem, system.Allow]));
@@ -105,6 +106,7 @@ export const createAndSetDevices = async (systemId, setMarkersFunction, GisSyste
<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>
<div class="mt-2">${statusInfo}</div>
<a href="${station.Link}" target="_blank" style="color: blue;">${BASE_URL}${station.Link}</a>
</div>
`);