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: mapbox 下部分面数据图层绘制异常 #2453

Merged
merged 3 commits into from
May 15, 2024
Merged

Conversation

lvisei
Copy link
Member

@lvisei lvisei commented May 13, 2024

🤔 这个变动的性质是?

  • 日常 bug 修复

🔗 相关 Issue

💡 需求背景和解决方案

面图层使用 earcut 算法进行三角剖分的时候,数据直接用的经纬度数据。

earcut 算法得是一个共平面的数据,也就是投影后的数据。

Note that Earcut is a 2D triangulation algorithm, and handles 3D data as if it was projected onto the XY plane

将在进行三角剖分之前,将数据投影,获取正确索引数据,

before after

image

image

image

image

@github-actions github-actions bot added bugfix and removed bugfix labels May 14, 2024
@lvisei lvisei merged commit d408bdb into beta May 15, 2024
6 checks passed
@lvisei lvisei deleted the fix/earcut-projected branch May 15, 2024 02:57
This was referenced May 16, 2024
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.

1 participant