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
See the original Leaflet Geoman docs in the documentation
folder.
Visit geoman.io/docs for their web documentation.
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.
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.
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.