A simple openlayers widget with sitn specific configuration | Read-only mirror of https://github.com/sitn/sitnlayers — Canton de Neuchâtel. Issues & pull requests at the source.
  • JavaScript 65.4%
  • HTML 34.1%
  • PowerShell 0.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Stéphane Malta e Sousa d9ceff9152
Merge pull request #49 from maltaesousa/fit
get rid of jquery and jquery-ui
2023-03-07 10:44:35 +01:00
assets get rid of jquery and jquery-ui 2023-03-06 15:17:57 +01:00
img add markers 2019-05-21 15:03:58 +02:00
js expose map 2023-03-06 17:52:44 +01:00
scripts fix svg path 2019-05-22 15:51:16 +02:00
.eslintrc.js lint 2021-01-21 13:15:40 +01:00
.gitignore enable linting 2019-05-22 09:35:26 +02:00
favicon.ico named layers 2021-01-22 08:15:55 +01:00
index.html fix from review 2023-03-07 10:21:30 +01:00
readme.md delete npm depedencies 2023-03-07 10:41:48 +01:00

sitnLayers

An openlayers widget that allows drawing and retrieving geometries with sitn base layers.

Getting started

Clone this repository and open a shell at the root of your project.

Get assets by downloading them in the assets folder.

curl https://cdn.jsdelivr.net/npm/ol@v7.2.2/dist/ol.js -o assets\ol\ol.js
curl https://cdn.jsdelivr.net/npm/ol@v7.2.2/ol.css -o assets\ol\ol.css
curl https://raw.githubusercontent.com/proj4js/proj4js/2.8.1/dist/proj4.js -o assets\proj4\proj4.js
curl https://raw.githubusercontent.com/Viglino/ol-ext/master/dist/ol-ext.min.js -o assets\ol-ext\ol-ext.min.js
curl https://raw.githubusercontent.com/Viglino/ol-ext/master/dist/ol-ext.min.css -o assets\ol-ext\ol-ext.min.css

Dev environment

If you want live reload, install live-server on your favourite code editor.

Download mappings for debug:

curl https://cdn.jsdelivr.net/npm/ol@v7.2.2/dist/ol.js.map -o assets\ol\ol.js.map
curl https://cdn.jsdelivr.net/npm/ol@v7.2.2/ol.css.map -o assets\ol\ol.css.map