https://github.com/geoman-io/leaflet-geoman
ππΊοΈ The most powerful leaflet plugin for drawing and editing geometry layers
https://github.com/geoman-io/leaflet-geoman
drawing enable-drawing geojson geoman geospatial-data gis google-maps leaflet leaflet-draw leaflet-geoman leaflet-plugin leaflet-plugins leaflet-pm mapbox multipolygon osm polygon polyline toolbar vector
Last synced: 7 days ago
JSON representation
ππΊοΈ The most powerful leaflet plugin for drawing and editing geometry layers
- Host: GitHub
- URL: https://github.com/geoman-io/leaflet-geoman
- Owner: geoman-io
- License: mit
- Created: 2015-11-14T11:20:52.000Z (over 9 years ago)
- Default Branch: develop
- Last Pushed: 2024-10-13T12:27:37.000Z (6 months ago)
- Last Synced: 2024-10-29T10:54:29.469Z (6 months ago)
- Topics: drawing, enable-drawing, geojson, geoman, geospatial-data, gis, google-maps, leaflet, leaflet-draw, leaflet-geoman, leaflet-plugin, leaflet-plugins, leaflet-pm, mapbox, multipolygon, osm, polygon, polyline, toolbar, vector
- Language: JavaScript
- Homepage: https://geoman.io
- Size: 4.37 MB
- Stars: 2,212
- Watchers: 40
- Forks: 433
- Open Issues: 51
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- jimsghstars - geoman-io/leaflet-geoman - ππΊοΈ The most powerful leaflet plugin for drawing and editing geometry layers (JavaScript)
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](https://www.geoman.io/docs) to get started.
## Demo
Check out the full power of Leaflet-Geoman Pro on [geoman.io/demo](https://www.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](https://github.com/geoman-io/leaflet-geoman/issues?q=is%3Aissue+is%3Aclosed+label%3A%22feature+request%22+sort%3Areactions-%2B1-desc) and upvote if you want them to be implemented.### Developing
Clone the repository and then install all npm packages:
```
pnpm install
```Compile and run `dev` watch version:
```
pnpm run start
```Compile and run `build` version:
```
pnpm run prepare
```Run cypress test:
```
pnpm run test
```Open cypress window:
```
pnpm run cypress
```Open eslint check:
```
pnpm run lint
```Take a look into [CONTRIBUTING](./CONTRIBUTING.md)
### 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](https://github.com/makinacorpus/Leaflet.GeometryUtil) for some of my helper functions.
The Rotate Mode are only working because of the great calculation code of [L.Path.Transform](https://github.com/w8r/Leaflet.Path.Transform)