All Projects → HamHamFonFon → ol3-drawFeatures

HamHamFonFon / ol3-drawFeatures

Licence: MIT license
Plugin OpenLayers 3 for drawing features

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to ol3-drawFeatures

Sketch
Sketch have a lot of basic functions to develop a drawing app for iPhone. Anyone can easily create drawing iOS Application.
Stars: ✭ 229 (+1247.06%)
Mutual labels:  drawing
DrawRacket4Me
DrawRacket4Me draws trees and graphs from your code, making it easier to check if the structure is what you wanted.
Stars: ✭ 43 (+152.94%)
Mutual labels:  drawing
Scribble
A Beat Saber mod that allows you to draw in the scene
Stars: ✭ 28 (+64.71%)
Mutual labels:  drawing
Makelangelo Software
Software for plotters - especially the wall-hanging polargraph also called Makelangelo.
Stars: ✭ 248 (+1358.82%)
Mutual labels:  drawing
SwiftyJot
Use your finger to annotate images.
Stars: ✭ 14 (-17.65%)
Mutual labels:  drawing
react-map-gl-draw
React Component for Mapbox GL Draw
Stars: ✭ 50 (+194.12%)
Mutual labels:  drawing
Autocadcodepack
AutoCAD Code Pack: A powerful library that helps you to develop AutoCAD plugins using the AutoCAD .NET API
Stars: ✭ 207 (+1117.65%)
Mutual labels:  drawing
VIAN
No description or website provided.
Stars: ✭ 18 (+5.88%)
Mutual labels:  drawing
easy-drawing-board
🎨 a easy to use canvas-drawing lib
Stars: ✭ 32 (+88.24%)
Mutual labels:  drawing
AnyImageKit
A toolbox for pick/edit/capture photo or video. Written in Swift.
Stars: ✭ 580 (+3311.76%)
Mutual labels:  drawing
powerpaint
Kreative PowerPaint - Library and Application for Bitmap and Vector Image Editing
Stars: ✭ 27 (+58.82%)
Mutual labels:  drawing
voxel-builder
Voxel-based 3D modeling application
Stars: ✭ 31 (+82.35%)
Mutual labels:  drawing
LCPaintView
🖌 Paint view for iOS.
Stars: ✭ 20 (+17.65%)
Mutual labels:  drawing
Swiftydraw
A simple, lightweight drawing framework written in Swift
Stars: ✭ 239 (+1305.88%)
Mutual labels:  drawing
vscode-excalidraw
Excalidraw integration for vscode
Stars: ✭ 31 (+82.35%)
Mutual labels:  drawing
Gbox
🎨 A multi-platform graphic library
Stars: ✭ 216 (+1170.59%)
Mutual labels:  drawing
drawingwithcode
Drawing with code 😘
Stars: ✭ 28 (+64.71%)
Mutual labels:  drawing
drawa-android
🎨 Drawing application for Android made easy
Stars: ✭ 16 (-5.88%)
Mutual labels:  drawing
vec
Vector graphics software to generate HPGL output to drive a plotter
Stars: ✭ 19 (+11.76%)
Mutual labels:  drawing
drawim
A simple drawing library in Nim, inspired by p5js
Stars: ✭ 66 (+288.24%)
Mutual labels:  drawing

OpenLayers Drawing Features Plugin

Build Status

Welcome !! DrawFeatures is an OpenLayers 3 plugin for drawing new features, edit or delete feature from map. See usage for demo. In progress: compatibility with NPM and Openlayers 4

Requirements

  • Openlayers 3

Getting started

  • Clone the repository : git clone [email protected]:HamHamFonFon/ol3-drawFeatures.git ol3-drawFeatures
  • Adding script JS and style CSS on your HTML code

Getting started with NPM

  • npm install --save ol3-draw-features

Demo examples

This exemples is showing how to use the plugin with Openlayers 3

Use with NPM : in progress...

API

new ol.control.ControlDrawButtons(vector_layer, opt_options)

vector_layer

Layer you will adding, edit or delete features

var vector_draw = new ol.layer.Vector({
    source: new ol.source.Vector(),
    style: new ol.style.Style({
        fill: new ol.style.Fill({
            color: 'rgba(255, 255, 255, 0.2)'
        }),
        stroke: new ol.style.Stroke({
            color: '#ffcc33',
            width: 2
        }),
        image: new ol.style.Circle({
            radius: 7,
            fill: new ol.style.Fill({
                color: '#ffcc33'
            })
        })
    })
});

Options parameters

Option name Type Description
style_buttons String Use bootstrap glyphicon or default CSS. Values : `glyphicon
local_storage Boolean (in progress) Possibility to record Layer in Local Storage
draw Array Select buttons to show
- Point Boolean Show point button
- LineString Boolean Show line button
- Square Boolean Show square button
- Circle Boolean Show circle button
- Polygon Boolean Show polygon button

Exemple usage with Openlayers 3

var optionsControlDraw = {
    "style_buttons" : (undefined !== typeof style_buttons)? "glyphicon" : "default",
    "local_storage": true,
    "draw": {
        "Point": true,
        "LineString": true,
        "Square": true,
        "Circle": true,
        "Polygon": true
    }
};
var buttonsDrawControls = new ol.control.ControlDrawFeatures(myVectorLayer, optionsControlDraw);

Exemple usage with NPM modules and Openlayers 4

In progress...

Extends

ol.control.Control

Methods

setSelectedLayer()

Set a layer who may be different tha the one in options array

buttonsDrawControls.setSelectedLayer(otherVectorLayer);

Author(s)

Stéphane MÉAUDRE [email protected] [email protected]

Licence

MIT Licence - 2016

See also

My POC based on Kuzzle : Kurtography

README.md edited by StackEdit

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