All Projects → w8r → Leaflet.draw.drag

w8r / Leaflet.draw.drag

Drag feature functionality for Leaflet.draw

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Leaflet.draw.drag

leaflet-paintpolygon
Leaflet plugin to create polygon with circle as paint
Stars: ✭ 38 (-32.14%)
Mutual labels:  leaflet, draw
Ngx.leaflet.component
angular 2+ / leaflet 1.x component collection
Stars: ✭ 46 (-17.86%)
Mutual labels:  leaflet
Leaflet.markercluster.freezable
Adds ability to freeze clusters at specified zoom
Stars: ✭ 21 (-62.5%)
Mutual labels:  leaflet
Leaflet.extras2
Extra functionality for leaflet R package.
Stars: ✭ 37 (-33.93%)
Mutual labels:  leaflet
Leaflet Ais Tracksymbol
AIS Extension for leaflet-tracksymbol It can display AIS Contacts on the Map.
Stars: ✭ 27 (-51.79%)
Mutual labels:  leaflet
Rnn Vae
Variational Autoencoder with Recurrent Neural Network based on Google DeepMind's "DRAW: A Recurrent Neural Network For Image Generation"
Stars: ✭ 39 (-30.36%)
Mutual labels:  draw
React Planner
✏️ A React Component for plans design. Draw a 2D floorplan and navigate it in 3D mode.
Stars: ✭ 846 (+1410.71%)
Mutual labels:  draw
Inloco
A Geographic Information System (GIS) used by Ministério Público do Estado do Rio de Janeiro to show social, institutional and administrative data , based on React and Leaflet, interacting with a GeoServer back-end.
Stars: ✭ 51 (-8.93%)
Mutual labels:  leaflet
Svelte Pick A Place
Javascript location picker built with Svelte
Stars: ✭ 44 (-21.43%)
Mutual labels:  leaflet
Sharpmath
A small .NET math library.
Stars: ✭ 36 (-35.71%)
Mutual labels:  draw
Jhdraw
draw line, draw dash line, draw star, draw rect, draw dash rect, gradientLayer 画线,画虚线,画五角星,画矩形,画虚线矩形,渐变色,椭圆(圆),圆角矩形
Stars: ✭ 35 (-37.5%)
Mutual labels:  draw
Mapboard
A framework for data-rich web mapping 🌎📊✨
Stars: ✭ 29 (-48.21%)
Mutual labels:  leaflet
System Alert Window Example
Example project showing use of SYSTEM_ALERT_WINDOW permission on Android 23+, with back button interception.
Stars: ✭ 39 (-30.36%)
Mutual labels:  draw
Leaflet
🍃 JavaScript library for mobile-friendly interactive maps
Stars: ✭ 32,591 (+58098.21%)
Mutual labels:  leaflet
Papyrusjs
papyrus.js renders maps of Minecraft: Bedrock Edition worlds using node.js, LevelDB and leaflet.
Stars: ✭ 50 (-10.71%)
Mutual labels:  leaflet
Pm2.5 Idw Map
PM2.5 IDW Map from PM2.5 open data portal
Stars: ✭ 14 (-75%)
Mutual labels:  leaflet
Leafletpano
A simple tool which tiles large images to publish them for web and mobile
Stars: ✭ 34 (-39.29%)
Mutual labels:  leaflet
Shapeview
Draw your shapes without a sweat
Stars: ✭ 37 (-33.93%)
Mutual labels:  draw
Leaflet Swoopy
⤵️ Swoopy Arrow Plugin for Leaflet
Stars: ✭ 52 (-7.14%)
Mutual labels:  leaflet
Mopaint
🎨💪 Modern, modular paint and more! (pre-alpha, not much done yet)
Stars: ✭ 50 (-10.71%)
Mutual labels:  draw

Leaflet.Draw.Drag

npm version

Drag feature functionality for Leaflet.draw.

Uses Leaflet.Path.Drag

Backwards compatibility

If you want [email protected] + [email protected] support, use leaflet-0.7 branch or npm versions [email protected]^0.1.7

Demo

Usage

<script src="path/to/leaflet/"></script>
<script src="path/to/leaflet.draw.js"></script>
<script src="path/to/Edit.Poly.Drag.js"></script>
...
var drawnItems = new L.FeatureGroup().addTo(map);
// Initialise the draw control and pass it the FeatureGroup of editable layers
var drawControl = new L.Control.Draw({
  edit: {
    featureGroup: drawnItems
    edit: {
      moveMarkers: false // centroids, default: false
    }
  }
});
map.addControl(drawControl);
// aaand you are good to go, all vector paths are draggable in edit mode

with browserify

npm install leaflet-draw-drag
...

require('leaflet');
var drawControl = require('leaflet-draw-drag'); // requires leaflet-draw

Info

Uses and includes Leaflet.Path.Drag to extend vector features with drag functionality, so you can create draggable polygons and polylines programmatically if you have this one included in your app.

var polygon = new L.Polygon([...], { draggable: true }).addTo(map);
polygon
    .on('dragstart', onDragStart)
    .on('drag',      onDrag)
    .on('dragend',   onDragEnd);

Development

npm install && npm start

Build

npm run build

License

The MIT License (MIT)

Copyright (c) 2015 Alexander Milevski

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Drag feature functionality for Leaflet.draw

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].