maptalks / maptalks/maptalks.js

矢量图层添加超大尺寸几何体时,俯仰角变化会引起几何对象形状变化

Open
#1,418 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
HTML
Stars
4.5k
Forks
511
Avg merge
3d 58m
Merged PRs (30d)
1

Description

**maptalks's version and what browser you use?**
----
maptalks v0.49.5 / Chrome 91.0.4472.164

**Issue description**
----
绘制尺寸超过 半球长度的 的几何对象时,
layer.addGeometry(Geometry) 会出现 俯仰角变换时的 几何对象抖动问题
layer.addGeometry([Geometry]) 不会出现
![image](https://user-images.githubusercontent.com/17902501/126929314-99a1ffac-5db9-4d2b-8d2e-442a85ae990f.png)
![image](https://user-images.githubusercontent.com/17902501/126929328-dbda4c36-78c1-4878-a012-7dc6fcafe94a.png)

**Please provide a reproduction URL (on any jsfiddle like site)**
----
https://codepen.io/xiangliliang/pen/PomEKrp

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the CodePen reproduction and compare layer.addGeometry(Geometry) with layer.addGeometry([Geometry]) while changing the pitch for geometry larger than a hemisphere. Trace the vector geometry rendering path responsible for this difference; done means the single-geometry case no longer jitters or changes shape during pitch changes, matching the array case.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.