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:
Dan Albert 2021-05-31 13:20:58 -07:00
parent c42974f7b3
commit f6909d2f98

View File

@ -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 {