Drag
Drag features on a MapLibre or Mapbox map with map.gm.enableGlobalDragMode(). Covers the gm:dragstart and gm:dragend events.
Edit
Edit feature vertices on a MapLibre or Mapbox map with map.gm.enableGlobalEditMode(). Covers options and the gm:editstart and gm:edit events.
Rotate
Rotate features around their center on a MapLibre or Mapbox map with map.gm.enableGlobalRotateMode() and the gm:rotatestart event.
Scale ⭐
Resize features proportionally on a MapLibre or Mapbox map with map.gm.enableMode('edit', 'scale'). Pro feature with the gm:scalestart event.
Copy ⭐
Duplicate features on a MapLibre or Mapbox map with map.gm.enableMode('edit', 'copy'). Pro feature.
Cut
Cut holes and subtract geometry from features on a MapLibre or Mapbox map with map.gm.enableGlobalCutMode(). Covers the gm:cutstart event.
Split ⭐
Split features into parts with a cutting line on a MapLibre or Mapbox map, using map.gm.enableMode('edit', 'split'). Pro feature with the gm:split event.
Union ⭐
Merge overlapping polygons into one geometry on a MapLibre or Mapbox map with map.gm.enableMode('edit', 'union'). Pro feature with the gm:union event.
Difference ⭐
Subtract one polygon from another on a MapLibre or Mapbox map with map.gm.enableMode('edit', 'difference'). Pro feature with the gm:difference event.
Line Simplification ⭐
Simplify polyline and polygon vertices to reduce complexity.
Lasso ⭐
Select multiple features on a MapLibre or Mapbox map by drawing a freehand lasso, with map.gm.enableMode('edit', 'lasso'). Pro feature with the gm:lasso event.
Remove
Delete features from a MapLibre or Mapbox map by clicking them, with map.gm.enableGlobalRemovalMode() and the gm:remove event.
Select ⭐
Click features to drive the global selection, which gates the sub-editing modes (add hole, add part, remove ring, explode, merge parts).
Add Hole ⭐
Punch an interior ring (hole) into a selected polygon or multipolygon.
Add Part ⭐
Append a disjoint part to a selected polygon, promoting it to a multipolygon.
Remove Ring ⭐
Remove a hole or a whole part from a selected polygon or multipolygon.
Explode ⭐
Split a selected multipolygon into separate single-polygon features.
Merge Parts ⭐
Merge several selected polygon/multipolygon features into a single multipolygon.