maplibre-gl-geo-editor 0.9.0 → 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 +6 -1
- package/dist/{geo-editor-C_QnBCMc.js → geo-editor-Bf4KlZK2.js} +414 -47
- package/dist/geo-editor-Bf4KlZK2.js.map +1 -0
- package/dist/{geo-editor-DqdojJXd.cjs → geo-editor-BmXZmyoe.cjs} +414 -47
- package/dist/geo-editor-BmXZmyoe.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/maplibre-gl-geo-editor.css +99 -7
- package/dist/react.cjs +1 -1
- package/dist/react.mjs +2 -2
- package/dist/types/index.d.ts +71 -31
- package/dist/types/react.d.ts +119 -43
- package/package.json +1 -1
- package/dist/geo-editor-C_QnBCMc.js.map +0 -1
- package/dist/geo-editor-DqdojJXd.cjs.map +0 -1
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 }
|