Skip to content

🍂🗺️ The most powerful leaflet plugin for drawing and editing geometry layers

License

Notifications You must be signed in to change notification settings

GoFMX/leaflet-geoman

 
 

Repository files navigation

FMX Logo

FMX Leaflet-Geoman

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

Demo

Documentation

See the original Leaflet Geoman docs in the documentation folder.

Visit geoman.io/docs for their web documentation.

Demo

The demo directory contains multiple HTML files which highlight different aspects of the library. These can be run locally once the appropriate JavaScript files are built using npm run build. A demo of the unmodified Geoman library can be found here.

Developing

The pnpm tool is required to properly build this project. Installation instructions can be found here. There may be issues building the project using a version of Node other than v20. Different versions of Node can be installed using nvm.

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

Automatically build on file changes:

pnpm run watch

**Note - If watch is running when the pre-commit script executes there may be errors. It is recommended to stop the watch process when making a git commit.

Pull Requests

Because ths project is a fork of Leaflet Geoman, when a pull request is created it will default the target branch to that project, not this one. So be conscious of what the target branch is, or it will create a pull request within the original Leaflet Geoman project, not our internal one.

About

🍂🗺️ The most powerful leaflet plugin for drawing and editing geometry layers

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 96.6%
  • CSS 3.2%
  • Other 0.2%