Leaflet-Geoman 开源项目教程

Leaflet-Geoman 开源项目教程

leaflet-geoman🍂🗺️ The most powerful leaflet plugin for drawing and editing geometry layers项目地址:https://gitcode.com/gh_mirrors/le/leaflet-geoman

1. 项目的目录结构及介绍

Leaflet-Geoman 项目的目录结构如下:

leaflet-geoman/
├── dist/
│   ├── leaflet-geoman.css
│   ├── leaflet-geoman.css.map
│   ├── leaflet-geoman.min.css
│   ├── leaflet-geoman.min.js
│   └── leaflet-geoman.min.js.map
├── examples/
│   ├── advanced.html
│   ├── basic.html
│   ├── custom-icons.html
│   ├── custom-tools.html
│   ├── draw-control.html
│   ├── index.html
│   ├── leaflet-versions.html
│   ├── options.html
│   ├── plugins.html
│   ├── remove-all.html
│   ├── service-layer.html
│   ├── snapping.html
│   ├── toolbar-positions.html
│   └── turf.html
├── src/
│   ├── css/
│   │   ├── icons.css
│   │   └── leaflet-geoman.css
│   ├── js/
│   │   ├── Draw.Control.js
│   │   ├── Edit.Control.js
│   │   ├── Geoman.js
│   │   ├── Layer.Group.js
│   │   ├── Layer.js
│   │   ├── Map.js
│   │   ├── Marker.js
│   │   ├── Path.js
│   │   ├── PM.Draw.Circle.js
│   │   ├── PM.Draw.CircleMarker.js
│   │   ├── PM.Draw.Line.js
│   │   ├── PM.Draw.Marker.js
│   │   ├── PM.Draw.Polygon.js
│   │   ├── PM.Draw.Polyline.js
│   │   ├── PM.Draw.Rectangle.js
│   │   ├── PM.Edit.Circle.js
│   │   ├── PM.Edit.CircleMarker.js
│   │   ├── PM.Edit.Line.js
│   │   ├── PM.Edit.Marker.js
│   │   ├── PM.Edit.Polygon.js
│   │   ├── PM.Edit.Polyline.js
│   │   ├── PM.Edit.Rectangle.js
│   │   ├── PM.Toolbar.js
│   │   └── index.js
│   └── translations/
│       ├── de.js
│       ├── en.js
│       ├── es.js
│       ├── fr.js
│       ├── it.js
│       ├── ja.js
│       ├── ko.js
│       ├── nl.js
│       ├── pl.js
│       ├── pt-br.js
│       ├── ru.js
│       ├── sv.js
│       ├── tr.js
│       ├── zh.js
│       └── zh-tw.js
├── .babelrc
├── .editorconfig
├── .eslintrc
├── .gitignore
├── .npmignore
├── .travis.yml
├── LICENSE
├── README.md
├── package.json
└── webpack.config.js

目录结构介绍

  • dist/:包含编译后的 CSS 和 JavaScript 文件。
  • examples/:包含多个示例 HTML 文件,展示如何使用 Leaflet-Geoman。
  • src/:包含源代码文件,分为 CSS 和 JavaScript 文件。
    • css/:包含样式文件。
    • js/:包含主要的 JavaScript 文件,分为绘制和编辑控制、图层管理等。
    • translations/:包含多语言支持的翻译文件。
  • 根目录下的配置文件和文档文件:
    • .babelrc:Babel 配置文件。
    • .editorconfig:编辑器配置文件。
    • .eslintrc:ESLint 配置文件。
    • .gitignore:Git 忽略文件配置。
    • .npmignore:NPM 忽略文件配置。
    • .travis.yml:Travis CI 配置文件。
    • LICENSE:项目许可证。
    • README.md:项目说明文档。
    • package.json:NPM 包配置文件。
    • webpack.config.js:Webpack 配置文件。

2. 项目的启动文件介绍

Leaflet-Geoman 的启动文件主要是 `src/js/index.

leaflet-geoman🍂🗺️ The most powerful leaflet plugin for drawing and editing geometry layers项目地址:https://gitcode.com/gh_mirrors/le/leaflet-geoman

创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

卓巧知

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值