Skip to content

L7 MapBox使用本地瓦片集,并且加载threejs模型出现问题求助 #2693

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kddloong opened this issue Apr 11, 2025 · 2 comments
Assignees

Comments

@kddloong
Copy link

kddloong commented Apr 11, 2025

问题描述

使用MapBox地图使用本地瓦片集,并且加载threejs模型出现问题, 加载模型的功能是可以了,但是这个模型不显示。如果使用高德地图,这个模型就出现了。可以点击重现链接里的按钮切换查看。我的需求是本地地图加三位模型显示

重现链接

https://stackblitz.com/edit/vitejs-vite-hifqjupb

https://vitejsvitehifqjupb-wv4k-omddo5cv--5173--fb22cd3d.local-corp.webcontainer.io/

重现步骤

No response

预期行为

No response

平台

  • 操作系统: [Windows10]
  • 网页浏览器: [Google Chrome]

屏幕截图或视频(可选)

No response

补充说明(可选)

访问地图会遇到Blocked loading mixed active content,要修改浏览器配置

对于Chrome和Chromium系列(如Edge、Opera等):

打开浏览器。

访问chrome://flags/。

在搜索框中输入“Mixed Content”。

找到“Allow invalid certificates for resources loaded from localhost”或类似的选项。

将此选项设置为“Enabled”。

重新启动浏览器。

对于Firefox:

打开Firefox。

输入about:config在地址栏并回车。

接受风险警告。

在搜索框中输入“mixed content”。

找到“security.mixed_content.block_active_content”选项。

双击该项,将其值改为false。

重启Firefox。
Copy link
Contributor

hi @kddloong, welcome!

Copy link
Contributor

Hi @kddloong, Please star this repo if you find it useful! Thanks ⭐!
你好~ @kddloong 🌟 如果这个仓库对你有帮助,可以给我们点个star支持一下~你的支持对我们来说是最大的鼓励,感谢你的支持与点赞 🌟

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants