From b75f5639f1c222ab2e11458fa0541129b1d7bbc2 Mon Sep 17 00:00:00 2001 From: Darin McBride Date: Thu, 9 Apr 2015 11:10:13 -0600 Subject: [PATCH] Add opacity to less-well-controlled stars. --- mapper.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/mapper.js b/mapper.js index 969116aa..7fede5e3 100644 --- a/mapper.js +++ b/mapper.js @@ -338,7 +338,16 @@ if (typeof YAHOO.lacuna.Mapper == "undefined" || !YAHOO.lacuna.Mapper) { var station = this.data.station; var pSize = this.tileSizeInPx; - this.logoHolder.innerHTML= [''].join(''); + var opacity = this.data.influence * 9 / 19000 + 0.1; + if (opacity > 1) + { + opacity = 1; + } + else if (opacity < 0.1) + { + opacity = 0.1; + } + this.logoHolder.innerHTML= [''].join(''); } this.imageHolder.innerHTML = [''].join(''); } -- 2.51.2