Archeb / opentrace

A cross-platform GUI wrapper for NextTrace. Bringing you the familiar traceroute experience. OpenTrace 是 NextTrace 的跨平台 GUI 界面,带来您熟悉但更强大的用户体验。
GNU General Public License v3.0
2.22k stars 89 forks source link

[BUG] 使用没有 UI 的 Google Map #16

Closed People-11 closed 1 year ago

People-11 commented 1 year ago

Describe the bug 描述你遇到的BUG 因为目前使用的 Google Map 有不必要的按钮,所以我就想把程序内置的 geo-devrel-javascript-samples.web.app/samples/map-simple/app/dist/ 换成 geo-devrel-javascript-samples.web.app/samples/control-disableUI/app/dist/ 。这个地图在浏览器上正常打开,但是在 OpenTrace 的源码里替换后,OpenTrace 无法打开,详见 github.com/People-11/opentrace/actions/runs/5184433346

To Reproduce 复现方法

Screenshots (If applicable) 截图(如果有)

Environment 使用环境

Additional context 补充说明

Archeb commented 1 year ago

这不是正确的修改方式,因为 OpenTrace 在开始每次追踪前会重置地图;而此时地图的样式由 OpenTrace 重置时传入的参数决定,与原网页中写的初始化代码无关。

禁用默认 UI 已在 5eeabbd2238a4156b289c694c31480de1a9356d2 中实现,感谢您的建议。