MIT License

项目介绍

geoman-io/leaflet-geoman 是一个托管在 GitHub 上的开源项目,主要使用 JavaScript 编写,采用 MIT License 许可证,目前获得 2.4k 个 Star、446 次 Fork。

仓库全名
geoman-io/leaflet-geoman
开源许可证
MIT License
Star 数
2.4k
Fork 数
446
未关闭 Issue
19

README 摘要

Leaflet-Geoman Leaflet Plugin For Creating And Editing Geometry Layers Draw, Edit, Drag, Cut, Rotate, Split, Scale, Measure, Snap and Pin Layers Supports Markers, CircleMarkers, Polylines, Polygons, Circles, Rectangles, ImageOverlays, LayerGroups, GeoJSON, MultiLineStrings and MultiPolygons Documentation Visit geoman.io/docs to get started. Demo Check out the full power of Leaflet-Geoman Pro on geoman.io/demo…

完整内容见 GitHub 原始 README 或本页 。

常见问题

leaflet-geoman 用什么语言开发?

主要使用 JavaScript 编写,采用 MIT License 许可证,目前有 2.4k 个 Star。

leaflet-geoman 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 leaflet-geoman 的源码?

可以直接克隆仓库:git clone https://github.com/geoman-io/leaflet-geoman.git,默认分支为 develop;安装与运行步骤见仓库 README。

leaflet-geoman 最近还在维护吗?

仓库最近一次更新为 3 天前,当前有 19 个未关闭 Issue;Star 数为 2.4k,可作为社区活跃度的参考。

README

Geoman Logo

Leaflet-Geoman

Leaflet Plugin For Creating And Editing Geometry Layers
Draw, Edit, Drag, Cut, Rotate, Split, Scale, Measure, Snap and Pin Layers
Supports Markers, CircleMarkers, Polylines, Polygons, Circles, Rectangles, ImageOverlays, LayerGroups, GeoJSON, MultiLineStrings and MultiPolygons

npm version NPM Downloads

Demo

Documentation

Visit geoman.io/docs to get started.

Demo

Check out the full power of Leaflet-Geoman Pro on geoman.io/demo

Feature Requests

I’m adopting the Issue Management of lodash which means, feature requests get the “Feature Request” Label and then get closed.
You can upvote existing feature requests (or create new ones). Upvotes make me see how much a feature is requested and prioritize their implementation.
Please see the existing Feature Requests here and upvote if you want them to be implemented.

Developing

This project uses mise to pin Node.js and pnpm. Clone the repository, install the declared tools, and then install all packages:

mise install
pnpm install

Compile and run dev watch version:

pnpm start

Compile and run build version:

pnpm run prepare

Run tests:

pnpm test            # E2E tests (Cypress)
pnpm run test:unit   # Unit tests (Vitest)

Open cypress window:

pnpm run cypress

Lint and format (oxlint + oxfmt):

pnpm run lint

Take a look into CONTRIBUTING

Credit

A big thanks goes to @Falke-Design, he invests a lot of time and takes good care of Leaflet-Geoman.

Thanks to @ryan-morris for the implementation of Typescript and support with Typescript questions.

As I never built a leaflet plugin before, I looked heavily into the code of leaflet.draw to find out how to do stuff. So don’t be surprised to see some familiar code.

I also took a hard look at the great L.GeometryUtil for some of my helper functions.

The Rotate Mode are only working because of the great calculation code of L.Path.Transform

评论

暂无评论