RepositoryCSSFRPháp
w8r

w8r/Leaflet.Path.Transform

Drag/rotate/resize handler for leaflet vector features.

174sao
56fork
42issue
1lượt xem

🖱️ Biến Leaflet thành công cụ vẽ chỉnh sửa hình học thật

Thêm bộ điều khiển kéo, xoay, đặt lại kích thước cho mọi đường/path vector trên bản đồ Leaflet.

Leaflet.Path.Transform là plugin nhỏ cho thư viện bản đồ JavaScript Leaflet, cung cấp trình xử lý (handler) cho phép người dùng kéo thả, xoay và thay đổi kích thước các đối tượng vector như L.Path, L.Polyline, L.Polygon... trực tiếp trên bản đồ. Dự án do w8r phát triển, giải quyết nhu cầu chỉnh sửa hình học động không có sẵn trong Leaflet mặc định.

✨ Điểm nổi bật

  • Kéo thả (drag): Di chuyển toàn bộ path bằng cách kéo.
  • Xoay (rotate): Xoay path quanh tâm hoặc một điểm tự định nghĩa.
  • Thay đổi kích thước (scale): Tăng/giảm kích thước path theo trục X/Y hoặc đồng đều.
  • Hỗ trợ nhiều loại vector: Polyline, Polygon, Rectangle, Circle, v.v.
  • Tùy biến marker điều khiển: Thay đổi vị trí, hình dạng marker giao tương tác.
  • Dễ tích hợp: Chỉ cần thêm plugin vào dự án Leaflet hiện có.
  • Nhẹ và không phụ thuộc: Chỉ dựa trên Leaflet core.

💡 Vì sao đáng chú ý

Khác với các plugin chỉnh sửa khác thường phức tạp hoặc nặ Heavy, Leaflet.Path.Transform cung cấp bộ xử lý ngắn gọn nhưng mạnh mẽ — cho phép người dùng tương tác trực tiếp với các đường vectơ như trong phần mềm đồ họa. Rất hữu ích cho ứng dụng cần người dùng vẽ hoặc chỉnh sửa hình học bản đồ.


#Leaflet #GIS #VectorEditing #MapPlugin #JavaScript #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryJavaScript
Leaflet/Leaflet.markercluster

Marker Clustering plugin for Leaflet

4.2k
Nov 25, 2026
RepositoryTypeScript
geoman-io/leaflet-geoman

🍂🗺️ The most powerful leaflet plugin for drawing and editing geometry layers

2.4k
Dec 2, 2026
RepositoryJavaScript
SuperMap/iClient-JavaScript

Modern GIS Web Client for JavaScript, based on Leaflet\OpenLayers\MapboxGL-JS\Classic(iClient8C), enhanced with ECharts\D3\MapV etc. Contributed by SuperMap & community.

907
Nov 26, 2026
RepositoryJavaScript
rubenspgcavalcante/leaflet-ant-path

🌿🐜 Creates a leaflet polyline with a 'ant-path' animated flux

482
Dec 10, 2022
RepositoryJavaScript
stefanocudini/leaflet-panel-layers

Leaflet Control Layers extended with support groups and icons

298
Aug 11, 2023
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

488.2k
Dec 3, 2026
RepositoryPython
yt-dlp/yt-dlp

A feature-rich command-line audio/video downloader

212.6k
Dec 2, 2026
RepositoryMarkdown
DigitalPlatDev/FreeDomain

Free domain registration and practical DNS learning resources for everyone.

210.0k
Aug 12, 2026
RepositoryPython
521xueweihan/HelloGitHub

:octocat: 分享 GitHub 上有趣、入门级的开源项目。Share interesting, entry-level open source projects on GitHub.

192.8k
Nov 27, 2026