All Projects → Leaflet → Leaflet.editable

Leaflet / Leaflet.editable

Make geometries editable in Leaflet.

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Leaflet.editable

django-leaflet-admin-list
The Django Leaflet Admin List package provides an admin list view featured by the map and bounding box filter for the geo-based data of the GeoDjango.
Stars: ✭ 28 (-93.49%)
Mutual labels:  leaflet
Leaflet.markercluster
Marker Clustering plugin for Leaflet
Stars: ✭ 3,305 (+668.6%)
Mutual labels:  leaflet
Mapview
Interactive viewing of spatial data in R
Stars: ✭ 341 (-20.7%)
Mutual labels:  leaflet
Leaflet-active-area
A Leaflet plugin to center the map not in the center of the map but inside a DIV. Useful for responsive design.
Stars: ✭ 99 (-76.98%)
Mutual labels:  leaflet
Leaflet.timeline
Display arbitrary GeoJSON on a map with a timeline slider and play button
Stars: ✭ 291 (-32.33%)
Mutual labels:  leaflet
Ui Leaflet
AngularJS directive to embed an interact with maps managed by Leaflet library
Stars: ✭ 315 (-26.74%)
Mutual labels:  leaflet
Leaflet.MarkerCluster.List
a subplugin for the Leaflet.MarkerCluster to display clustered child elements in the list
Stars: ✭ 14 (-96.74%)
Mutual labels:  leaflet
React Leaflet
React components for Leaflet maps
Stars: ✭ 3,939 (+816.05%)
Mutual labels:  leaflet
Leaflet Ant Path
🌿🐜 Creates a leaflet polyline with a 'ant-path' animated flux
Stars: ✭ 296 (-31.16%)
Mutual labels:  leaflet
Offlinemap
基于MySQL + Node.js + Leaflet的离线地图展示,支持百度、谷歌、高德、腾讯地图
Stars: ✭ 343 (-20.23%)
Mutual labels:  leaflet
is-osm-uptodate
Find outdated nodes in OpenStreetMap
Stars: ✭ 16 (-96.28%)
Mutual labels:  leaflet
Leaflet.pixioverlay
Bring Pixi.js power to Leaflet maps
Stars: ✭ 264 (-38.6%)
Mutual labels:  leaflet
Leaflet.timedimension
Add time dimension capabilities on a Leaflet map.
Stars: ✭ 329 (-23.49%)
Mutual labels:  leaflet
gwty-leaflet
A GWT JsInterop wrapper for Leaflet.
Stars: ✭ 29 (-93.26%)
Mutual labels:  leaflet
Qgis2web
A QGIS plugin to export a map to an OpenLayers, Leaflet, or Mapbox GL JS webmap
Stars: ✭ 349 (-18.84%)
Mutual labels:  leaflet
gatsby-starter-leaflet
🍃 A Gatsby starter with Leafet to quickly build React apps with a map!
Stars: ✭ 108 (-74.88%)
Mutual labels:  leaflet
Leaflet Velocity
Visualise velocity data on a leaflet layer
Stars: ✭ 309 (-28.14%)
Mutual labels:  leaflet
Leaflet.easybutton
leaflet control buttons with icons and callbacks
Stars: ✭ 408 (-5.12%)
Mutual labels:  leaflet
Leaflet Color Markers
color variations of the standard leaflet marker
Stars: ✭ 363 (-15.58%)
Mutual labels:  leaflet
Gdal2tiles Leaflet
Generate raster image tiles for use with leaflet.
Stars: ✭ 338 (-21.4%)
Mutual labels:  leaflet

Build Status

Leaflet.Editable

Make geometries editable in Leaflet.

This is not a plug and play UI, and will not be. This is a minimal, lightweight, and fully extendable API to control editing of geometries. So you can easily build your own UI with your own needs and choices.

See the demo UI, an more examples below. This is also the drawing engine behind uMap.

Design keys:

  • only the core needs
  • no UI, instead hooks everywhere needed
  • everything programmatically controllable
  • MultiPolygon/MultiPolyline support
  • Polygons' holes support
  • touch support
  • tests

Install

You need Leaflet >= 1.0.0, and then include src/Leaflet.Editable.js.

Path dragging

If you want path dragging, you need to also include Path.Drag.js.

Quick start

Allow Leaflet.Editable in the map options:

var map = L.map('map', {editable: true});

Then, to start editing an existing feature, call the enableEdit method on it:

var polyline = L.polyline([[43.1, 1.2], [43.2, 1.3],[43.3, 1.2]]).addTo(map);
polyline.enableEdit();

If you want to draw a new line:

map.editTools.startPolyline();  // map.editTools has been created
                                // by passing editable: true option to the map

If you want to continue an existing line:

polyline.editor.continueForward();
// or
polyline.editor.continueBackward();

Examples

API

See the reference

Licence

Leaflet.Editable is released under the WTFPL licence.

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