Building tech points colour

This commit is contained in:
2026-09-11 15:07:29 +02:00
parent f9af09ef0a
commit 8c1a608bf9
4 changed files with 45 additions and 8 deletions
+6 -6
View File
@@ -130,12 +130,12 @@ GIS.buildingTechs = async function () {
let techs = new L.LayerGroup();
for (let record of techsData) {
const marker = L.marker(
record.coordinates,
{icon: Icons.techs, label: record.technique}
)
.bindTooltip(record.technique)
.bindPopup(UI.createBuildingTechTable(record));
const marker = L.marker(record.coordinates, {
icon: Icons.techIcon(record.technique),
label: record.technique
});
marker.bindTooltip(record.technique);
marker.bindPopup(UI.createBuildingTechTable(record));
techs.addLayer(marker);
const markerLabel = `${record.coordinates[0]} ${record.coordinates[1]}`;