Skip to content
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

vite 项目里加载 webpack/vite 工程的cesium子应用 均无任何报错,但是也无法渲染出地球,也不加载瓦片. #1351

Closed
SuGod opened this issue Sep 4, 2024 · 8 comments
Assignees
Labels
feature Planned functions Need Reproduction 需要复现步骤

Comments

@SuGod
Copy link

SuGod commented Sep 4, 2024

vite 项目里加载 webpack/vite 工程的cesium子应用 均无任何报错,但是也无法加渲染出地球,也不加载瓦片,天空盒等其他工具组件都正常显示,功能也正常.只是没有地球..不知道是什么原因.
而且以下配置除了inline,其他都需要配置,否则会报错.

 <micro-app
    name="cesium-map"
    url="http://localhost:8080/"
    inline
    iframe
    disable-scopecss
    disable-memory-router
  />
@SuGod SuGod changed the title vite 项目里加载 webpack/vite 工程的cesium子应用 均无任何报错,但是也无法加渲染出地球,也不加载瓦片. vite 项目里加载 webpack/vite 工程的cesium子应用 均无任何报错,但是也无法渲染出地球,也不加载瓦片. Sep 4, 2024
@SuGod
Copy link
Author

SuGod commented Sep 4, 2024

"@micro-zoe/micro-app": "1.0.0-rc.8"

之前有一个项目使用的是0.8版本的,子应用是webpack的 ,当时也没有iframe这些配置,地图模型什么都是正常的..不知道为什么新项目用新版本反而出不来了.

@timhub66 timhub66 added the Need Reproduction 需要复现步骤 label Sep 5, 2024
Copy link

github-actions bot commented Sep 5, 2024

Hello @SuGod. In order to facilitate location and troubleshooting, we need you to provide a realistic GitHub repository.
您好 @SuGod, 为了方便定位和排查问题,我们需要您提供一个重现实例,请提供一个尽可能精简的 GitHub 仓库地址。

@SuGod
Copy link
Author

SuGod commented Sep 5, 2024

Hello @SuGod. In order to facilitate location and troubleshooting, we need you to provide a realistic GitHub repository. 您好 @SuGod, 为了方便定位和排查问题,我们需要您提供一个重现实例,请提供一个尽可能精简的 GitHub 仓库地址。

https://github.com/SuGod/micro-app-map-demo

@SuGod
Copy link
Author

SuGod commented Sep 5, 2024

@timhub66 Demo项目已提交.
单独打开或者直接使用iframe加载地图子应用都是正常的.但是mcrio-app中却不加载地图瓦片.

@timhub66 timhub66 self-assigned this Sep 5, 2024
@timhub66
Copy link
Member

timhub66 commented Sep 8, 2024

@SuGod ,mars3d 和 mars3d-cesium 这两个库代码没有sourceMap,无法定位问题

@SuGod
Copy link
Author

SuGod commented Sep 9, 2024

@SuGod ,mars3d 和 mars3d-cesium 这两个库代码没有sourceMap,无法定位问题

您好,更新了项目使用cesium+vuecli(webpack)的工程,麻烦您再看一下.

@SuGod
Copy link
Author

SuGod commented Sep 9, 2024

@timhub66 今天测试了一下.发现vue-cli4/webpack4的工程可以正常加载.vite/webpack5工程都无法加载出地图.

@timhub66 timhub66 added the feature Planned functions label Sep 10, 2024
@timhub66
Copy link
Member

@SuGod ,cesium 这个已以feature形式 在 1.0.0-rc.9 版本支持;详细可参考 https://github.com/micro-zoe/awesome-samples/tree/issue-1351

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Planned functions Need Reproduction 需要复现步骤
Projects
None yet
Development

No branches or pull requests

2 participants