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

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

Open
luojunbang opened this issue Jul 18, 2024 · 3 comments
Assignees
Labels
bug 这个是一个 bug help wanted issue 求助社区帮助解决

Comments

@luojunbang
Copy link

问题描述

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

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]

屏幕截图或视频(可选)

image

补充说明(可选)

No response

Copy link
Contributor

hi @luojunbang, welcome!

Copy link
Contributor

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

@lvisei lvisei added bug 这个是一个 bug help wanted issue 求助社区帮助解决 labels Jul 18, 2024
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 这个是一个 bug help wanted issue 求助社区帮助解决
Projects
None yet
Development

No branches or pull requests

2 participants