WIP: test interactive wall layers

This commit is contained in:
2026-09-14 16:00:23 +02:00
parent 7293ac348d
commit ace42261cf
9 changed files with 210 additions and 82 deletions
+43 -48
View File
@@ -14,61 +14,56 @@ const buildingTechColors = {
*/
const Icons = {};
Icons.site = L.icon(
{
iconUrl: 'img/icons/siti.png',
iconSize: [18, 27],
iconAnchor: [10, 24],
tooltipAnchor: [0, -22],
}
);
Icons.notConserved = L.icon(
{
iconUrl: 'img/icons/non_conserv.png',
iconSize: [18, 27],
iconAnchor: [10, 24],
tooltipAnchor: [0, -22],
}
);
Icons.site = L.icon({
iconUrl: 'img/icons/siti.png',
iconSize: [18, 27],
iconAnchor: [10, 24],
tooltipAnchor: [0, -22],
});
Icons.notConserved = L.icon({
iconUrl: 'img/icons/non_conserv.png',
iconSize: [18, 27],
iconAnchor: [10, 24],
tooltipAnchor: [0, -22],
});
Icons.finding = L.icon(
{
iconUrl: 'img/icons/rinvenimenti.png',
iconSize: [18, 27],
iconAnchor: [10, 24],
tooltipAnchor: [0, -22],
}
);
Icons.finding = L.icon({
iconUrl: 'img/icons/rinvenimenti.png',
iconSize: [18, 27],
iconAnchor: [10, 24],
tooltipAnchor: [0, -22],
});
Icons.prehistoric = L.icon(
{
iconUrl: 'img/icons/preistorici.png',
iconSize: [18, 27],
iconAnchor: [10, 24],
tooltipAnchor: [0, -22],
}
);
Icons.prehistoric = L.icon({
iconUrl: 'img/icons/preistorici.png',
iconSize: [18, 27],
iconAnchor: [10, 24],
tooltipAnchor: [0, -22],
});
Icons.underwater = L.icon(
{
iconUrl: 'img/icons/subacquei.png',
iconSize: [18, 27],
iconAnchor: [10, 24],
tooltipAnchor: [0, -22],
}
);
Icons.underwater = L.icon({
iconUrl: 'img/icons/subacquei.png',
iconSize: [18, 27],
iconAnchor: [10, 24],
tooltipAnchor: [0, -22],
});
Icons.reuse = L.icon(
{
iconUrl: 'img/icons/reimpiego.png',
iconSize: [18, 27],
iconAnchor: [10, 24],
tooltipAnchor: [0, -22],
}
);
Icons.reuse = L.icon({
iconUrl: 'img/icons/reimpiego.png',
iconSize: [18, 27],
iconAnchor: [10, 24],
tooltipAnchor: [0, -22],
});
Icons.camera = L.divIcon({className: 'fa fa-camera'});
Icons.wall = L.icon({
iconUrl: 'img/icons/bricks.svg',
iconSize: [18, 27],
iconAnchor: [10, 24],
tooltipAnchor: [0, -22],
});
/**
* Assigns a different color to the icon
* based on building tech type