Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 20-Jul-2022 | - | ||||
0001-Exclude-some-files-from-the-build.patch | H A D | 19-Jul-2022 | 1.7 KiB | 46 | 42 | |
README.md | H A D | 19-Jul-2022 | 1.1 KiB | 39 | 30 | |
ol-layerswitcher.css | H A D | 19-Jul-2022 | 5.1 KiB | 184 | 160 | |
ol-layerswitcher.js | H A D | 19-Jul-2022 | 26.6 KiB | 695 | 459 | |
ol.css | H A D | 19-Jul-2022 | 4.3 KiB | 2 | 2 | |
ol.css.map | H A D | 19-Jul-2022 | 2.4 KiB | 1 | 1 | |
ol.js | H A D | 19-Jul-2022 | 658.5 KiB | 3 | 1 | |
ol.js.LICENSE.txt | H A D | 19-Jul-2022 | 90 | 2 | 1 | |
ol.js.map | H A D | 19-Jul-2022 | 1.1 MiB | 1 | 1 |
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