-
Notifications
You must be signed in to change notification settings - Fork 5
How to update openlayers
Simon Seyock edited this page Oct 15, 2018
·
11 revisions
As guide4you uses a custom version of the selectinteraction you have to choices here: Either rewrite guide4you in a way that it does not need multiple ol.interaction.Select, deselect and select methods OR you follow these steps:
- Clone https://github.com/KlausBenndorf/ol3
- Configure https://github.com/openlayers/openlayers as a remote named openlayers:
git remote add openlayers https://github.com/openlayers/openlayers git checkout g4u3git pullgit fetch openlayers-
git rebase tags/<tag>(substitute<tag>for the version you want. i.e.v3.17.1) - Check if everything worked out fine:
rm -rf node_modules && npm install && npm test(before v5.0.0:make clean && make check) - Check if
npm run distis working correctly - Commit all fixes. Do not commit dist folder.
git push --forcegit checkout -b g4u3_<tag>-
rm -rf dist/ && npm run dist(before v5.0.0:make clean && make distribute(use cygwin if under windows)) git add dist/ && git commit -m 'updated to <tag>' && git push -u origin g4u3_<tag>- set the dependency
"openlayers"to"github:KlausBenndorf/ol3#g4u3_<tag>"in the package.json of guide4you
if you want to use the new version in an linked repo, unlink repos, npm install github:KlausBenndorf/ol3#g4u3_<tag>, link repos