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

使用TMap时Swipe组件不能正常工作 #2682

Open
Astral1020 opened this issue Mar 12, 2025 · 5 comments
Open

使用TMap时Swipe组件不能正常工作 #2682

Astral1020 opened this issue Mar 12, 2025 · 5 comments
Assignees

Comments

@Astral1020
Copy link

问题描述

在官方示例中可以直接复现
https://l7.antv.antgroup.com/zh/examples/component/control/#swipe

Image

Image

重现链接

No response

重现步骤

使用将GaodeMap替换为TMap后, 卷帘的按钮出现在左上角, 并且卷帘无法正常拖动, 拖动卷帘会移动地图

预期行为

No response

平台

  • 操作系统: Windows
  • 网页浏览器: [Google Chrome, Edge]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

Copy link
Contributor

hi @Astral1020, welcome!

Copy link
Contributor

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

Copy link

目前没有发现与您的问题相似的其他报告。根据您的描述,问题可能与 TMap 的兼容性有关。

您可以尝试以下方法来解决问题:

  1. 检查 TMap 和 L7 的版本:确保您使用的是最新版本的 TMap 和 L7,因为新版本可能包含修复此类问题的补丁。

  2. 调整 CSS 样式:有时,样式问题可能导致组件显示不正确。您可以尝试调整卷帘按钮的 CSS 样式,确保其位置和行为符合预期。

  3. 查看控制台错误:在浏览器的开发者工具中查看是否有任何错误信息,这些信息可能提供有关问题的更多线索。

如果这些方法没有解决问题,您可以考虑在 antvis/L7 的 GitHub 仓库中提交一个新的问题报告,详细描述您的问题和重现步骤,以便开发团队能够更好地帮助您。

如果您需要进一步的帮助,请随时告诉我。

🪧 Tips For further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me.

@Astral1020
Copy link
Author

我们正在使用天地图, 在需要添加Swipe来比对不同年份的卫星照片时, 我们发现Swipe组件无法正常工作, 在官方示例中通过修改GaodeMap为TMap后发生了和我们开发环境相同的问题

@lzxue
Copy link
Contributor

lzxue commented Mar 18, 2025

可能是一些能力没有对齐

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