diff --git a/README-CN.md b/README-CN.md index d7a5c1e6cb4..746bfdf537c 100644 --- a/README-CN.md +++ b/README-CN.md @@ -246,11 +246,13 @@ siteMetadata: { const USE_DASH_LINE = true; // styling: 透明度:[0, 1] const LINE_OPACITY = 0.4; +// update for now 2024/11/17 the privacy mode is true // styling: 开启隐私模式(不显示地图仅显示轨迹): 设置为 `true` // 注意:此配置仅影响页面显示,数据保护请参考下方的 "隐私保护" -const PRIVACY_MODE = false; +const PRIVACY_MODE = true; +// update for now 2024/11/17 the lights on default is false // styling: 默认关灯: 设置为 `false`, 仅在隐私模式关闭时生效(`PRIVACY_MODE` = false) -const LIGHTS_ON = true; +const LIGHTS_ON = false; ``` > 隐私保护:设置下面环境变量: diff --git a/README.md b/README.md index 70d78aebf45..afb3eb3588e 100644 --- a/README.md +++ b/README.md @@ -232,9 +232,11 @@ const USE_DASH_LINE = true; const LINE_OPACITY = 0.4; // styling: set to `true` if you want to display only the routes without showing the map // Note: This config only affects the page display; please refer to "privacy protection" below for data protection -const PRIVACY_MODE = false; +// update for now 2024/11/17 the privacy mode is true +const PRIVACY_MODE = true; +// update for now 2024/11/17 the lights on default is false // styling: set to `false` if you want to make light off as default, only effect when `PRIVACY_MODE` = false -const LIGHTS_ON = true; +const LIGHTS_ON = false; ``` - To use Google Analytics, you need to modify the configuration in the `src/utils/const.ts` file. diff --git a/src/utils/const.ts b/src/utils/const.ts index 2d7e7136107..1836b1be55f 100644 --- a/src/utils/const.ts +++ b/src/utils/const.ts @@ -38,10 +38,12 @@ const LINE_OPACITY = 0.4; const MAP_HEIGHT = 600; //set to `false` if you want to hide the road label characters const ROAD_LABEL_DISPLAY = true; +// update for now 2024/11/17 the privacy mode is true //set to `true` if you want to display only the routes without showing the map. const PRIVACY_MODE = false; +// update for now 2024/11/17 the lights on default is false //set to `false` if you want to make light off as default, only effect when `PRIVACY_MODE` = false -const LIGHTS_ON = true; +const LIGHTS_ON =false; // IF you outside China please make sure IS_CHINESE = false const IS_CHINESE = true;