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

refactor: 重构高德地图 V2 以视口进行同步 #2387

Merged
merged 26 commits into from
Apr 17, 2024
Merged

Conversation

lvisei
Copy link
Member

@lvisei lvisei commented Apr 9, 2024

[English Template / 英文模板]

🤔 这个变动的性质是?

  • 重构
  • 代码风格优化

💡 需求背景和解决方案

待办

  • 验证 2D/3D 视角下,拖动地图后,卡顿不连贯
  • 验证 2D/3D 视角下,拖动地图后,是否特殊情况闪烁
  • 验证 2D/3D 视角下,拖动地图后,数据是否有偏移
  • L7 组件验证
  • 抽象 BaseMap 基类封装到 lib
  • 公用 Viewport 封装到 lib

后续 Action

  • 数据抖动问题

@lvisei
Copy link
Member Author

lvisei commented Apr 9, 2024

/update-snapshots

@lvisei
Copy link
Member Author

lvisei commented Apr 12, 2024

问题 Check

绘制的图层跑天上了

新版在仰角大的情况下,绘制的图层跑天上了 旧版在仰角大的情况下,也有同样问题
image image

光照效果不一致

新版 旧版
image image

数据抖动问题,数据精准对比

新版大于 20 层级有抖动偏移现象,小于 20 看不出来

高德 旧版集成高德 新版集成高德
层级 22.65 demo 高德层级 22.75 高德层级 22.75
image image image
层级 20.41 高德层级 20.19 高德层级 20.20
image image image
data-shake.mov

@lvisei lvisei changed the base branch from master to beat April 17, 2024 05:45
@lvisei lvisei changed the title [WIP]refactor: amap next refactor: amap next Apr 17, 2024
@lvisei lvisei changed the title refactor: amap next refactor: 重构高德地图 V2,让高德与 L7 以视口进行同步 Apr 17, 2024
@lvisei lvisei changed the title refactor: 重构高德地图 V2,让高德与 L7 以视口进行同步 refactor: 重构高德地图 V2 以视口进行同步 Apr 17, 2024
@lvisei lvisei merged commit 9f03717 into beat Apr 17, 2024
18 checks passed
@lvisei lvisei deleted the refactor/amap-next branch April 17, 2024 11:17
lvisei added a commit that referenced this pull request Jun 11, 2024
* refactor: 重构高德地图 V2 以视口进行同步 (#2387)

* refactor: amap next

* fix: getMinZoom

* refactor: base map

* fix: source update 事件访问图层初始化未完成

* fix: 新版高德大于 21  级别抖动问题

* fix: Mapbox/Maplibre 20 层级以上数据偏移问题 (#2416)

* fix: fix line data offset in mapbox

* refactor: 完成点线面图层属性索引重构

* refactor: 完成 citybuliding\earth\geometry\heatmap 图层属性索引重构

* refactor: 完成 image/ raster/wind 图层属性索引重构

* refactor: 标记最大索引

* fix: line layer data shake

* refactor: 自定义开启双精度属性

* fix: map type

* fix: amap support three

* refactor: 移除不必要的剔除逻辑

* fix: 修复面图层光照计算

* fix: type EventEmitter

* fix: mapbox 下部分面数据图层绘制异常 (#2453)

* fix: mapbox 下部分面数据图层绘制异常

* fix: 3d extrude polygon layer

* fix: 修复 WebGPU 模式渲染问题 (#2450)

* fix: mapbox 线图层的贴图变形 (#2474)

* fix: mapbox 线图层的贴图变形

* fix: 修复热力蜂窝图层渲染空白 (#2500)

* fix: 修复热力蜂窝图层渲染空白

* fix: 无地图与 MapLibre 模式移动 Marker 出错 (#2509)

* fix: marker 拖动报错

* fix: 在 WebGL2 拾取事件冒泡延迟问题 (#2511)

* fix: 在 WebGL2 拾取事件冒泡延迟问题

* fix: 天地图 setCenter 方法缺失 (#2513)

* fix: 天地图 setCenter 方法缺失

* fix: 修复在 Map 上使用组件事件穿透到图层上的问题 (#2518)

* fix: 修复在 Map 上使用组件事件穿透到图层上的问题

* fix: 解决 GeometryLayer 在不同底图上的渲染不一致情况 (#2523)

* fix: 解决 GeometryLayer 在不同底图上的渲染不一致情况

* fix: 统一地形高度

* refactor: 升级新版一方地图交互事件机制,解决抖动问题 (#2521)

* refactor: 升级新版地图交互事件机制

* refactor: 默认升级 MapNext 至 maplibre-gl-js@4.3.2

* fix: 顶点着色器与片元着色器 varying 变量顺序不一致 (#2527)

* fix: 修复 bindings 缓存在 WebGPU 的问题 (#2526)

* fix: 修复 bindings 缓存在 WebGPU 的问题

---------

Co-authored-by: lvisei <26923747+lvisei@users.noreply.github.com>
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.

2 participants