• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..20-Jul-2022-

0001-Exclude-some-files-from-the-build.patchH A D19-Jul-20221.7 KiB4642

README.mdH A D19-Jul-20221.1 KiB3930

ol-layerswitcher.cssH A D19-Jul-20225.1 KiB184160

ol-layerswitcher.jsH A D19-Jul-202226.6 KiB695459

ol.cssH A D19-Jul-20224.3 KiB22

ol.css.mapH A D19-Jul-20222.4 KiB11

ol.jsH A D19-Jul-2022658.5 KiB31

ol.js.LICENSE.txtH A D19-Jul-202290 21

ol.js.mapH A D19-Jul-20221.1 MiB11

README.md

1# Updating libraries
2
3## update OpenLayers
4
5This will get the full legacy build of OpenLayers. See https://openlayers.org/download/
6
7```shell
8cd ol6
9export OL_VERSION=v6.15.1
10wget https://github.com/openlayers/openlayers/releases/download/$OL_VERSION/$OL_VERSION-dist.zip
11unzip -jo $OL_VERSION-dist.zip
12rm $OL_VERSION-dist.zip
13```
14
15## update LayerSwitcher
16
17see https://github.com/walkermatt/ol-layerswitcher#js
18
19```shell
20cd ol6
21export SWITCHER_VERSION=3.8.3
22wget "https://unpkg.com/ol-layerswitcher@$SWITCHER_VERSION" -O ol-layerswitcher.js
23wget "https://unpkg.com/ol-layerswitcher@$SWITCHER_VERSION/dist/ol-layerswitcher.css" -O ol-layerswitcher.css
24```
25
26## custom openlayers build
27
28cd ol6
29git clone https://github.com/openlayers/openlayers.git
30cd openlayers
31git checkout -b v6.15.1-custom v6.15.1
32npm install
33# patch generate-info.js
34cp ../0001-Exclude-some-files-from-the-build.patch .
35git am 0001-Exclude-some-files-from-the-build.patch
36npm run build-index
37npx webpack --config config/webpack-config-legacy-build.mjs && npx cleancss --source-map src/ol/ol.css -o build/legacy/ol.css
38cp build/legacy/*.* ../
39