From d0f76a84c4a550b10840f3abb0e8d92ce131a91c Mon Sep 17 00:00:00 2001 From: Tag Date: Mon, 31 Oct 2022 16:02:09 -0700 Subject: [PATCH] Removed short-grids overlay. Reduces screen lag on B overlay Cleaned up on referenced i18n json files --- package.nw/lib/gt.js | 30 +++--------------------------- package.nw/lib/i18n.js | 5 +---- 2 files changed, 4 insertions(+), 31 deletions(-) diff --git a/package.nw/lib/gt.js b/package.nw/lib/gt.js index f624f707..4319e677 100644 --- a/package.nw/lib/gt.js +++ b/package.nw/lib/gt.js @@ -3243,7 +3243,6 @@ function setTrophyOverlay(which) { g_layerVectors["line-grids"].setVisible(false); g_layerVectors["big-grids"].setVisible(false); - g_layerVectors["short-grids"].setVisible(false); g_layerVectors["long-grids"].setVisible(false); } if (g_timezoneLayer) @@ -3289,7 +3288,6 @@ function setTrophyOverlay(which) { g_layerVectors["line-grids"].setVisible(false); g_layerVectors["big-grids"].setVisible(false); - g_layerVectors["short-grids"].setVisible(false); g_layerVectors["long-grids"].setVisible(false); } } @@ -5607,9 +5605,8 @@ function initMap() createGlobalMapLayer("live"); createGlobalMapLayer("live-pins"); createGlobalMapLayer("line-grids"); - createGlobalMapLayer("long-grids", 3000); - createGlobalMapLayer("short-grids", 8000, 3001); - createGlobalMapLayer("big-grids", 50000, 3001); + createGlobalMapLayer("long-grids", 4500); + createGlobalMapLayer("big-grids", 50000, 4501); createGlobalMapLayer("pota"); createGlobalMapLayer("psk-flights"); createGlobalMapLayer("psk-spots"); @@ -5642,7 +5639,6 @@ function initMap() g_layerVectors["live-pins"], g_layerVectors["line-grids"], g_layerVectors["long-grids"], - g_layerVectors["short-grids"], g_layerVectors["big-grids"], g_layerVectors.pota, g_layerVectors["psk-flights"], @@ -12372,26 +12368,6 @@ function drawAllGrids() }); var featureStyle = new ol.style.Style({ - text: new ol.style.Text({ - fill: new ol.style.Fill({ color: "#000" }), - font: "normal 16px sans-serif", - stroke: new ol.style.Stroke({ - color: "#88888888", - width: 1 - }), - text: String(a) + String(b), - offsetY: 1 - }) - }); - feature.setStyle(featureStyle); - g_layerSources["short-grids"].addFeature(feature); - - feature = new ol.Feature({ - geometry: new ol.geom.Point(point), - name: String(a) + String(b) - }); - - featureStyle = new ol.style.Style({ text: new ol.style.Text({ fill: new ol.style.Fill({ color: "#000" }), font: "normal 16px sans-serif", @@ -12426,7 +12402,7 @@ function drawAllGrids() font: "normal 24px sans-serif", stroke: new ol.style.Stroke({ color: "#88888888", - width: 1 + width: 2 }), text: String.fromCharCode(x) + String.fromCharCode(y) }) diff --git a/package.nw/lib/i18n.js b/package.nw/lib/i18n.js index 8fad7066..3dbd303d 100644 --- a/package.nw/lib/i18n.js +++ b/package.nw/lib/i18n.js @@ -1,10 +1,7 @@ let languages = { en: "i18n/en.json", - es: "i18n/es.json", cn: "i18n/cn.json", - cnt: "i18n/cn-t.json", - de: "i18n/de.json", - ja: "i18n/ja.json" + cnt: "i18n/cn-t.json" }; function loadi18n()