v1r0x / ole2

OpenLayers Editor 2

Home Page:http://ole.geops.de

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Openlayers Editor

Greenkeeper badge Travis badge

OpenLayers Editor (OLE) provides a set of controls for extended editing of spatial data. This is the new version of OLE which is based on OpenLayers 4. The old version using OpenLayers 2 can be found here.

Contributions are welcome! Feel free to add more controls and to extend the current functionality. Additionally, the build process is currently very basic and could be optimized. Translations would be nice, too.

Features

  • CAD tool for geometry alignment
  • Drawing line, point and polygon features
  • Moving and rotating geometries
  • Modifying geometries
  • Deleting geometries
  • Topology operations using https://github.com/bjornharrtell/jsts: buffer, union, intersection, difference
  • Toolbar for activating and deactivating controls

Demo

For a demo, visit http://ole.geops.de.

Dependencies

  • node & npm

Getting started

  • Clone this repository
  • Install: npm install
  • Run: npm start
  • Open your browser and visit http://localhost:5000

Usage

var editor = new ole.Editor(map);

var cad = new ole.control.CAD({
  source: editLayer.getSource()
});

var draw = new ole.control.Draw({
  source: editLayer.getSource()
});

editor.addControls([draw, cad]);

Development

  • Build: npm run build
  • Create doc: npm run-script doc

About

OpenLayers Editor 2

http://ole.geops.de

License:BSD 2-Clause "Simplified" License


Languages

Language:JavaScript 79.4%Language:HTML 15.6%Language:CSS 5.0%