[GH-ISSUE #16] [BUG] 使用没有 UI 的 Google Map #15

Closed
opened 2026-03-01 14:38:14 +03:00 by kerem · 1 comment
Owner

Originally created by @People-11 on GitHub (Jun 6, 2023).
Original GitHub issue: https://github.com/Archeb/opentrace/issues/16

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 使用环境

  • Windows 11 22621.1194
  • 1.2.3.0

Additional context 补充说明

Originally created by @People-11 on GitHub (Jun 6, 2023). Original GitHub issue: https://github.com/Archeb/opentrace/issues/16 **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 使用环境** - Windows 11 22621.1194 - 1.2.3.0 **Additional context 补充说明**
kerem closed this issue 2026-03-01 14:38:14 +03:00
Author
Owner

@Archeb commented on GitHub (Jun 6, 2023):

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

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

<!-- gh-comment-id:1578128914 --> @Archeb commented on GitHub (Jun 6, 2023): 这不是正确的修改方式,因为 OpenTrace 在开始每次追踪前会重置地图;而此时地图的样式由 OpenTrace 重置时传入的参数决定,与原网页中写的初始化代码无关。 禁用默认 UI 已在 5eeabbd2238a4156b289c694c31480de1a9356d2 中实现,感谢您的建议。
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentrace#15
No description provided.