Files
eacp_webapp/htdocs/js/ol-iconpatch.js
T
2026-06-16 11:24:50 +08:00

62 lines
1.8 KiB
JavaScript

/*
This method specifies parameters for scaling and translating svg paths to work around inaccuracies in the svg paths
*/
(function(){
/*for (var prop in acImagePathsR) {
if (acImagePathsR.hasOwnProperty(prop)) {
acImagePathsR[prop].ofX = -0.1;
}
}*/
// patch icon scales
acImagePathsR["$PARAGLIDER"].scale = 0.05;
acImagePathsR["$BEACON"].scale = 0.2;
acImagePathsR["$E"].scale = 0.95;
acImagePathsR["$SF25"].scale = 1.5;
acImagePathsR["$SI2"].scale = 0.78;
acImagePathsR["$AWACS"].scale = 0.68;
acImagePathsR["$A320"].scale = 0.73;
acImagePathsR["$A330"].scale = 0.74;
acImagePathsR["$A340"].scale = 0.73;
acImagePathsR["$A380"].scale = 0.78;
acImagePathsR["$B737"].scale = 0.68;
acImagePathsR["$B747"].scale = 0.72;
acImagePathsR["$B777"].scale = 0.68;
acImagePathsR["$B787"].scale = 0.7;
acImagePathsR["$F15"].scale = 0.53;
acImagePathsR["$0"].ofY = 2.0;
acImagePathsR["$1"].ofX = 0.0;
acImagePathsR["$2"].ofY = -1.5;
acImagePathsR["$2"].ofX = 0.2;
acImagePathsR["$3"].ofX = -1.15;
acImagePathsR["$4"].ofX = 0.1;
acImagePathsR["$5"].ofX = -0.0;
acImagePathsR["$A"].ofX = -0.2;
acImagePathsR["$A2"].ofX = -0.6;
acImagePathsR["$B"].ofX = -0.6;
acImagePathsR["$AWACS"].ofX = -1.2;
acImagePathsR["$SF25"].ofX = -1.1;
acImagePathsR["$SF25"].ofY = 1.2;
acImagePathsR["$SI2"].ofX = -0.3;
acImagePathsR["$SI2"].ofY = 3.7;
acImagePathsR["$A320"].ofY = -0.9;
acImagePathsR["$A320"].ofX = -0.2;
acImagePathsR["$A330"].ofY = -1.0;
acImagePathsR["$A330"].ofX = -1.1;
acImagePathsR["$A340"].ofY = -0.5;
acImagePathsR["$A340"].ofX = -0.2;
acImagePathsR["$A380"].ofX = -0.1;
acImagePathsR["$A400"].ofX = -1.05;
acImagePathsR["$B737"].ofX = -1.05;
acImagePathsR["$F15"].ofX = -0.25;
})();