Building tech points colour
This commit is contained in:
+6
-6
@@ -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]}`;
|
||||
|
||||
Reference in New Issue
Block a user