We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f01075c commit 8e278bbCopy full SHA for 8e278bb
1 file changed
web/src/js/FogOfWar.js
@@ -9,10 +9,10 @@ export const FogOfWar = L.Layer.extend({
9
this._canvas.style.top = "0";
10
this._canvas.style.left = "0";
11
this._canvas.style.pointerEvents = "none";
12
- this._canvas.style.zIndex = "400";
+ this._canvas.style.zIndex = "300";
13
14
- const pane = map.getPane("overlayPane");
15
- pane.appendChild(this._canvas);
+ const container = map.getContainer();
+ container.appendChild(this._canvas);
16
17
this._ctx = this._canvas.getContext("2d");
18
@@ -38,8 +38,8 @@ export const FogOfWar = L.Layer.extend({
38
39
this._ctx.clearRect(0, 0, this._canvas.width, this._canvas.height);
40
41
- // Fill entire canvas with dark overlay
42
- this._ctx.fillStyle = "rgba(0, 0, 0, 0.85)";
+ // Fill entire canvas with fully black overlay
+ this._ctx.fillStyle = "rgba(0, 0, 0, 1)";
43
this._ctx.fillRect(0, 0, this._canvas.width, this._canvas.height);
44
45
// Clear circles around each player (flashlight effect)
0 commit comments