Skip to content

sitn/sitnlayers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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