Leaflet-Geoman

Package

Leaflet plugin to draw and edit polygons, lines and markers

Price
Free; Pro edition paid
Access
None

About

Leaflet-Geoman is an MIT-licensed plugin for Leaflet maps that draws, edits, drags, cuts and rotates layers such as markers, polylines, polygons, circles and rectangles. It works with GeoJSON. Split, scale and other advanced modes are in the separate paid Pro edition.

What you can do with it

  • Let users draw and reshape polygons on a Leaflet map
  • Cut or rotate map shapes in a browser editor
  • Save edited map shapes as GeoJSON

Get started

  1. Install the package next to Leaflet
  2. Add the controls to your map

Example

npm install @geoman-io/leaflet-geoman-free
// import '@geoman-io/leaflet-geoman-free'
// import '@geoman-io/leaflet-geoman-free/dist/leaflet-geoman.css'
// map.pm.addControls({ position: 'topleft' })

Details

Hosting
Runs locally
Available in
Worldwide
Official SDKs
JavaScript/TypeScript
MCP server
None

Tasks

Last checked on .