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

fix: 天地图Marker和Popup的bug #2315

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open

Conversation

taiyuanhy
Copy link
Contributor

[English Template / 英文模板]

🤔 这个变动的性质是?

  • 新特性提交
  • 日常 bug 修复
  • 站点、文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • TypeScript 定义更新
  • 包体积优化
  • 性能优化
  • 功能增强
  • 国际化改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 工作流程
  • 版本更新
  • 其他改动(是关于什么的改动?)

🔗 相关 Issue

💡 需求背景和解决方案

天地图的Marker和Popup对缩放事件的监听,写到了makrer和popup组件中,应当在具体的mapService中实现

📝 更新日志

语言 更新描述
🇺🇸 英文
🇨🇳 中文

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • Changelog 已提供或无须提供

@@ -219,7 +220,7 @@ export default class Marker extends EventEmitter {
DOM.setTransform(element as HTMLElement, `${anchorTranslate[anchor]}`);
}
//天地图在开始缩放时触发 更新目标位置时添加过渡效果
private updatePositionWhenZoom(ev: { map: any; center: any; zoom: any; }) {
public updatePositionWhenZoom(ev: { map: any; center: any; zoom: any; }) {
if (!this.mapsService) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个方法在非天地图场景,还是会报错吧,可以尝试补充一下单元测试

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

又更新了一版

huyang added 4 commits March 5, 2024 17:04
fix: marker和popup中计算容器坐标不正确的bug
fix: marker组件移除marker和popup方法报错的bug
# Conflicts:
#	packages/component/src/marker.ts
#	packages/component/src/popup/popup.ts
# Conflicts:
#	packages/component/src/marker.ts
#	packages/component/src/popup/popup.ts
#	packages/maps/src/utils/BaseMapService.ts
@lvisei lvisei removed the bugfix label May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants