• Stars
    star
    215
  • Rank 183,925 (Top 4 %)
  • Language
    JavaScript
  • License
    BSD 2-Clause "Sim...
  • Created over 7 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

OpenLayers Editor

Openlayers Editor

npm Build e2e tests code style Conventional Commits

OpenLayers Editor (OLE) is based on OpenLayers and provides a set of controls for extended editing of spatial data.

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 JSTS: buffer, union, intersection, difference
  • Toolbar for activating and deactivating controls

Demo

For a demo, visit https://openlayers-editor.geops.com.

Dependencies

  • node & npm

Getting started

  • Clone this repository
  • Install: npm install
  • Build: npm run build
  • Run: npm start
  • Open your browser and visit http://localhost:8080

Usage

<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/ole@latest/style/ole.css" />
<script src="https://cdn.jsdelivr.net/npm/[email protected]/build/index.js"></script>
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

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

Versions and Changelog

This repo uses standard-version for release versioning and changelog management. Therefore updates should be committed using conventional commit messages:


<type>[optional scope]: <description>

[optional body]

[optional footer(s)]

The commit contains the following structural elements, to communicate intent to the consumers of your library:

  1. fix: a commit of the type fix patches a bug in your codebase (this correlates with PATCH in semantic versioning).
  2. feat: a commit of the type feat introduces a new feature to the codebase (this correlates with MINOR in semantic versioning).
  3. BREAKING CHANGE: a commit that has a footer BREAKING CHANGE:, or appends a ! after the type/scope, introduces a breaking API change (correlating with MAJOR in semantic versioning). A BREAKING CHANGE can be part of commits of any type.
  4. types other than fix: and feat: are allowed, for example @commitlint/config-conventional (based on the the Angular convention) recommends build:, chore:, ci:, docs:, style:, refactor:, perf:, test:, and others.
  5. footers other than BREAKING CHANGE: may be provided and follow a convention similar to git trailer format.

Additional types are not mandated by the Conventional Commits specification, and have no implicit effect in semantic versioning (unless they include a BREAKING CHANGE). A scope may be provided to a commit’s type, to provide additional contextual information and is contained within parenthesis, e.g., feat(parser): add ability to parse arrays.

More Repositories

1

ole

OpenLayers Editor
JavaScript
147
star
2

next-nginx-routes

JavaScript
139
star
3

react-spatial

Components to build React map apps
JavaScript
48
star
4

gtfsparser

A GTFS parsing library for Go
Go
42
star
5

gtfsman

Repository-like tool to manage and update a huge number of GTFS feeds
Python
20
star
6

trafimage-maps

Code of the Trafimage web map portal and other applications built on it.
JavaScript
14
star
7

redis-websocket-api

Provides an extensible Redis-over-WebSocket API on top of websocket and aioredis
Python
12
star
8

mobility-toolbox-js

TypeScript
10
star
9

trafimage-geoserver-transformations

Geoserver rendering transformation for feature aggregation for the visualization of train networks in the context of the swiss SBB Trafimage project.
Java
8
star
10

geoserver-sec-drupal

Binds GeoServer to Drupal so that multiple Drupal instance can provide user and roles for GeoServer
Java
8
star
11

react-transit

This library provides React components to visualize real-time geographical information based on OpenLayers.
JavaScript
7
star
12

drupal-geo

Geo module for Drupal
PHP
6
star
13

mdb-pgsql

Convert Microsoft Access 2000 databases to PostgreSQL SQL files
Shell
6
star
14

tree-app

PWA for tree recommendations
JavaScript
5
star
15

cartaro-docker

Dockerfile for Cartaro Docker container
Shell
5
star
16

vdv2pg

Tool for dumping VDV 451 data into a postgres database
Python
4
star
17

tree-lib

Library for tree recommendations
TSQL
4
star
18

geoserver-documentor

Geoserver extension to provide a REST interface (XML) for automated documentation of layers and their data sources
Java
3
star
19

ole-demo

OpenLayers Editor demo
PHP
2
star
20

react-spatial-starter

JavaScript
2
star
21

python-gitoliteparser

Simple parser for gitolites repository configuration files
Python
2
star
22

pgwrench

a comandline tool for postgresql admin tasks
Python
2
star
23

pg_routejoin

automatically build SQL to join tables based on foreign key constraints
Python
2
star
24

pygtfslib

Python
2
star
25

trafimage-planeditor

Website trafimage.mapset.ch based on Netlify CMS
JavaScript
2
star
26

pysnapping

Python
1
star
27

bodo

Web application to manage data about geological drill holes
PHP
1
star
28

phpunit-utils

helper tools for phpunit
Python
1
star
29

ole-mapfish

MapFish implementation for OpenLayers Editor
JavaScript
1
star
30

fabric_debian

debian specific fabric commands
Python
1
star