File tree Expand file tree Collapse file tree
common/src/main/java/xyz/jpenilla/squaremap/common/config Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ private static void internalWebServerSettings() {
8080
8181 public static boolean UI_COORDINATES_ENABLED = true ;
8282 public static boolean UI_LINK_ENABLED = true ;
83- public static String UI_SIDEBAR_PINNED = "unpinned " ;
83+ public static String UI_SIDEBAR_PINNED = "pinned " ;
8484
8585 private static void uiSettings () {
8686 UI_COORDINATES_ENABLED = config .getBoolean ("settings.ui.coordinates.enabled" , UI_COORDINATES_ENABLED );
Original file line number Diff line number Diff line change @@ -47,7 +47,10 @@ export const FogOfWar = L.Layer.extend({
4747 // Clear circles around each player (flashlight effect)
4848 this . _ctx . globalCompositeOperation = "destination-out" ;
4949
50- const radius = 80 ; // pixels - adjust for flashlight size
50+ // Scale radius based on zoom level
51+ const zoom = this . _map . getZoom ( ) ;
52+ const baseRadius = 80 ; // base radius at zoom level 0
53+ const radius = baseRadius * Math . pow ( 2 , zoom ) ;
5154
5255 if ( S . playerList . markers ) {
5356 S . playerList . markers . forEach ( ( marker , uuid ) => {
You can’t perform that action at this time.
0 commit comments