antvis / L7

🌎 Large-scale WebGL-powered Geospatial Data Visualization analysis engine.
https://l7.antv.antgroup.com
MIT License
3.67k stars 636 forks source link

[LineLayer][greatcircle]当两个点距离太近的时候,会出现折线 #2569

Open luojunbang opened 4 months ago

luojunbang commented 4 months ago

问题描述

import { GaodeMap } from '@antv/l7-maps';

const scene = new Scene({
  id: 'map',
  map: new GaodeMap({
    style: 'dark',
    center: [107.77791556935472, 35.443286920228644],
    zoom: 2.9142882493605033,
  }),
});
scene.on('loaded', () => {
  const layer = new LineLayer({ autoFit: true })
    .source({
      "type": "FeatureCollection",
      "features": [
        {
          "type": "Feature",
          "properties": {},
          "geometry": {
            "type": "LineString",
            "coordinates": [
              [121.56969, 31.24741],
              [121.569832, 31.247488]
            ]
          }
        }
      ]
    }
    )
    .size(6)
    .shape('greatcircle')
    .color('#8C1EB2')
    .style({
      opacity: 0.8,
    });
  scene.addLayer(layer);
});

重现链接

https://codesandbox.io/s/9c64pm?file=/index.js

重现步骤

No response

预期行为

No response

平台

屏幕截图或视频(可选)

image

补充说明(可选)

No response

github-actions[bot] commented 4 months ago

hi @luojunbang, welcome!

github-actions[bot] commented 4 months ago

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

github-actions[bot] commented 4 months ago

Hello @luojunbang, We totally like your proposal/feedback. welcome to send us a Pull Request to solve this problem and contribute to the open source project. After submitting the code, please send a Pull Request to the master branch. We will review it and look forward to your contribution.

你好 @luojunbang,同意你的反馈,欢迎直接在此仓库 创建一个 Pull Request 来解决这个问题,为开源项目贡献一份力量。提交代码后,请将 Pull Request 发到 master 分支,我们会进行 Review,期待您的贡献。

giphy