leaflet-polydraw 0.8.7 → 0.8.9

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
@@ -6,7 +6,7 @@
6
6
 
7
7
  Leaflet Polydraw is a powerful, feature-rich plugin that transforms your Leaflet maps into interactive polygon drawing and editing environments. With intelligent merging, drag-and-drop functionality, and comprehensive editing tools, it's perfect for GIS applications, mapping tools, and spatial data collection.
8
8
 
9
- [![npm version](https://badge.fury.io/js/leaflet-polydraw.svg)](https://badge.fury.io/js/leaflet-polydraw)
9
+ [![npm](https://img.shields.io/npm/v/leaflet-polydraw)](https://www.npmjs.com/package/leaflet-polydraw)
10
10
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
11
11
  [![TypeScript](https://img.shields.io/badge/TypeScript-Ready-blue.svg)](https://www.typescriptlang.org/)
12
12
  [![CI](https://github.com/AndreasOlausson/leaflet-polydraw/actions/workflows/ci.yml/badge.svg)](https://github.com/AndreasOlausson/leaflet-polydraw/actions/workflows/ci.yml)
@@ -15,7 +15,7 @@ Leaflet Polydraw is a powerful, feature-rich plugin that transforms your Leaflet
15
15
 
16
16
  [![Feature Overview](https://raw.githubusercontent.com/AndreasOlausson/leaflet-polydraw/main/Leaflet.Polydraw/docs/images/feature-overview.png)](https://raw.githubusercontent.com/AndreasOlausson/leaflet-polydraw/main/Leaflet.Polydraw/docs/images/feature-overview.png)
17
17
 
18
- - **Point-to-Point Drawing**: Precise polygon creation with click-by-click vertex placement
18
+ - **Point-to-Point Drawing**: Precise polygon creation with click-by-click vertex placement (Desktop only)
19
19
  - **Smart Polygon Merging**: Automatic detection and merging of overlapping polygons (including C-to-O shape completion)
20
20
  - **Drag & Drop**: Intuitive polygon repositioning with intelligent spatial interactions
21
21
  - **Advanced Editing**: Drag vertices, add/remove points, and reshape polygons
@@ -566,7 +566,7 @@ Simply click the draw button and drag your mouse/finger to create polygon shapes
566
566
 
567
567
  **Note**: The number of vertices in the final polygon is controlled by the `polygonCreation.simplification` settings in the configuration.
568
568
 
569
- ### Subtract Mode
569
+ ### Point-to-Point Drawing (Desktop Only)
570
570
 
571
571
  [![Subtract Mode](https://raw.githubusercontent.com/AndreasOlausson/leaflet-polydraw/main/Leaflet.Polydraw/docs/images/subtract-mode.gif)](https://raw.githubusercontent.com/AndreasOlausson/leaflet-polydraw/main/Leaflet.Polydraw/docs/images/subtract-mode.gif)
572
572
 
@@ -600,6 +600,8 @@ Create precise polygons by clicking to place each vertex. Perfect for:
600
600
 
601
601
  You can also drag markers to adjust the shape and delete them by holding the modifier key (Cmd/Ctrl) and clicking on a marker, just like with regular polygon editing.
602
602
 
603
+ **Note**: This feature is currently available on desktop only due to issues with touch devices.
604
+
603
605
  ### Smart Polygon Merging
604
606
 
605
607
  [![Smart Merging](https://raw.githubusercontent.com/AndreasOlausson/leaflet-polydraw/main/Leaflet.Polydraw/docs/images/merge.gif)](https://raw.githubusercontent.com/AndreasOlausson/leaflet-polydraw/main/Leaflet.Polydraw/docs/images/merge.gif)
@@ -929,6 +931,8 @@ map.on('polygon:created', (e) => {
929
931
 
930
932
  ## Browser Support
931
933
 
934
+ > ⚠️ Mobile support is considered **beta** in this version. While basic touch interaction is implemented, advanced workflows may behave inconsistently across mobile browsers. Full mobile compatibility is planned for a future release.
935
+
932
936
  - **Modern Browsers**: Chrome 60+, Firefox 55+, Safari 12+, Edge 79+
933
937
  - **Mobile**: iOS Safari 12+, Chrome Mobile 60+
934
938
  - **Requirements**: ES6+ support, Leaflet 1.9+, Touch events, CSS transitions