maplibre-gl-geo-editor 0.9.1 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -25,7 +25,7 @@ A powerful MapLibre GL plugin for creating and editing geometries. Extends the f
25
25
  ### Basic Edit Tools (via Geoman Free)
26
26
  - **Drag** - Move features on the map
27
27
  - **Edit** - Modify feature vertices
28
- - **Rotate** - Rotate features
28
+ - **Rotate** - Rotate features by dragging, or double-click / right-click a feature to type an exact angle in degrees around the centroid or a chosen vertex
29
29
  - **Cut** - Cut holes in polygons
30
30
  - **Delete** - Remove selected features (supports multi-select)
31
31
 
@@ -374,6 +374,11 @@ map.getContainer().addEventListener('gm:lassoend', (e) => {
374
374
  console.log('Lasso selection:', e.detail);
375
375
  });
376
376
 
377
+ map.getContainer().addEventListener('gm:rotate', (e) => {
378
+ console.log('Rotated feature:', e.detail);
379
+ // detail: { feature, angle }
380
+ });
381
+
377
382
  map.getContainer().addEventListener('gm:geojsonload', (e) => {
378
383
  console.log('GeoJSON loaded:', e.detail);
379
384
  // detail: { features, count, filename }