mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Use airfield icons for off-map spawns.
Nothing else is really appropriate, and these are meant to represent off-map airfields.
This commit is contained in:
parent
c42974f7b3
commit
f6909d2f98
@ -43,7 +43,7 @@ class CpIcons {
|
||||
cv: this.loadIcon("cv", player, state),
|
||||
fob: this.loadIcon("fob", player, state),
|
||||
lha: this.loadIcon("lha", player, state),
|
||||
offmap: this.loadLegacyIcon(player),
|
||||
offmap: this.loadIcon("airfield", player, state),
|
||||
};
|
||||
}
|
||||
}
|
||||
@ -60,19 +60,6 @@ class CpIcons {
|
||||
iconSize: [32, 32],
|
||||
});
|
||||
}
|
||||
|
||||
loadLegacyIcon(player) {
|
||||
const color = player ? "blue" : "red";
|
||||
return new L.Icon({
|
||||
iconUrl: `https://raw.githubusercontent.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-${color}.png`,
|
||||
shadowUrl:
|
||||
"https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.7/images/marker-shadow.png",
|
||||
iconSize: [25, 41],
|
||||
iconAnchor: [12, 41],
|
||||
popupAnchor: [1, -34],
|
||||
shadowSize: [41, 41],
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
class TgoIcons {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user