Giter Club home page Giter Club logo

l7editor's Introduction

L7Editor

🌍 基于 L7 的地理数据编辑工具

npm Version npm License Percentage of issues still open Average time to resolve an issue

主页使用文档组件

📦 组件

npm install @antv/l7-editor -S
import { L7Editor } from '@antv/l7-editor';

export default () => {
  return <L7Editor autoFitBounds activeTab="geojson" theme="dark" />;
};

⌨️ 本地开发

# 安装依赖
npm install

# 工具页面运行页面
npm run start

# 工具页面打包
npm run build

📖 许可证

MIT@AntV.

l7editor's People

Contributors

heiyexing avatar websybin avatar zhaoqianci avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

l7editor's Issues

🐛 [BUG]折线编辑器删除的异常行为

折线编辑器移动后,点击删除按钮未删除图层

https://l7editor.antv.antgroup.com/

📷 Step to reproduce

1、使用折现编辑器绘制折线

2、移动折线

3、点击删除按钮(确认)

4、GeoJSON编辑器内的数据清空了,但是地图中的图层未清除

5、再次点击地图,GeoJSON编辑器内的数据又恢复了

6、此时折线图层无法编辑/移动了

7、点击删除按钮(确认),可以删除数据和图层了

🏞 Expected result

上述描述中的步骤3 应该直接到 步骤7,才是对的。

🚑 Any additional [like screenshots]

  • L7Editor Version: v1.1.5
  • Platform: macos Ventura 13.5.2 (Apple M1 Pro)

期待vue版本~🥰 [FEATURE]

💻 Features description [Please make everyone to understand it]

期待官方出一个vue版本~

🏞 What problem does this feature solve

🧐 What does the proposed API look like

🚑 Any additional [like screenshots]

🐛 [BUG]L7Editor中打开地图样式,选择切换时有问题

当底图是矢量地图时,选择地图样式切换有效果,当底图是其他地图时,选择地图切换时没有任何效果,也没有提示。

🐛 Bug description [Please make everyone to understand it]

当底图是矢量地图时,选择地图样式切换有效果
image
当底图是其他地图时,选择地图切换时没有任何效果,也没有提示
image

建议当底图不是矢量地图时,把”地图样式“控件禁用,或者当用户选择”地图样式“控件时给出提示

首页报错回不去

我在首页粘贴了一份multipolygon的GeoJson数据,然后我把type改成polygon,结果就报错了,然后我关闭页面再次打开,发现首页依旧报错并且无法返回到编辑的页面
7050d839c75c445fa07baaa9a81cc37c

🐛 [BUG]最新版本v1.1.12中使用了"@mapbox/geojsonhint": "^3.3.0",这个包了另一个@gerhobbelt/nomnom引起报错

🐛 Bug description

image

@mapbox/geojsonhint项目已经有用户提交issue👉 mapbox/geojsonhint#96

在2023年11月@mapbox/geojsonhint为项目新增了一个名为@gerhobbelt/nomnom的依赖包。该包在package.json中的指定方式使用的是GitHub地址github:gerhobbelt/nomnom,而不是一个版本号。这告诉包管理器(比如npm或Yarn)要直接从指定的GitHub仓库下载包,而不是从npm仓库下载。

image

存在的问题:在安装项目时,包管理器尝试访问GitHub以下载@gerhobbelt/nomnom包。这要求安装环境能够访问互联网。在正常情况下这通常没有问题,但在那些没有互联网访问权限、只能从registry.npmjs.org的镜像上安装的环境中,安装会因为无法访问GitHub而失败。

项目build时会失败
image

我会降 l7editor 版本到 1.1.11 即可使用

添加距离测量功能

希望添加测量两个坐标点之间的直线距离的功能,目前无法判断多个polygon图形的距离是否是正确的值,如果想知道一个polygon扩大100米后的几何图形是否正确,还需要在高德地图再测量一遍,非常不方便

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.