All Projects → Leaflet → Path.Drag.js

Leaflet / Path.Drag.js

Licence: other
Add dragging capability to Leaflet paths.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to Path.Drag.js

L.Control.LineStringSelect
Polyline selection control for Leaflet
Stars: ✭ 43 (+104.76%)
Mutual labels:  leaflet, leaflet-plugin
harp-leaflet
Leaflet plugin for harp.gl
Stars: ✭ 16 (-23.81%)
Mutual labels:  leaflet, leaflet-plugin
geofind
Multiplayer Geographical Guessing Game using PostGIS, Nuxt, Leaflet & Colyseus.
Stars: ✭ 31 (+47.62%)
Mutual labels:  leaflet
Leaflet.MarkerCluster.LayerSupport
Sub-plugin for Leaflet.markercluster plugin; brings compatibility with Layers Control and other plugins
Stars: ✭ 53 (+152.38%)
Mutual labels:  leaflet
lrm-esri
use Esri's hosted routing service in Leaflet to generate walk, car and truck routes/directions
Stars: ✭ 22 (+4.76%)
Mutual labels:  leaflet
ci-ifd-lead
Code Institute | Interactive Frontend Development | 6-week _lead project
Stars: ✭ 16 (-23.81%)
Mutual labels:  leaflet
CivMap
Interactive, editable personal web map for Civ-style Minecraft servers
Stars: ✭ 21 (+0%)
Mutual labels:  leaflet
leaflet-area-select
Control to just select an area and provide bbox for it
Stars: ✭ 27 (+28.57%)
Mutual labels:  leaflet
go-go-map
百度地图瓦片下载工具 离线地图生成
Stars: ✭ 27 (+28.57%)
Mutual labels:  leaflet
leaflet.minichart
Leaflet.minichart is a leaflet plugin for adding to a leaflet map small animated charts
Stars: ✭ 27 (+28.57%)
Mutual labels:  leaflet
frakegps
Simulate a simple GPS device with gpsd or geoclue2
Stars: ✭ 22 (+4.76%)
Mutual labels:  leaflet
leaflet-paintpolygon
Leaflet plugin to create polygon with circle as paint
Stars: ✭ 38 (+80.95%)
Mutual labels:  leaflet
GeoNature-atlas
Application WEB permettant de générer des fiches espèces publiques à partir d'observations faune/flore
Stars: ✭ 40 (+90.48%)
Mutual labels:  leaflet
leaflet-tag-filter-button
Adds tag filter control for layers (marker, geojson features etc.) to LeafLet.
Stars: ✭ 48 (+128.57%)
Mutual labels:  leaflet
geoportal-extensions
French Geoportal Extensions for well-known javascript mapping libraries (Leaflet and OpenLayers)
Stars: ✭ 49 (+133.33%)
Mutual labels:  leaflet
coronavirus-map-dashboard
🦠 Coronavirus (COVID-19) Map Dashboard using coronavirus-tracker-api
Stars: ✭ 41 (+95.24%)
Mutual labels:  leaflet
osmcz
JS mapová appka pro openstreetmap.cz (osmcz-app)
Stars: ✭ 35 (+66.67%)
Mutual labels:  leaflet
protomaps.js
Lightweight vector map rendering, labeling and symbology for the web
Stars: ✭ 359 (+1609.52%)
Mutual labels:  leaflet
leaflet-layer-tree-plugin
No description or website provided.
Stars: ✭ 31 (+47.62%)
Mutual labels:  leaflet
svelte-leaflet
Svelte component for leaflet.
Stars: ✭ 37 (+76.19%)
Mutual labels:  leaflet

Path.Drag.js

Add dragging capability to Leaflet path (Polygon, Polyline, Rectangle, Circle, CircleMarker…).

Example

Installation

This library requires Leaflet version 1.0 or above

Include Path.Drag.js in your javascript files (after including Leaflet itself).

It's available via NPM:

npm install leaflet.path.drag

Usage

A dragging handler will be attached to the paths instance of your map. To enable dragging, just do:

layer.dragging.enable()

To disable:

layer.dragging.disable()

If you want a path to be draggable as soon as it's added to map, add draggable: true to its options:

const layer = L.polygon([…], {draggable: true})

Alternatives:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].