├── .gitignore
├── package.json
├── screenshot.jpg
├── wapp.ctrl.js
├── serve.js
├── control
└── permalinkcontrol.css
├── README.md
├── georef.css
├── index.html
├── helmerttransform.js
├── georef.js
└── wapp.img.js
/.gitignore:
--------------------------------------------------------------------------------
1 | # Dependency directories
2 | node_modules/
3 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "dependencies": {
3 | "live-server": "^1.2.1"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/screenshot.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Viglino/Map-georeferencer/HEAD/screenshot.jpg
--------------------------------------------------------------------------------
/wapp.ctrl.js:
--------------------------------------------------------------------------------
1 | /** A simple toggle control with a callback function
2 | */
3 |
4 | var toggleCtrl = function(options)
5 | { var element = $("
").addClass(options['class'] + ' ol-unselectable ol-control'+ (options.on ? " ol-active":""));
6 |
7 | function toggle(e)
8 | { element.toggleClass("ol-active");
9 | e.preventDefault();
10 | options.toggleFn(element.hasClass("ol-active"));
11 | };
12 |
13 | $("